projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GUIComponents now have names
[Mograsim.git]
/
net.mograsim.logic.ui.am2900
/
components
/
GUIfulladder.json
diff --git
a/net.mograsim.logic.ui.am2900/components/GUIfulladder.json
b/net.mograsim.logic.ui.am2900/components/GUIfulladder.json
index
259ba27
..
dc4c616
100644
(file)
--- a/
net.mograsim.logic.ui.am2900/components/GUIfulladder.json
+++ b/
net.mograsim.logic.ui.am2900/components/GUIfulladder.json
@@
-1,7
+1,5
@@
-mograsim version: 0.1.
2
+mograsim version: 0.1.
3
{
{
- "type": "SimpleRectangularSubmodelComponent",
- "name": "GUIfulladder",
"width": 35.0,
"height": 30.0,
"interfacePins": [
"width": 35.0,
"height": 30.0,
"interfacePins": [
@@
-46,107
+44,106
@@
mograsim version: 0.1.2
"logicWidth": 1
}
],
"logicWidth": 1
}
],
- "
composition
": {
+ "
submodel
": {
"innerScale": 0.4,
"subComps": [
{
"pos": {
"innerScale": 0.4,
"subComps": [
{
"pos": {
- "x": 5
.0
,
+ "x": 5
7.5
,
"y": 40.0
},
"y": 40.0
},
- "name": "GUIhalfadder",
- "params": {}
+ "id": "GUINandGate",
+ "name": "GUINandGate#0",
+ "params": 1
},
{
"pos": {
},
{
"pos": {
- "x":
4
5.0,
- "y":
7.5
+ "x": 5.0,
+ "y":
40.0
},
},
- "
name
": "GUIhalfadder",
- "
params": {}
+ "
id
": "GUIhalfadder",
+ "
name": "GUIhalfadder#0"
},
{
"pos": {
},
{
"pos": {
- "x":
57.5
,
- "y":
40.0
+ "x":
45.0
,
+ "y":
7.5
},
},
- "name": "GUINandGate",
- "params": {
- "logicWidth": 1
- }
+ "id": "GUIhalfadder",
+ "name": "GUIhalfadder#1"
}
],
"innerWires": [
{
"pin1": {
}
],
"innerWires": [
{
"pin1": {
- "comp
Id": 0
,
+ "comp
Name": "_submodelinterface"
,
"pinName": "A"
},
"pin2": {
"pinName": "A"
},
"pin2": {
- "comp
Id": 2
,
+ "comp
Name": "GUIhalfadder#1"
,
"pinName": "A"
},
"path": []
},
{
"pin1": {
"pinName": "A"
},
"path": []
},
{
"pin1": {
- "comp
Id": 0
,
+ "comp
Name": "_submodelinterface"
,
"pinName": "B"
},
"pin2": {
"pinName": "B"
},
"pin2": {
- "comp
Id": 1
,
+ "comp
Name": "GUIhalfadder#0"
,
"pinName": "A"
}
},
{
"pin1": {
"pinName": "A"
}
},
{
"pin1": {
- "comp
Id": 0
,
+ "comp
Name": "_submodelinterface"
,
"pinName": "C"
},
"pin2": {
"pinName": "C"
},
"pin2": {
- "comp
Id": 1
,
+ "comp
Name": "GUIhalfadder#0"
,
"pinName": "B"
}
},
{
"pin1": {
"pinName": "B"
}
},
{
"pin1": {
- "comp
Id": 1
,
+ "comp
Name": "GUIhalfadder#0"
,
"pinName": "Y"
},
"pin2": {
"pinName": "Y"
},
"pin2": {
- "comp
Id": 2
,
+ "comp
Name": "GUIhalfadder#1"
,
"pinName": "B"
}
},
{
"pin1": {
"pinName": "B"
}
},
{
"pin1": {
- "comp
Id": 1
,
+ "comp
Name": "GUIhalfadder#0"
,
"pinName": "_Z"
},
"pin2": {
"pinName": "_Z"
},
"pin2": {
- "comp
Id": 3
,
+ "comp
Name": "GUINandGate#0"
,
"pinName": "B"
},
"path": []
},
{
"pin1": {
"pinName": "B"
},
"path": []
},
{
"pin1": {
- "comp
Id": 2
,
+ "comp
Name": "GUIhalfadder#1"
,
"pinName": "Y"
},
"pin2": {
"pinName": "Y"
},
"pin2": {
- "comp
Id": 0
,
+ "comp
Name": "_submodelinterface"
,
"pinName": "Y"
},
"path": []
},
{
"pin1": {
"pinName": "Y"
},
"path": []
},
{
"pin1": {
- "comp
Id": 2
,
+ "comp
Name": "GUIhalfadder#1"
,
"pinName": "_Z"
},
"pin2": {
"pinName": "_Z"
},
"pin2": {
- "comp
Id": 3
,
+ "comp
Name": "GUINandGate#0"
,
"pinName": "A"
},
"path": [
"pinName": "A"
},
"path": [
@@
-170,27
+167,22
@@
mograsim version: 0.1.2
},
{
"pin1": {
},
{
"pin1": {
- "comp
Id": 3
,
+ "comp
Name": "GUINandGate#0"
,
"pinName": "Y"
},
"pin2": {
"pinName": "Y"
},
"pin2": {
- "comp
Id": 0
,
+ "comp
Name": "_submodelinterface"
,
"pinName": "Z"
}
}
]
},
"pinName": "Z"
}
}
]
},
- "specialized": {
- "input_count": [
- "A",
- "B",
- "C"
- ],
- "label": "GUIfulladder",
- "logic_width": 1,
- "output_count": [
- "Y",
- "Z"
- ]
+ "symbolRendererSnippetID": "SimpleRectangularLikeSymbolRenderer",
+ "symbolRendererParams": {
+ "centerText": "GUIfulladder",
+ "horizontalComponentCenter": 17.5,
+ "centerTextHeight": 5.0,
+ "pinLabelHeight": 3.5,
+ "pinLabelMargin": 0.5
}
}
\ No newline at end of file
}
}
\ No newline at end of file