Skip to content

Is chisel3.tester the same as chiseltest? #2014

Answered by ducky64
wangpengabc asked this question in Q&A
Discussion options

You must be logged in to vote

No - chisel3.testers (often used in the chisel3 regression suite) is a pretty basic testharness that provides assertions and failures, but otherwise is just constructing and simulating hardware. So if you needed a counter to drive your DUT, you would have to write one like hardware (as opposed to imperative / straight-line code). Testharnesses are synthesizable (not that there's support for synthesizing them into hardware).

ChiselTest, on the other hand, provides an imperative / straight-line code style for writing tests for hardware, with support for user-defined abstractions / test helper libraries and optional threading-style concurrency. The Verilog analogy is support for nonsynthesiz…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wangpengabc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants