summaryrefslogtreecommitdiff
path: root/src/test/scala/ChiselTests/Decoder.scala
diff options
context:
space:
mode:
authorHenry Cook2015-08-12 19:32:43 -0700
committerHenry Cook2015-08-12 19:32:57 -0700
commit85d7403f9bf7bc2b3520f924736c237f21f70ebd (patch)
tree64560f779063a419395a2fb8a31ea52c52af4404 /src/test/scala/ChiselTests/Decoder.scala
parent7e69966362b1dbd9835695250494857f3a3767c8 (diff)
being to convert tests to scala-test; tests compile and run
Diffstat (limited to 'src/test/scala/ChiselTests/Decoder.scala')
-rw-r--r--src/test/scala/ChiselTests/Decoder.scala21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/scala/ChiselTests/Decoder.scala b/src/test/scala/ChiselTests/Decoder.scala
deleted file mode 100644
index 147c1b80..00000000
--- a/src/test/scala/ChiselTests/Decoder.scala
+++ /dev/null
@@ -1,21 +0,0 @@
-package ChiselTests
-import Chisel._
-import Chisel.testers._
-
-object Insts {
- def ADD = BitPat("b0000000??????????000?????0110011")
-}
-
-class Decoder extends Module {
- val io = new Bundle {
- val inst = UInt(INPUT, 32)
- val isAdd = Bool(OUTPUT)
- }
- io.isAdd := (Insts.ADD === io.inst)
-}
-
-class DecoderTester(c: Decoder) extends Tester(c) {
- poke(c.io.inst, 0x1348533)
- step(1)
- expect(c.io.isAdd, int(true))
-}