Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script for generating co-simulation (verilog/spice) testbench files from a DUT in HAC source #56

Open
nbingham1 opened this issue Jul 1, 2016 · 0 comments
Labels

Comments

@nbingham1
Copy link

We need to generate the verilog and spice testbenches for prsim-verilog-spice cosimulation for Synopsys VCS and Cadence Incisive. For example, if we have the following files:

test.prs:

import "source.prs";
import "sink.prs";
import "buffer.prs";

globals g;
e1of2 L, R;
source_random_e1of2 Lsrc(g, L);
sink_e1of2 Rsink(g, R);
wchb dut(g, L, R);

test.prsimrc

set g._sReset 0
set g._pReset 0
cycle
set g._pReset 1
cycle
set g._sReset 1
cycle

Then we can make the following call to prspice:

prspice -c netgen.conf -i 'dut' -tool 'incisive' test.prs test.prsimrc

where 'i' stands for instance 'c' stands for configuration and 'tool' picks the verilog/spice tool flow being used, and it will generate the toplevel verilog and spice test benches, create a netlist for the dut, create a prso for the environment, and create a Makefile with the commands necessary to run the simulation.

@fangism fangism changed the title feature request prspice script for generating co-simulation (verilog/spice) testbench files from a DUT in HAC source Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants