summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/BlackBox.scala
diff options
context:
space:
mode:
authorJim Lawson2016-07-25 14:06:51 -0700
committerJim Lawson2016-07-25 17:07:33 -0700
commit7aa05590382b0528799ad5e9f1318ce42e409793 (patch)
tree9af7c7513f60efa30c59172a234a8f2926b5430f /src/test/scala/chiselTests/BlackBox.scala
parent3624751e2e63ba9f107c795529edfe48cf8340b2 (diff)
Minimize differences with master.
Remove .Lit(x) usage. Undo "private" scope change. Change "firing" back to "fire". Add package level NODIR definition.
Diffstat (limited to 'src/test/scala/chiselTests/BlackBox.scala')
-rw-r--r--src/test/scala/chiselTests/BlackBox.scala30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/test/scala/chiselTests/BlackBox.scala b/src/test/scala/chiselTests/BlackBox.scala
index 9b43f0ef..c1154883 100644
--- a/src/test/scala/chiselTests/BlackBox.scala
+++ b/src/test/scala/chiselTests/BlackBox.scala
@@ -35,11 +35,11 @@ class BlackBoxTester extends BasicTester {
val blackBoxPos = Module(new BlackBoxInverter)
val blackBoxNeg = Module(new BlackBoxInverter)
- blackBoxPos.io.in := UInt.Lit(1)
- blackBoxNeg.io.in := UInt.Lit(0)
+ blackBoxPos.io.in := UInt(1)
+ blackBoxNeg.io.in := UInt(0)
- assert(blackBoxNeg.io.out === UInt.Lit(1))
- assert(blackBoxPos.io.out === UInt.Lit(0))
+ assert(blackBoxNeg.io.out === UInt(1))
+ assert(blackBoxPos.io.out === UInt(0))
stop()
}
@@ -54,15 +54,15 @@ class MultiBlackBoxTester extends BasicTester {
val blackBoxPassPos = Module(new BlackBoxPassthrough)
val blackBoxPassNeg = Module(new BlackBoxPassthrough)
- blackBoxInvPos.io.in := UInt.Lit(1)
- blackBoxInvNeg.io.in := UInt.Lit(0)
- blackBoxPassPos.io.in := UInt.Lit(1)
- blackBoxPassNeg.io.in := UInt.Lit(0)
+ blackBoxInvPos.io.in := UInt(1)
+ blackBoxInvNeg.io.in := UInt(0)
+ blackBoxPassPos.io.in := UInt(1)
+ blackBoxPassNeg.io.in := UInt(0)
- assert(blackBoxInvNeg.io.out === UInt.Lit(1))
- assert(blackBoxInvPos.io.out === UInt.Lit(0))
- assert(blackBoxPassNeg.io.out === UInt.Lit(0))
- assert(blackBoxPassPos.io.out === UInt.Lit(1))
+ assert(blackBoxInvNeg.io.out === UInt(1))
+ assert(blackBoxInvPos.io.out === UInt(0))
+ assert(blackBoxPassNeg.io.out === UInt(0))
+ assert(blackBoxPassPos.io.out === UInt(1))
stop()
}
@@ -77,7 +77,7 @@ class BlackBoxWithClockTester extends BasicTester {
blackBox.io.in := impetus
model := impetus
- when(cycles > UInt.Lit(0)) {
+ when(cycles > UInt(0)) {
assert(blackBox.io.out === model)
}
when(end) { stop() }
@@ -98,8 +98,8 @@ class BlackBoxWithParamsTester extends BasicTester {
val (cycles, end) = Counter(Bool(true), 4)
- assert(blackBoxOne.io.out === UInt.Lit(1))
- assert(blackBoxFour.io.out === UInt.Lit(4))
+ assert(blackBoxOne.io.out === UInt(1))
+ assert(blackBoxFour.io.out === UInt(4))
when(end) { stop() }
}