X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model.editor%2Fcomponents%2Fam2901%2FGUIAm2901SourceDecode.json;h=112fecb79ac1d892c24928575f8e082f681187d3;hb=148a58630b38b30d4d24a21e3f55c357f5b4d0bc;hp=e36193d97af387ce6d4c512d5d7239138dc849fc;hpb=a393b0a2a9899707af54c9ee77a01f28ac967bd1;p=Mograsim.git diff --git a/net.mograsim.logic.model.editor/components/am2901/GUIAm2901SourceDecode.json b/net.mograsim.logic.model.editor/components/am2901/GUIAm2901SourceDecode.json index e36193d9..112fecb7 100644 --- a/net.mograsim.logic.model.editor/components/am2901/GUIAm2901SourceDecode.json +++ b/net.mograsim.logic.model.editor/components/am2901/GUIAm2901SourceDecode.json @@ -1,23 +1,15 @@ -mograsim version: 0.1.3 { "width": 35.0, "height": 50.0, "interfacePins": [ - { - "location": { - "x": 35.0, - "y": 45.0 - }, - "name": "RD", - "logicWidth": 1 - }, { "location": { "x": 0.0, "y": 25.0 }, "name": "I0", - "logicWidth": 1 + "logicWidth": 1, + "usage": "INPUT" }, { "location": { @@ -25,7 +17,8 @@ mograsim version: 0.1.3 "y": 15.0 }, "name": "I1", - "logicWidth": 1 + "logicWidth": 1, + "usage": "INPUT" }, { "location": { @@ -33,31 +26,35 @@ mograsim version: 0.1.3 "y": 5.0 }, "name": "I2", - "logicWidth": 1 + "logicWidth": 1, + "usage": "INPUT" }, { "location": { "x": 35.0, - "y": 5.0 + "y": 15.0 }, - "name": "SQ", - "logicWidth": 1 + "name": "RA", + "logicWidth": 1, + "usage": "OUTPUT" }, { "location": { "x": 35.0, - "y": 35.0 + "y": 45.0 }, - "name": "SA", - "logicWidth": 1 + "name": "RD", + "logicWidth": 1, + "usage": "OUTPUT" }, { "location": { "x": 35.0, - "y": 15.0 + "y": 35.0 }, - "name": "RA", - "logicWidth": 1 + "name": "SA", + "logicWidth": 1, + "usage": "OUTPUT" }, { "location": { @@ -65,293 +62,303 @@ mograsim version: 0.1.3 "y": 25.0 }, "name": "SB", - "logicWidth": 1 + "logicWidth": 1, + "usage": "OUTPUT" + }, + { + "location": { + "x": 35.0, + "y": 5.0 + }, + "name": "SQ", + "logicWidth": 1, + "usage": "OUTPUT" } ], + "innerScale": 0.25, "submodel": { - "innerScale": 0.25, - "subComps": [ + "components": [ { + "id": "GUINandGate", + "name": "GUINandGate#0", "pos": { "x": 10.0, - "y": 50.0 + "y": 10.0 }, - "id": "GUINandGate", - "name": "GUINandGate#1", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#1", "pos": { - "x": 94.0, - "y": 19.0 + "x": 10.0, + "y": 50.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#14", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#10", "pos": { - "x": 10.0, - "y": 10.0 + "x": 70.0, + "y": 90.0 }, - "id": "GUINandGate", - "name": "GUINandGate#0", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#11", "pos": { - "x": 64.0, - "y": 139.0 + "x": 70.0, + "y": 130.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#13", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#12", "pos": { - "x": 40.0, - "y": 10.0 + "x": 70.0, + "y": 170.0 }, - "id": "GUINandGate", - "name": "GUINandGate#3", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#13", "pos": { - "x": 10.0, - "y": 90.0 + "x": 100.0, + "y": 10.0 }, - "id": "GUINandGate", - "name": "GUINandGate#2", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#14", "pos": { - "x": 94.0, - "y": 179.0 + "x": 100.0, + "y": 170.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#15", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#2", "pos": { - "x": 6.5, - "y": 19.0 + "x": 10.0, + "y": 90.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#1", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#3", "pos": { - "x": 4.0, - "y": 19.0 + "x": 40.0, + "y": 10.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#0", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#4", "pos": { - "x": 6.5, - "y": 59.0 + "x": 40.0, + "y": 50.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#3", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#5", "pos": { - "x": 4.0, - "y": 144.0 + "x": 40.0, + "y": 90.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#2", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#6", "pos": { - "x": 6.5, - "y": 104.0 + "x": 40.0, + "y": 130.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#5", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#7", "pos": { - "x": 6.5, - "y": 99.0 + "x": 40.0, + "y": 170.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#4", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#8", "pos": { - "x": 34.0, - "y": 59.0 + "x": 70.0, + "y": 10.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#7", "params": 1 }, { + "id": "GUINandGate", + "name": "GUINandGate#9", "pos": { - "x": 31.5, - "y": 54.0 + "x": 70.0, + "y": 50.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#6", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#0", "pos": { - "x": 34.0, - "y": 134.0 + "x": 4.0, + "y": 19.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#9", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#1", "pos": { - "x": 34.0, - "y": 64.0 + "x": 6.5, + "y": 19.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#8", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#10", "pos": { "x": 36.5, "y": 99.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#10", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#11", "pos": { "x": 64.0, - "y": 99.0 + "y": 59.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#12", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#12", "pos": { "x": 64.0, - "y": 59.0 + "y": 99.0 }, - "id": "WireCrossPoint", - "name": "WireCrossPoint#11", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#13", "pos": { - "x": 70.0, - "y": 170.0 + "x": 64.0, + "y": 139.0 }, - "id": "GUINandGate", - "name": "GUINandGate#12", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#14", "pos": { - "x": 70.0, - "y": 130.0 + "x": 94.0, + "y": 19.0 }, - "id": "GUINandGate", - "name": "GUINandGate#11", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#15", "pos": { - "x": 100.0, - "y": 170.0 + "x": 94.0, + "y": 179.0 }, - "id": "GUINandGate", - "name": "GUINandGate#14", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#2", "pos": { - "x": 100.0, - "y": 10.0 + "x": 4.0, + "y": 144.0 }, - "id": "GUINandGate", - "name": "GUINandGate#13", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#3", "pos": { - "x": 70.0, - "y": 90.0 + "x": 6.5, + "y": 59.0 }, - "id": "GUINandGate", - "name": "GUINandGate#10", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#4", "pos": { - "x": 70.0, - "y": 50.0 + "x": 6.5, + "y": 99.0 }, - "id": "GUINandGate", - "name": "GUINandGate#9", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#5", "pos": { - "x": 70.0, - "y": 10.0 + "x": 6.5, + "y": 104.0 }, - "id": "GUINandGate", - "name": "GUINandGate#8", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#6", "pos": { - "x": 40.0, - "y": 90.0 + "x": 31.5, + "y": 54.0 }, - "id": "GUINandGate", - "name": "GUINandGate#5", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#7", "pos": { - "x": 40.0, - "y": 50.0 + "x": 34.0, + "y": 59.0 }, - "id": "GUINandGate", - "name": "GUINandGate#4", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#8", "pos": { - "x": 40.0, - "y": 170.0 + "x": 34.0, + "y": 64.0 }, - "id": "GUINandGate", - "name": "GUINandGate#7", "params": 1 }, { + "id": "WireCrossPoint", + "name": "WireCrossPoint#9", "pos": { - "x": 40.0, - "y": 130.0 + "x": 34.0, + "y": 134.0 }, - "id": "GUINandGate", - "name": "GUINandGate#6", "params": 1 } ], - "innerWires": [ + "wires": [ { "pin1": { "compName": "_submodelinterface", @@ -361,6 +368,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#0", "pinName": "" }, + "name": "unnamedWire#0", "path": [] }, { @@ -372,6 +380,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#3", "pinName": "A" }, + "name": "unnamedWire#1", "path": [ { "x": 5.0, @@ -387,122 +396,6 @@ mograsim version: 0.1.3 } ] }, - { - "pin1": { - "compName": "WireCrossPoint#0", - "pinName": "" - }, - "pin2": { - "compName": "WireCrossPoint#1", - "pinName": "" - }, - "path": [] - }, - { - "pin1": { - "compName": "WireCrossPoint#1", - "pinName": "" - }, - "pin2": { - "compName": "GUINandGate#0", - "pinName": "A" - }, - "path": [ - { - "x": 7.5, - "y": 15.0 - } - ] - }, - { - "pin1": { - "compName": "WireCrossPoint#1", - "pinName": "" - }, - "pin2": { - "compName": "GUINandGate#0", - "pinName": "B" - }, - "path": [ - { - "x": 7.5, - "y": 25.0 - } - ] - }, - { - "pin1": { - "compName": "WireCrossPoint#0", - "pinName": "" - }, - "pin2": { - "compName": "WireCrossPoint#2", - "pinName": "" - }, - "path": [] - }, - { - "pin1": { - "compName": "WireCrossPoint#2", - "pinName": "" - }, - "pin2": { - "compName": "GUINandGate#6", - "pinName": "B" - }, - "path": [] - }, - { - "pin1": { - "compName": "WireCrossPoint#2", - "pinName": "" - }, - "pin2": { - "compName": "GUINandGate#12", - "pinName": "B" - }, - "path": [ - { - "x": 5.0, - "y": 195.0 - }, - { - "x": 65.0, - "y": 195.0 - }, - { - "x": 65.0, - "y": 185.0 - } - ] - }, - { - "pin1": { - "compName": "_submodelinterface", - "pinName": "I1" - }, - "pin2": { - "compName": "WireCrossPoint#3", - "pinName": "" - }, - "path": [] - }, - { - "pin1": { - "compName": "WireCrossPoint#3", - "pinName": "" - }, - "pin2": { - "compName": "GUINandGate#1", - "pinName": "A" - }, - "path": [ - { - "x": 7.5, - "y": 55.0 - } - ] - }, { "pin1": { "compName": "WireCrossPoint#3", @@ -512,6 +405,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#1", "pinName": "B" }, + "name": "unnamedWire#10", "path": [ { "x": 7.5, @@ -528,6 +422,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#4", "pinName": "" }, + "name": "unnamedWire#11", "path": [] }, { @@ -539,6 +434,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#2", "pinName": "A" }, + "name": "unnamedWire#12", "path": [ { "x": 7.5, @@ -555,6 +451,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#5", "pinName": "" }, + "name": "unnamedWire#13", "path": [] }, { @@ -566,6 +463,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#2", "pinName": "B" }, + "name": "unnamedWire#14", "path": [] }, { @@ -577,6 +475,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#5", "pinName": "B" }, + "name": "unnamedWire#15", "path": [ { "x": 7.5, @@ -601,6 +500,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#6", "pinName": "" }, + "name": "unnamedWire#16", "path": [ { "x": 32.5, @@ -617,6 +517,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#4", "pinName": "A" }, + "name": "unnamedWire#17", "path": [] }, { @@ -628,6 +529,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#5", "pinName": "A" }, + "name": "unnamedWire#18", "path": [ { "x": 32.5, @@ -644,6 +546,19 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#7", "pinName": "" }, + "name": "unnamedWire#19", + "path": [] + }, + { + "pin1": { + "compName": "WireCrossPoint#0", + "pinName": "" + }, + "pin2": { + "compName": "WireCrossPoint#1", + "pinName": "" + }, + "name": "unnamedWire#2", "path": [] }, { @@ -655,6 +570,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#3", "pinName": "B" }, + "name": "unnamedWire#20", "path": [ { "x": 35.0, @@ -671,6 +587,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#8", "pinName": "" }, + "name": "unnamedWire#21", "path": [] }, { @@ -682,6 +599,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#4", "pinName": "B" }, + "name": "unnamedWire#22", "path": [] }, { @@ -693,6 +611,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#9", "pinName": "" }, + "name": "unnamedWire#23", "path": [] }, { @@ -704,6 +623,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#6", "pinName": "A" }, + "name": "unnamedWire#24", "path": [] }, { @@ -715,6 +635,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#7", "pinName": "A" }, + "name": "unnamedWire#25", "path": [ { "x": 35.0, @@ -731,6 +652,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#10", "pinName": "" }, + "name": "unnamedWire#26", "path": [] }, { @@ -742,6 +664,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#8", "pinName": "B" }, + "name": "unnamedWire#27", "path": [ { "x": 37.5, @@ -766,6 +689,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#7", "pinName": "B" }, + "name": "unnamedWire#28", "path": [ { "x": 37.5, @@ -781,7 +705,25 @@ mograsim version: 0.1.3 "pin2": { "compName": "GUINandGate#8", "pinName": "A" - } + }, + "name": "unnamedWire#29" + }, + { + "pin1": { + "compName": "WireCrossPoint#1", + "pinName": "" + }, + "pin2": { + "compName": "GUINandGate#0", + "pinName": "A" + }, + "name": "unnamedWire#3", + "path": [ + { + "x": 7.5, + "y": 15.0 + } + ] }, { "pin1": { @@ -792,6 +734,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#11", "pinName": "" }, + "name": "unnamedWire#30", "path": [] }, { @@ -803,6 +746,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#9", "pinName": "A" }, + "name": "unnamedWire#31", "path": [ { "x": 65.0, @@ -819,6 +763,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#9", "pinName": "B" }, + "name": "unnamedWire#32", "path": [ { "x": 65.0, @@ -835,6 +780,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#12", "pinName": "" }, + "name": "unnamedWire#33", "path": [] }, { @@ -846,6 +792,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#10", "pinName": "A" }, + "name": "unnamedWire#34", "path": [ { "x": 65.0, @@ -862,6 +809,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#10", "pinName": "B" }, + "name": "unnamedWire#35", "path": [ { "x": 65.0, @@ -878,6 +826,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#13", "pinName": "" }, + "name": "unnamedWire#36", "path": [] }, { @@ -889,6 +838,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#11", "pinName": "A" }, + "name": "unnamedWire#37", "path": [ { "x": 65.0, @@ -905,6 +855,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#11", "pinName": "B" }, + "name": "unnamedWire#38", "path": [ { "x": 65.0, @@ -920,7 +871,25 @@ mograsim version: 0.1.3 "pin2": { "compName": "GUINandGate#12", "pinName": "A" - } + }, + "name": "unnamedWire#39" + }, + { + "pin1": { + "compName": "WireCrossPoint#1", + "pinName": "" + }, + "pin2": { + "compName": "GUINandGate#0", + "pinName": "B" + }, + "name": "unnamedWire#4", + "path": [ + { + "x": 7.5, + "y": 25.0 + } + ] }, { "pin1": { @@ -931,6 +900,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#14", "pinName": "" }, + "name": "unnamedWire#40", "path": [] }, { @@ -942,6 +912,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#13", "pinName": "A" }, + "name": "unnamedWire#41", "path": [ { "x": 95.0, @@ -958,6 +929,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#13", "pinName": "B" }, + "name": "unnamedWire#42", "path": [ { "x": 95.0, @@ -974,6 +946,7 @@ mograsim version: 0.1.3 "compName": "_submodelinterface", "pinName": "RA" }, + "name": "unnamedWire#43", "path": [] }, { @@ -985,6 +958,7 @@ mograsim version: 0.1.3 "compName": "_submodelinterface", "pinName": "SB" }, + "name": "unnamedWire#44", "path": [] }, { @@ -996,6 +970,7 @@ mograsim version: 0.1.3 "compName": "_submodelinterface", "pinName": "SA" }, + "name": "unnamedWire#45", "path": [] }, { @@ -1007,6 +982,7 @@ mograsim version: 0.1.3 "compName": "WireCrossPoint#15", "pinName": "" }, + "name": "unnamedWire#46", "path": [] }, { @@ -1018,6 +994,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#14", "pinName": "A" }, + "name": "unnamedWire#47", "path": [ { "x": 95.0, @@ -1034,6 +1011,7 @@ mograsim version: 0.1.3 "compName": "GUINandGate#14", "pinName": "B" }, + "name": "unnamedWire#48", "path": [ { "x": 95.0, @@ -1050,6 +1028,19 @@ mograsim version: 0.1.3 "compName": "_submodelinterface", "pinName": "SQ" }, + "name": "unnamedWire#49", + "path": [] + }, + { + "pin1": { + "compName": "WireCrossPoint#0", + "pinName": "" + }, + "pin2": { + "compName": "WireCrossPoint#2", + "pinName": "" + }, + "name": "unnamedWire#5", "path": [] }, { @@ -1061,16 +1052,87 @@ mograsim version: 0.1.3 "compName": "_submodelinterface", "pinName": "RD" }, + "name": "unnamedWire#50", "path": [] + }, + { + "pin1": { + "compName": "WireCrossPoint#2", + "pinName": "" + }, + "pin2": { + "compName": "GUINandGate#6", + "pinName": "B" + }, + "name": "unnamedWire#6", + "path": [] + }, + { + "pin1": { + "compName": "WireCrossPoint#2", + "pinName": "" + }, + "pin2": { + "compName": "GUINandGate#12", + "pinName": "B" + }, + "name": "unnamedWire#7", + "path": [ + { + "x": 5.0, + "y": 195.0 + }, + { + "x": 65.0, + "y": 195.0 + }, + { + "x": 65.0, + "y": 185.0 + } + ] + }, + { + "pin1": { + "compName": "_submodelinterface", + "pinName": "I1" + }, + "pin2": { + "compName": "WireCrossPoint#3", + "pinName": "" + }, + "name": "unnamedWire#8", + "path": [] + }, + { + "pin1": { + "compName": "WireCrossPoint#3", + "pinName": "" + }, + "pin2": { + "compName": "GUINandGate#1", + "pinName": "A" + }, + "name": "unnamedWire#9", + "path": [ + { + "x": 7.5, + "y": 55.0 + } + ] } - ] + ], + "version": "0.1.1" }, - "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer", + "symbolRendererSnippetID": "simpleRectangularLike", "symbolRendererParams": { "centerText": "Am2901SourceDecode", - "horizontalComponentCenter": 17.5, "centerTextHeight": 5.0, + "horizontalComponentCenter": 17.5, "pinLabelHeight": 3.5, "pinLabelMargin": 0.5 - } + }, + "outlineRendererSnippetID": "default", + "highLevelStateHandlerSnippetID": "default", + "version": "0.1.5" } \ No newline at end of file