You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using cocotb to write my testbench. Because it's in python and it's easier than writing verilog testbench.
But to simulate verilog generated by chisel I have to modify the module generated to add timescale :
I'm using cocotb https://github.com/potentialventures/cocotb to write
my testbench. Because it's in python and it's easier than writing verilog
testbench.
But to simulate verilog generated by chisel I have to modify the module
generated to add timescale :
`timescale 1ps/1ps
In the top of source. And this in module
module MyModule (...);
[...] ifdef COCOTB_SIMinitial begin $dumpfile ("MyModule.vcd"); $dumpvars (0, MyModule); #1;endendifendmodule
To dump vcd file.
Is there a way for generating it with the chisel backend (with a special
option for example) ?
—
Reply to this email directly or view it on GitHub #674.
@aswaterman Yes I do that, but with this solution I need to maintain one more source file. I wrote a little quick&dirty python script to add these lines just after the scala verilog generation if somebody is interested by it.
I'm using cocotb to write my testbench. Because it's in python and it's easier than writing verilog testbench.
But to simulate verilog generated by chisel I have to modify the module generated to add timescale :
In the top of source.
And vcd directive in the end of module
To dump vcd file.
Is there a way for generating it with the chisel backend (with a special option for example) ?
The text was updated successfully, but these errors were encountered: