projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformatted everything. Eclipse built-in Linewrapping/Comments 140 chars
[Mograsim.git]
/
era.mi
/
src
/
era
/
mi
/
logic
/
tests
/
Connector.java
diff --git
a/era.mi/src/era/mi/logic/tests/Connector.java
b/era.mi/src/era/mi/logic/tests/Connector.java
index
11d7436
..
99975da
100644
(file)
--- a/
era.mi/src/era/mi/logic/tests/Connector.java
+++ b/
era.mi/src/era/mi/logic/tests/Connector.java
@@
-6,15
+6,13
@@
import era.mi.logic.wires.WireArray;
import era.mi.logic.wires.WireArray.WireArrayInput;
import era.mi.logic.wires.WireArrayObserver;
import era.mi.logic.wires.WireArray.WireArrayInput;
import era.mi.logic.wires.WireArrayObserver;
-public class Connector implements WireArrayObserver
-{
+public class Connector implements WireArrayObserver {
private final WireArray a;
// private final WireArray b;
private final WireArrayInput aI;
private final WireArrayInput bI;
private final WireArray a;
// private final WireArray b;
private final WireArrayInput aI;
private final WireArrayInput bI;
- public Connector(WireArray a, WireArray b)
- {
+ public Connector(WireArray a, WireArray b) {
if (a.length != b.length)
throw new IllegalArgumentException(String.format("WireArray width does not match: %d, %d", a.length, b.length));
this.a = a;
if (a.length != b.length)
throw new IllegalArgumentException(String.format("WireArray width does not match: %d, %d", a.length, b.length));
this.a = a;
@@
-26,10
+24,8
@@
public class Connector implements WireArrayObserver
}
@Override
}
@Override
- public void update(WireArray initiator, Bit[] oldValues)
- {
- Simulation.TIMELINE.addEvent((e) ->
- {
+ public void update(WireArray initiator, Bit[] oldValues) {
+ Simulation.TIMELINE.addEvent((e) -> {
if (initiator == a)
bI.feedSignals(aI.wireValuesExcludingMe());
else
if (initiator == a)
bI.feedSignals(aI.wireValuesExcludingMe());
else