-mograsim version: 0.1.3
{
"width": 35.0,
"height": 40.0,
"y": 25.0
},
"name": "I1",
- "logicWidth": 1
+ "logicWidth": 1,
+ "usage": "INPUT"
},
{
"location": {
"y": 35.0
},
"name": "I2",
- "logicWidth": 1
- },
- {
- "location": {
- "x": 35.0,
- "y": 5.0
- },
- "name": "Y",
- "logicWidth": 1
+ "logicWidth": 1,
+ "usage": "INPUT"
},
{
"location": {
"y": 5.0
},
"name": "S1",
- "logicWidth": 1
+ "logicWidth": 1,
+ "usage": "INPUT"
},
{
"location": {
"y": 15.0
},
"name": "S2",
- "logicWidth": 1
+ "logicWidth": 1,
+ "usage": "INPUT"
+ },
+ {
+ "location": {
+ "x": 35.0,
+ "y": 5.0
+ },
+ "name": "Y",
+ "logicWidth": 1,
+ "usage": "OUTPUT"
}
],
+ "innerScale": 0.4,
"submodel": {
- "innerScale": 0.4,
- "subComps": [
+ "components": [
{
- "id": "GUINandGate",
+ "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
"name": "GUINandGate#1",
"pos": {
"x": 35.0,
"params": 1
},
{
- "id": "GUINandGate",
- "name": "GUINandGate#3",
+ "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
+ "name": "GUINandGate#2",
"pos": {
- "x": 60.0,
- "y": 40.0
+ "x": 35.0,
+ "y": 55.0
},
"params": 1
},
{
- "id": "GUINandGate",
- "name": "GUINandGate#2",
+ "id": "class:net.mograsim.logic.model.model.components.atomic.GUINandGate",
+ "name": "GUINandGate#3",
"pos": {
- "x": 35.0,
- "y": 55.0
+ "x": 60.0,
+ "y": 40.0
},
"params": 1
}
],
- "innerWires": [
+ "wires": [
{
"pin1": {
- "compName": "GUINandGate#2",
- "pinName": "Y"
+ "compName": "_submodelinterface",
+ "pinName": "S1"
},
"pin2": {
- "compName": "GUINandGate#3",
- "pinName": "B"
- },
- "name": "unnamedWire#9"
- },
- {
- "pin1": {
"compName": "GUINandGate#1",
- "pinName": "Y"
- },
- "pin2": {
- "compName": "GUINandGate#3",
"pinName": "A"
},
- "name": "unnamedWire#8"
- },
- {
- "pin1": {
- "compName": "_submodelinterface",
- "pinName": "I2"
- },
- "pin2": {
- "compName": "GUINandGate#2",
- "pinName": "B"
- },
- "name": "unnamedWire#7",
+ "name": "unnamedWire#0",
"path": [
{
- "x": 15.0,
- "y": 87.5
+ "x": 25.0,
+ "y": 12.5
},
{
- "x": 15.0,
- "y": 70.0
+ "x": 25.0,
+ "y": 35.0
}
]
},
},
{
"pin1": {
+ "compName": "GUINandGate#3",
+ "pinName": "Y"
+ },
+ "pin2": {
"compName": "_submodelinterface",
- "pinName": "S1"
+ "pinName": "Y"
+ },
+ "name": "unnamedWire#10"
+ },
+ {
+ "pin1": {
+ "compName": "_submodelinterface",
+ "pinName": "I1"
},
"pin2": {
"compName": "GUINandGate#1",
- "pinName": "A"
+ "pinName": "B"
},
- "name": "unnamedWire#0",
+ "name": "unnamedWire#5",
"path": [
{
"x": 25.0,
- "y": 12.5
+ "y": 62.5
},
{
"x": 25.0,
- "y": 35.0
+ "y": 45.0
}
]
},
{
"pin1": {
"compName": "_submodelinterface",
- "pinName": "I1"
+ "pinName": "I2"
},
"pin2": {
- "compName": "GUINandGate#1",
+ "compName": "GUINandGate#2",
"pinName": "B"
},
- "name": "unnamedWire#5",
+ "name": "unnamedWire#7",
"path": [
{
- "x": 25.0,
- "y": 62.5
+ "x": 15.0,
+ "y": 87.5
},
{
- "x": 25.0,
- "y": 45.0
+ "x": 15.0,
+ "y": 70.0
}
]
},
{
"pin1": {
- "compName": "GUINandGate#3",
+ "compName": "GUINandGate#1",
"pinName": "Y"
},
"pin2": {
- "compName": "_submodelinterface",
+ "compName": "GUINandGate#3",
+ "pinName": "A"
+ },
+ "name": "unnamedWire#8"
+ },
+ {
+ "pin1": {
+ "compName": "GUINandGate#2",
"pinName": "Y"
},
- "name": "unnamedWire#10"
+ "pin2": {
+ "compName": "GUINandGate#3",
+ "pinName": "B"
+ },
+ "name": "unnamedWire#9"
}
- ]
+ ],
+ "version": "0.1.1"
},
- "symbolRendererSnippetID": "simpleRectangularLike",
+ "symbolRendererSnippetID": "class:net.mograsim.logic.model.snippets.symbolrenderers.SimpleRectangularLikeSymbolRenderer",
"symbolRendererParams": {
"centerText": "GUIsel1",
"centerTextHeight": 5.0,
"pinLabelHeight": 3.5,
"pinLabelMargin": 0.5
},
- "outlineRendererSnippetID": "default",
- "highLevelStateHandlerSnippetID": "default"
+ "outlineRendererSnippetID": "class:net.mograsim.logic.model.snippets.outlinerenderers.DefaultOutlineRenderer",
+ "highLevelStateHandlerSnippetID": "class:net.mograsim.logic.model.snippets.highlevelstatehandlers.DefaultHighLevelStateHandler",
+ "version": "0.1.5"
}
\ No newline at end of file