chisel-tutorial icon indicating copy to clipboard operation
chisel-tutorial copied to clipboard

Generated VCD

Open davidwende opened this issue 7 years ago • 3 comments

The problems/solutions are great. Is there any way to generate vcd files for added usefulness?

There is some mention in the older documentation but this does not seem relevant for latest pull.

davidwende avatar Apr 27 '17 14:04 davidwende

This is a little convoluted but here is the quick way. We'll take advantage of the fact that the verilator backend creates a vcd output file by default, so we'll make it run instead of the default interpreter backend.
Let's use the example of running the examples.Adder tutorial. Run it as follows from the command line prompt.

TESTER_BACKENDS="verilator" ./run-examples.sh Adder

The vcd file will appear here

ls -l test_run_dir/examples.Launcher.*/*.vcd

I have added a more detailed explanation of another way to do this by using your own invocation of the Driver harness. Check it out on the Tutorial Wiki Faq

chick avatar Apr 27 '17 17:04 chick

@davidwende, this is a good question, I'd like recommend asking these kinds of questions on stack overflow using the [Chisel] tag. I think it provides a little better visibility for others who might be looking for this kind of answer

chick avatar Apr 27 '17 17:04 chick

Hi Chick,

Tried the first solution and worked fine, except for one thing. Verilator is not installed as a part of chisel-tutorial. I installed the Linux distribution version instead (ARCH Linux) and this is OK. Thanks a lot for the help. David

On Thu, Apr 27, 2017 at 8:59 PM, Chick Markley [email protected] wrote:

@davidwende https://github.com/davidwende, this is a good question, I'd like recommend asking these kinds of questions on stack overflow using the [Chisel] tag. I think it provides a little better visibility for others who might be looking for this kind of answer

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ucb-bar/chisel-tutorial/issues/83#issuecomment-297791967, or mute the thread https://github.com/notifications/unsubscribe-auth/AIiIDvqfxmZQVUl1TKsdup3AfOuT9-H5ks5r0NeTgaJpZM4NKRrJ .

-- David Wende home +972-73-7416082 work +972-2-5886116 mobile +972-54-234-6479

davidwende avatar Apr 30 '17 07:04 davidwende