Search code examples
chisel

Using Multiple Clocks in Testers


I have a module with multiple clocks, using withClockAndReset. When writing the testbench, how do I provide a clock stimulus on the named clock port?


Solution

  • chisel-testers has very limited abilities for doing what you want. I think your best bet within the standard chisel stack is to try and use the new chisel-testers2. There is an example in the unit tests in that repo: ClockDividerTest.scala and a couple of other clock related tests. This is a very active area of chisel development right now. If you can try this, the team is very interested in making this work.