标签: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的仿真设定。
标签:lock class src 运行 ati style isp code spl
原文地址:https://www.cnblogs.com/YangGuangPu/p/10623212.html