diff options
| author | Henry Cook | 2015-08-12 19:32:43 -0700 |
|---|---|---|
| committer | Henry Cook | 2015-08-12 19:32:57 -0700 |
| commit | 85d7403f9bf7bc2b3520f924736c237f21f70ebd (patch) | |
| tree | 64560f779063a419395a2fb8a31ea52c52af4404 /src/test/scala/ChiselTests/ModuleWire.scala | |
| parent | 7e69966362b1dbd9835695250494857f3a3767c8 (diff) | |
being to convert tests to scala-test; tests compile and run
Diffstat (limited to 'src/test/scala/ChiselTests/ModuleWire.scala')
| -rw-r--r-- | src/test/scala/ChiselTests/ModuleWire.scala | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/test/scala/ChiselTests/ModuleWire.scala b/src/test/scala/ChiselTests/ModuleWire.scala deleted file mode 100644 index 50d40292..00000000 --- a/src/test/scala/ChiselTests/ModuleWire.scala +++ /dev/null @@ -1,31 +0,0 @@ -package ChiselTests -import Chisel._ -import Chisel.testers._ - -class Inc extends Module { - val io = new Bundle { - val in = UInt(INPUT, 32) - val out = UInt(OUTPUT, 32) - } - io.out := io.in + UInt(1) -} - -class ModuleWire extends Module { - val io = new Bundle { - val in = UInt(INPUT, 32) - val out = UInt(OUTPUT, 32) - } - val inc = Module(new Inc).io - inc.in := io.in - io.out := inc.out -} - - -class ModuleWireTester(c: ModuleWire) extends Tester(c) { - for (t <- 0 until 16) { - val test_in = rnd.nextInt(256) - poke(c.io.in, test_in) - step(1) - expect(c.io.out, test_in + 1) - } -} |
