cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
buddha1987
Voyager
Voyager
9,516 Views
Registered: ‎10-25-2012

Reuse the tcl file generate thru nativelink by Vivado for simulationin Questa (or Modelsim)

I use Vivado nativelink to generate do file for simulation. This saves a lot time since I don't need to write the tcl by myself.

However.  I found a big problem when I try to reuse the generated do file thru run the do file in Questa as :

 

do  sim.do

 

But it seems I always confront problems. The format of generated do file is always like:

vlib work
vlib msim/blk_mem_gen_v8_1
vlib msim/fifo_generator_v11_0

 

vmap blk_mem_gen_v8_1 msim/blk_mem_gen_v8_1
vmap fifo_generator_v11_0 msim/fifo_generator_v11_0

 

It seems:

 

1. Questa can't create directory using command like : vlib msim/blk_mem_gen_v8_1

2. It seems all previous generated files, directorys need to be deleted before Questa run the do file again.

 

So anyone have idea how I should modify the do file generated by Vivado to reuse?

 

Thanks very much.

0 Kudos
5 Replies
buddha1987
Voyager
Voyager
9,477 Views
Registered: ‎10-25-2012

Anyone has idea?
0 Kudos
dprasad
Xilinx Employee
Xilinx Employee
9,470 Views
Registered: ‎09-13-2014

In do file, at top, please write following command

 

\rm -rf work

\rm -rf msim/*

 

This will clean the previous dump so you should not see the issue on re-run.

0 Kudos
buddha1987
Voyager
Voyager
9,461 Views
Registered: ‎10-25-2012

Thanks. So the only thing I need to do before is delete work directory and msim directory?

Thanks.
0 Kudos
dprasad
Xilinx Employee
Xilinx Employee
9,460 Views
Registered: ‎09-13-2014

Don't delete the msim directory completely rather delete the content of msim directory i.e msim/*

0 Kudos
buddha1987
Voyager
Voyager
9,456 Views
Registered: ‎10-25-2012

It seems no matter I completely delete msim or just delete content of msim, both works.
0 Kudos