projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Redefined PinUsages; cleaned component JSONs
[Mograsim.git]
/
plugins
/
net.mograsim.logic.model.am2900
/
src
/
net
/
mograsim
/
logic
/
model
/
examples
/
ModelComponentTestbench.java
diff --git
a/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/ModelComponentTestbench.java
b/plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/ModelComponentTestbench.java
index
4d49fde
..
c7e1a46
100644
(file)
--- a/
plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/ModelComponentTestbench.java
+++ b/
plugins/net.mograsim.logic.model.am2900/src/net/mograsim/logic/model/examples/ModelComponentTestbench.java
@@
-27,7
+27,7
@@
public class ModelComponentTestbench
{
Am2900Loader.setup();
// ModelComponent comp = new StrictAm2900MachineDefinition().createNew(model).getAm2900();
{
Am2900Loader.setup();
// ModelComponent comp = new StrictAm2900MachineDefinition().createNew(model).getAm2900();
- ModelComponent comp = IndirectModelComponentCreator.createComponent(model, "Am29
1
0");
+ ModelComponent comp = IndirectModelComponentCreator.createComponent(model, "Am29
0
0");
List<String> inputPinNames = new ArrayList<>();
List<String> outputPinNames = new ArrayList<>();
List<String> inputPinNames = new ArrayList<>();
List<String> outputPinNames = new ArrayList<>();
@@
-35,6
+35,7
@@
public class ModelComponentTestbench
if (p.usage == PinUsage.INPUT)
inputPinNames.add(p.name);
else
if (p.usage == PinUsage.INPUT)
inputPinNames.add(p.name);
else
+ // TODO handle TRISTATE pins
outputPinNames.add(p.name);
inputPinNames.sort(Comparator.comparing(comp::getPin, Comparator.comparing(Pin::getRelY)));
outputPinNames.add(p.name);
inputPinNames.sort(Comparator.comparing(comp::getPin, Comparator.comparing(Pin::getRelY)));