projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a bug in Am2900; created dlatch8/80; relayouted some components
[Mograsim.git]
/
net.mograsim.logic.core
/
src
/
net
/
mograsim
/
logic
/
core
/
components
/
CoreMux.java
diff --git
a/net.mograsim.logic.core/src/net/mograsim/logic/core/components/CoreMux.java
b/net.mograsim.logic.core/src/net/mograsim/logic/core/components/CoreMux.java
index
a47ad6b
..
5b4220a
100644
(file)
--- a/
net.mograsim.logic.core/src/net/mograsim/logic/core/components/CoreMux.java
+++ b/
net.mograsim.logic.core/src/net/mograsim/logic/core/components/CoreMux.java
@@
-71,7
+71,7
@@
public class CoreMux extends BasicCoreComponent
public TimelineEventHandler compute()
{
int selectValue;
public TimelineEventHandler compute()
{
int selectValue;
- if (!select.
hasNumericValue() || (selectValue = (int) select.getUnsignedValue
()) >= inputs.length)
+ if (!select.
getValues().isBinary() || (selectValue = (int) select.getValues().getUnsignedValueLong
()) >= inputs.length)
{
return e -> out.clearSignals();
}
{
return e -> out.clearSignals();
}