summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/Tester.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/Chisel/Tester.scala')
-rw-r--r--src/main/scala/Chisel/Tester.scala5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/scala/Chisel/Tester.scala b/src/main/scala/Chisel/Tester.scala
index f8fb23fc..8f013f7b 100644
--- a/src/main/scala/Chisel/Tester.scala
+++ b/src/main/scala/Chisel/Tester.scala
@@ -286,8 +286,9 @@ class ManualTester[+T <: Module]
}
def int(x: Boolean): BigInt = if (x) 1 else 0
- def int(x: Int): BigInt = x
- def int(x: Bits): BigInt = x.litValue()
+ def int(x: Int): BigInt = (BigInt(x >>> 1) << 1) | x & 1
+ def int(x: Long): BigInt = (BigInt(x >>> 1) << 1) | x & 1
+ def int(x: Bits): BigInt = x.litValue()
var ok = true;
var failureTime = -1