projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added first test structures for Am2904 and Am2910
[Mograsim.git]
/
net.mograsim.logic.core
/
src
/
net
/
mograsim
/
logic
/
core
/
wires
/
Wire.java
diff --git
a/net.mograsim.logic.core/src/net/mograsim/logic/core/wires/Wire.java
b/net.mograsim.logic.core/src/net/mograsim/logic/core/wires/Wire.java
index
a14efb0
..
4e12d10
100644
(file)
--- a/
net.mograsim.logic.core/src/net/mograsim/logic/core/wires/Wire.java
+++ b/
net.mograsim.logic.core/src/net/mograsim/logic/core/wires/Wire.java
@@
-150,14
+150,20
@@
public class Wire
return val;
}
return val;
}
+ /**
+ * Returns the least significant bit (LSB)
+ */
public Bit getValue()
{
return getValue(0);
}
public Bit getValue()
{
return getValue(0);
}
+ /**
+ * Returns the least significant bit (LSB) of the given index
+ */
public Bit getValue(int index)
{
public Bit getValue(int index)
{
- return values.getBit(index);
+ return values.get
LS
Bit(index);
}
public BitVector getValues(int start, int end)
}
public BitVector getValues(int start, int end)
@@
-259,12
+265,6
@@
public class Wire
return Wire.this.getValue(index);
}
return Wire.this.getValue(index);
}
- /**
- * @param index Index of the requested bit.
- * @return The value of the indexed bit.
- *
- * @author Fabian Stemmler
- */
public BitVector getValues()
{
return Wire.this.getValues();
public BitVector getValues()
{
return Wire.this.getValues();
@@
-446,7
+446,8
@@
public class Wire
}
/**
}
/**
- * @return The value (of bit 0) the {@link ReadEnd} is currently feeding into the associated {@link Wire}.
+ * @return The value (of bit 0) the {@link ReadEnd} is currently feeding into the associated {@link Wire}.Returns the least
+ * significant bit (LSB)
*/
public Bit getInputValue()
{
*/
public Bit getInputValue()
{
@@
-455,10
+456,12
@@
public class Wire
/**
* @return The value which the {@link ReadEnd} is currently feeding into the associated {@link Wire} at the indexed {@link Bit}.
/**
* @return The value which the {@link ReadEnd} is currently feeding into the associated {@link Wire} at the indexed {@link Bit}.
+ * Returns the least significant bit (LSB)
+ *
*/
public Bit getInputValue(int index)
{
*/
public Bit getInputValue(int index)
{
- return inputValues.getBit(index);
+ return inputValues.get
LS
Bit(index);
}
/**
}
/**
@@
-466,7
+469,7
@@
public class Wire
*/
public BitVector getInputValues()
{
*/
public BitVector getInputValues()
{
- return
getInputValues(0, length)
;
+ return
inputValues
;
}
public BitVector getInputValues(int start, int end)
}
public BitVector getInputValues(int start, int end)