UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
684 Views
Registered: ‎03-08-2018

How to simulate a design with an IP using Linux shell command (xvlog, xelab, or xsim) ?

I know I can save verilog filenames in an filelist.f file, and then use "xvlog -f filelist.f ... ; xelab ... ; xsim ...".

But how should I do with the IP directory (e.g., mult_gen_1) generated by Vivado2017.3?

Which Linux shell command should I use?

Which file (as shown in the picture below) in the directory "mult_gen_1" should I use?

Please help me! Thanks a lot!

 

20180308222740.png
0 Kudos
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
660 Views
Registered: ‎09-25-2014

Re: How to simulate a design with an IP using Linux shell command (xvlog, xelab, or xsim) ?

Hi @kongyangyang,

 

You can use export simulation to generate simulation scripts. Go to file->export->export simulation. This will generate scripts which use xvlog , xelab ,xsim commands to run simulation.

 

Thanks,

Srimayee

0 Kudos
Contributor
Contributor
606 Views
Registered: ‎10-09-2017

Re: How to simulate a design with an IP using Linux shell command (xvlog, xelab, or xsim) ?

hi @kongyangyang

 

If what you want is to use an Xilinx ip with your own code? then the problem with export_simulation is that you need to add it all in a Vivado project. The way we do it to get arround this:

 

1. create tcl description for generating the IP.

 - setting up the IP

 - exporting_simulation (to get all the simulation setup for your simulator)

 -  writing the compile commands to a file. exsample: xvlog -prj vlog.prj (this require that you look at the xxx.sh that comes from the export_simulation)

2. run the tcl script in vivado to generate the IP files:

 vivado -mode batch -source yyy.tcl 

3. run the script that was written.

 

then you do the normal compile and elaborate steps. remember that you will need to add the glbl to the elaboration for many of the IPs

 

 

0 Kudos