projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated SubmodelComponentParams json format
[Mograsim.git]
/
net.mograsim.logic.ui
/
src
/
net
/
mograsim
/
logic
/
ui
/
examples
/
SubmodelComponentTestbench.java
diff --git
a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java
b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java
index
681b3b3
..
7218fec
100644
(file)
--- a/
net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java
+++ b/
net.mograsim.logic.ui/src/net/mograsim/logic/ui/examples/SubmodelComponentTestbench.java
@@
-21,17
+21,17
@@
public class SubmodelComponentTestbench
SimpleRectangularSubmodelComponent comp = new GUIAm2901ALUInclDecode(model);
comp.moveTo(100, 0);
SimpleRectangularSubmodelComponent comp = new GUIAm2901ALUInclDecode(model);
comp.moveTo(100, 0);
- for (int i = 0; i < comp.getInputPins().size(); i++)
+ for (int i = 0; i < comp.getInputPin
Name
s().size(); i++)
{
GUIManualSwitch sw = new GUIManualSwitch(model);
sw.moveTo(0, 20 * i);
{
GUIManualSwitch sw = new GUIManualSwitch(model);
sw.moveTo(0, 20 * i);
- new GUIWire(model, comp.get
InputPins().get(i
), sw.getOutputPin());
+ new GUIWire(model, comp.get
Pin(comp.getInputPinNames().get(i)
), sw.getOutputPin());
}
}
- for (int i = 0; i < comp.getOutputPins().size(); i++)
+ for (int i = 0; i < comp.getOutputPin
Name
s().size(); i++)
{
GUIBitDisplay bd = new GUIBitDisplay(model);
bd.moveTo(200, 20 * i);
{
GUIBitDisplay bd = new GUIBitDisplay(model);
bd.moveTo(200, 20 * i);
- new GUIWire(model, comp.get
OutputPins().get(i
), bd.getInputPin());
+ new GUIWire(model, comp.get
Pin(comp.getOutputPinNames().get(i)
), bd.getInputPin());
}
}
}
\ No newline at end of file
}
}
}
\ No newline at end of file