.do文件进行Quartus调用modelSIM仿真设定

Posted yangguangpu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了.do文件进行Quartus调用modelSIM仿真设定相关的知识,希望对你有一定的参考价值。

在modelSIM的wave界面,按Ctrl + S,可以保存.do文件,里面有显示波形的命令,结合其他指令,可以协助Quartus进行仿真。

Quartus的工程设置中,EDA Tool Setting ->Simulation ->NativeLink Settings允许指定.do或者.tcl文件来进行仿真。

技术图片

例如这样的.do:

add wave -position insertpoint /tb/sdr_01/init_block_01/rst_n

add wave -divider

add wave -position insertpoint /tb/sdr_01/init_block_01/sys_sam_clk
add wave -position insertpoint -unsigned /tb/sdr_01/init_block_01/rom_addr_reg
add wave -position insertpoint /tb/sdr_01/init_block_01/rom_data
add wave -position insertpoint /tb/sdr_01/init_block_01/rom_data_reg
add wave -position insertpoint /tb/sdr_01/init_block_01/stat
add wave -position insertpoint /tb/sdr_01/init_block_01/stat_preload
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_addr_reg
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_data_reg
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_wr
add wave -position insertpoint /tb/sdr_01/init_block_01/is_instr_done
add wave -position insertpoint /tb/sdr_01/init_block_01/trigger
add wave -position insertpoint /tb/sdr_01/init_block_01/is_trigger_asserted

add wave -divider

add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/sys_sam_clk
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/SPI_EN_B
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/SPI_CLK
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/SPI_MISO
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/SPI_MOSI
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/trigger
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/is_done
add wave -position insertpoint -radix hexadecimal /tb/sdr_01/init_block_01/spi_block_01/spi_addr
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/spi_frame
add wave -position insertpoint -radix hexadecimal /tb/sdr_01/init_block_01/spi_block_01/data_master
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/data_slave
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/spi_wr
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/stat
add wave -position insertpoint /tb/sdr_01/init_block_01/spi_block_01/stat_preload
add wave -position insertpoint -unsigned /tb/sdr_01/init_block_01/spi_block_01/spi_cycle_cnt

run 40000000

view wave

这样完成了运行40us的仿真设定。

 

以上是关于.do文件进行Quartus调用modelSIM仿真设定的主要内容,如果未能解决你的问题,请参考以下文章

Quartus系列:Quartus II 原理图调用ModelSim进行仿真

Quartus系列:Quartus II 调用ModelSim仿真调试

Modelsim与Quartus联合调用

Quartus17下使用Modelsim10进行仿真

Quartus17下使用Modelsim10进行仿真

Quartus17下使用Modelsim10进行仿真