projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fusebug' into development
[Mograsim.git]
/
net.mograsim.logic.core
/
src
/
net
/
mograsim
/
logic
/
core
/
components
/
ManualSwitch.java
diff --git
a/net.mograsim.logic.core/src/net/mograsim/logic/core/components/ManualSwitch.java
b/net.mograsim.logic.core/src/net/mograsim/logic/core/components/ManualSwitch.java
index
25445ee
..
40f0005
100644
(file)
--- a/
net.mograsim.logic.core/src/net/mograsim/logic/core/components/ManualSwitch.java
+++ b/
net.mograsim.logic.core/src/net/mograsim/logic/core/components/ManualSwitch.java
@@
-55,8
+55,8
@@
public class ManualSwitch extends Component implements LogicObservable
public void setState(BitVector bits)
{
public void setState(BitVector bits)
{
- if (bits.
wid
th() != output.width())
- throw new IllegalArgumentException("Incorrect bit vector
wid
th");
+ if (bits.
leng
th() != output.width())
+ throw new IllegalArgumentException("Incorrect bit vector
leng
th");
if (bits.equals(output.getInputValues()))
return;
output.feedSignals(bits);
if (bits.equals(output.getInputValues()))
return;
output.feedSignals(bits);