private BitVector values;
public final int travelTime;
private List<ReadEnd> attached = new ArrayList<>();
private BitVector values;
public final int travelTime;
private List<ReadEnd> attached = new ArrayList<>();
- this(timeline, length, travelTime, null);
+ this(timeline, width, travelTime, null);
- public Wire(Timeline timeline, int length, int travelTime, String name)
+ public Wire(Timeline timeline, int width, int travelTime, String name)
- String.format("Tried to create an array of wires with length %d, but a length of less than 1 makes no sense.", length));
+ String.format("Tried to create an array of wires with width %d, but a width of less than 1 makes no sense.", width));
* The {@link Wire} is interpreted as an unsigned integer with n bits.
*
* @return <code>true</code> if all bits are either <code>Bit.ONE</code> or <code>Bit.ZERO</code> (they do not all have to have the same
* The {@link Wire} is interpreted as an unsigned integer with n bits.
*
* @return <code>true</code> if all bits are either <code>Bit.ONE</code> or <code>Bit.ZERO</code> (they do not all have to have the same
- rA.setValues(BitVector.of(Bit.Z, a.length));
- rB.setValues(BitVector.of(Bit.Z, b.length));
+ rA.setValues(BitVector.of(Bit.Z, a.width));
+ rB.setValues(BitVector.of(Bit.Z, b.width));
Fusion aF = new Fusion(rB, fromA, fromB, length), bF = new Fusion(rA, fromB, fromA, length);
rA.registerObserver(aF);
rB.registerObserver(bF);
Fusion aF = new Fusion(rB, fromA, fromB, length), bF = new Fusion(rA, fromB, fromA, length);
rA.registerObserver(aF);
rB.registerObserver(bF);
- fuse(a, b, 0, 0, a.length);
+ fuse(a, b, 0, 0, a.width);