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.model.am2900
/
test
/
net
/
mograsim
/
logic
/
model
/
am2900
/
TestUtil.java
diff --git
a/net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/TestUtil.java
b/net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/TestUtil.java
index
cd682f2
..
46a4b92
100644
(file)
--- a/
net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/TestUtil.java
+++ b/
net.mograsim.logic.model.am2900/test/net/mograsim/logic/model/am2900/TestUtil.java
@@
-92,11
+92,11
@@
public final class TestUtil
return sb.reverse().toString();
}
return sb.reverse().toString();
}
- public static BitVector of(int value, int
wid
th)
+ public static BitVector of(int value, int
leng
th)
{
{
- BitVectorMutator mutator = BitVectorMutator.of
Width(wid
th);
+ BitVectorMutator mutator = BitVectorMutator.of
Length(leng
th);
int val = value;
int val = value;
- for (int i =
wid
th - 1; i >= 0; i--)
+ for (int i =
leng
th - 1; i >= 0; i--)
{
mutator.setMSBit(i, Bit.lastBitOf(val));
val >>>= 1;
{
mutator.setMSBit(i, Bit.lastBitOf(val));
val >>>= 1;