Skip to content

How to emit vcd file when using chisel3.simulator for testing? #3957

Answered by hakan-demirli
longfangsong asked this question in Q&A
Discussion options

You must be logged in to vote

I was also looking for an answer and here is what I have found:

Currently it is not possible to dump vcd files without extending the existing simulator. Existing one is EphemeralSimulator object which uses a DefaultSimulator class which extends SingleBackendSimulator with a verilator.Backend.
https://github.com/chipsalliance/chisel/blob/ce05462c239deec8aee0704efbd3a71e8b64ec49/src/main/scala/chisel3/simulator/EphemeralSimulator.scala

In the DefaultSimulator class, the backendSpecificCompilationSettings is set to verilator.Backend.CompilationSettings(), which is the default settings. To enable VCD generation, you would need to modify these settings to include:

traceStyle = Some(Compilation…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by longfangsong
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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