码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-03-29 19:03:50      阅读:300      评论:0      收藏:0      [点我收藏+]

标签:lock   class   src   运行   ati   style   isp   code   spl   

在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仿真设定

标签:lock   class   src   运行   ati   style   isp   code   spl   

原文地址:https://www.cnblogs.com/YangGuangPu/p/10623212.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!