-mograsim version: 0.1.3
{
"width": 35.0,
"height": 20.0,
"interfacePins": [
{
"location": {
- "x": 35.0,
+ "x": 0.0,
"y": 5.0
},
- "name": "Q",
- "logicWidth": 1
+ "name": "D",
+ "logicWidth": 1,
+ "usage": "INPUT"
},
{
"location": {
- "x": 35.0,
+ "x": 0.0,
"y": 15.0
},
- "name": "_Q",
- "logicWidth": 1
+ "name": "E",
+ "logicWidth": 1,
+ "usage": "INPUT"
},
{
"location": {
- "x": 0.0,
+ "x": 35.0,
"y": 5.0
},
- "name": "D",
- "logicWidth": 1
+ "name": "Q",
+ "logicWidth": 1,
+ "usage": "OUTPUT"
},
{
"location": {
- "x": 0.0,
+ "x": 35.0,
"y": 15.0
},
- "name": "E",
- "logicWidth": 1
+ "name": "_Q",
+ "logicWidth": 1,
+ "usage": "OUTPUT"
}
],
+ "innerScale": 0.4,
"submodel": {
- "innerScale": 0.4,
- "subComps": [
+ "components": [
+ {
+ "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
+ "name": "GUINandGate#0",
+ "pos": {
+ "x": 10.0,
+ "y": 2.5
+ },
+ "params": 1
+ },
{
- "id": "GUINandGate",
+ "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
"name": "GUINandGate#1",
"pos": {
"x": 15.0,
}
},
{
- "id": "GUINandGate",
- "name": "GUINandGate#0",
+ "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
+ "name": "WireCrossPoint#0",
"pos": {
- "x": 10.0,
- "y": 2.5
+ "x": 4.0,
+ "y": 36.5
},
"params": 1
},
{
- "id": "WireCrossPoint",
+ "id": "class:net.mograsim.logic.model.model.wires.WireCrossPoint",
"name": "WireCrossPoint#1",
"pos": {
"x": 34.0,
"y": 11.5
},
"params": 1
- },
- {
- "id": "WireCrossPoint",
- "name": "WireCrossPoint#0",
- "pos": {
- "x": 4.0,
- "y": 36.5
- },
- "params": 1
}
],
- "innerWires": [
+ "wires": [
{
"pin1": {
- "compName": "GUI_rsLatch#0",
- "pinName": "_Q"
+ "compName": "_submodelinterface",
+ "pinName": "D"
},
"pin2": {
- "compName": "_submodelinterface",
- "pinName": "_Q"
+ "compName": "GUINandGate#0",
+ "pinName": "A"
},
- "name": "unnamedWire#9"
+ "name": "unnamedWire#0"
},
{
"pin1": {
- "compName": "GUI_rsLatch#0",
- "pinName": "Q"
+ "compName": "_submodelinterface",
+ "pinName": "E"
},
"pin2": {
- "compName": "_submodelinterface",
- "pinName": "Q"
+ "compName": "WireCrossPoint#0",
+ "pinName": ""
},
- "name": "unnamedWire#8",
+ "name": "unnamedWire#1",
"path": []
},
{
"pin1": {
- "compName": "GUINandGate#1",
- "pinName": "Y"
+ "compName": "WireCrossPoint#0",
+ "pinName": ""
},
"pin2": {
- "compName": "GUI_rsLatch#0",
- "pinName": "_R"
+ "compName": "GUINandGate#0",
+ "pinName": "B"
},
- "name": "unnamedWire#7",
+ "name": "unnamedWire#2",
"path": [
{
- "x": 40.0,
- "y": 37.5
- },
- {
- "x": 40.0,
- "y": 22.5
+ "x": 5.0,
+ "y": 17.5
}
]
},
{
"pin1": {
- "compName": "WireCrossPoint#1",
+ "compName": "WireCrossPoint#0",
"pinName": ""
},
"pin2": {
- "compName": "GUI_rsLatch#0",
- "pinName": "_S"
+ "compName": "GUINandGate#1",
+ "pinName": "B"
},
- "name": "unnamedWire#6",
- "path": []
+ "name": "unnamedWire#3",
+ "path": [
+ {
+ "x": 5.0,
+ "y": 42.5
+ }
+ ]
},
{
"pin1": {
- "compName": "_submodelinterface",
- "pinName": "E"
+ "compName": "GUINandGate#0",
+ "pinName": "Y"
},
"pin2": {
- "compName": "WireCrossPoint#0",
+ "compName": "WireCrossPoint#1",
"pinName": ""
},
- "name": "unnamedWire#1",
+ "name": "unnamedWire#4",
"path": []
},
- {
- "pin1": {
- "compName": "_submodelinterface",
- "pinName": "D"
- },
- "pin2": {
- "compName": "GUINandGate#0",
- "pinName": "A"
- },
- "name": "unnamedWire#0"
- },
{
"pin1": {
"compName": "WireCrossPoint#1",
},
{
"pin1": {
- "compName": "GUINandGate#0",
- "pinName": "Y"
- },
- "pin2": {
"compName": "WireCrossPoint#1",
"pinName": ""
},
- "name": "unnamedWire#4",
+ "pin2": {
+ "compName": "GUI_rsLatch#0",
+ "pinName": "_S"
+ },
+ "name": "unnamedWire#6",
"path": []
},
{
"pin1": {
- "compName": "WireCrossPoint#0",
- "pinName": ""
+ "compName": "GUINandGate#1",
+ "pinName": "Y"
},
"pin2": {
- "compName": "GUINandGate#1",
- "pinName": "B"
+ "compName": "GUI_rsLatch#0",
+ "pinName": "_R"
},
- "name": "unnamedWire#3",
+ "name": "unnamedWire#7",
"path": [
{
- "x": 5.0,
- "y": 42.5
+ "x": 40.0,
+ "y": 37.5
+ },
+ {
+ "x": 40.0,
+ "y": 22.5
}
]
},
{
"pin1": {
- "compName": "WireCrossPoint#0",
- "pinName": ""
+ "compName": "GUI_rsLatch#0",
+ "pinName": "Q"
},
"pin2": {
- "compName": "GUINandGate#0",
- "pinName": "B"
+ "compName": "_submodelinterface",
+ "pinName": "Q"
},
- "name": "unnamedWire#2",
- "path": [
- {
- "x": 5.0,
- "y": 17.5
- }
- ]
+ "name": "unnamedWire#8",
+ "path": []
+ },
+ {
+ "pin1": {
+ "compName": "GUI_rsLatch#0",
+ "pinName": "_Q"
+ },
+ "pin2": {
+ "compName": "_submodelinterface",
+ "pinName": "_Q"
+ },
+ "name": "unnamedWire#9"
}
- ]
+ ],
+ "version": "0.1.1"
},
- "symbolRendererSnippetID": "simpleRectangularLike",
+ "symbolRendererSnippetID": "class:net.mograsim.logic.model.snippets.symbolrenderers.SimpleRectangularLikeSymbolRenderer",
"symbolRendererParams": {
"centerText": "GUIdlatch",
"centerTextHeight": 5.0,
"pinLabelHeight": 3.5,
"pinLabelMargin": 0.5
},
- "outlineRendererSnippetID": "default",
- "highLevelStateHandlerSnippetID": "standard",
+ "outlineRendererSnippetID": "class:net.mograsim.logic.model.snippets.outlinerenderers.DefaultOutlineRenderer",
+ "highLevelStateHandlerSnippetID": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.StandardHighLevelStateHandler",
"highLevelStateHandlerParams": {
"subcomponentHighLevelStates": {},
"atomicHighLevelStates": {
"q": {
- "id": "delegating",
+ "id": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.standard.atomic.DelegatingAtomicHighLevelStateHandler",
"params": {
"delegateTarget": "GUI_rsLatch#0",
"subStateID": "q"
}
}
}
- }
+ },
+ "version": "0.1.5"
}
\ No newline at end of file