mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 07:17:13 -04:00
Model analyser ignores signals named "VCC" and "GND".
This commit is contained in:
parent
e56963dc9e
commit
06a3c1fd9d
@ -180,6 +180,7 @@ public class ModelAnalyser {
|
|||||||
private ArrayList<Signal> checkBinaryInputs(ArrayList<Signal> list) throws AnalyseException {
|
private ArrayList<Signal> checkBinaryInputs(ArrayList<Signal> list) throws AnalyseException {
|
||||||
ArrayList<Signal> inputs = new ArrayList<>();
|
ArrayList<Signal> inputs = new ArrayList<>();
|
||||||
for (Signal s : list) {
|
for (Signal s : list) {
|
||||||
|
if (!ignoreSignal(s)) {
|
||||||
final int bits = s.getValue().getBits();
|
final int bits = s.getValue().getBits();
|
||||||
if (bits == 1)
|
if (bits == 1)
|
||||||
inputs.add(s);
|
inputs.add(s);
|
||||||
@ -215,9 +216,14 @@ public class ModelAnalyser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return inputs;
|
return inputs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private boolean ignoreSignal(Signal s) {
|
||||||
|
return s.getName().equals("VCC") || s.getName().equals("GND");
|
||||||
|
}
|
||||||
|
|
||||||
private void checkClock(Node node) throws AnalyseException {
|
private void checkClock(Node node) throws AnalyseException {
|
||||||
if (!getClock().hasObserver(node))
|
if (!getClock().hasObserver(node))
|
||||||
throw new AnalyseException(Lang.get("err_ffNeedsToBeConnectedToClock"));
|
throw new AnalyseException(Lang.get("err_ffNeedsToBeConnectedToClock"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user