diff options
| author | Adam Izraelevitz | 2015-12-11 17:21:36 -0800 |
|---|---|---|
| committer | Adam Izraelevitz | 2015-12-11 17:21:36 -0800 |
| commit | b8cd46de6c01febdbdba7ecb83db494bad8a7a94 (patch) | |
| tree | c3a0f10dd286ae2bba50c31b987ab39c45189898 /src/test/scala/chiselTests/Printf.scala | |
| parent | bffc67c2bbeb107d2ff9903aa35e85fbb7da73f9 (diff) | |
| parent | dbd072172f6312893e1922e48ed768ae0fab9a89 (diff) | |
Merge pull request #67 from ucb-bar/asserttest
Refactor tests to use stop() and assert() instead of io.error/io.done
Diffstat (limited to 'src/test/scala/chiselTests/Printf.scala')
| -rw-r--r-- | src/test/scala/chiselTests/Printf.scala | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/test/scala/chiselTests/Printf.scala b/src/test/scala/chiselTests/Printf.scala index e6f5d222..2e26dfbf 100644 --- a/src/test/scala/chiselTests/Printf.scala +++ b/src/test/scala/chiselTests/Printf.scala @@ -7,15 +7,16 @@ import Chisel._ import Chisel.testers.BasicTester class SinglePrintfTester() extends BasicTester { - printf("done=%x", io.done) - io.done := Bool(true) - io.error := Bool(false) + val x = UInt(254) + printf("x=%x", x) + stop() } class MultiPrintfTester() extends BasicTester { - printf("done=%x error=%x", io.done, io.error) - io.done := Bool(true) - io.error := Bool(false) + val x = UInt(254) + val y = UInt(255) + printf("x=%x y=%x", x, y) + stop() } class PrintfSpec extends ChiselFlatSpec { |
