modelsim 仿真脚本,注意需要添加PLL仿真IP库
#vlog # 编译
#vlib # 建立一个新的工作库/逻辑库
#vmap # 映射逻辑库名到制定的目录
#add wave # 将信号加入波形
#run # 执行仿真(默认执行100ns,-all 执行到结束)
#quit # 退出仿真
vlib work
vmap work work
#library
#vlog -work work ../../library/artix7/*.v
#IP
#vlog -work work ../../../source_code/ROM_IP/rom_controller.v
vlog -work work ../vivado_project/project_1/project_1.srcs/sources_1/ip/clk_wiz_0/clk_wiz_0_sim_netlist.v
#SourceCode
vlog -work work ../design/*.v
#Testbench
vlog -work work sim_tb_top.v
vsim -voptargs=+acc -L unisims_ver -L unisim -L work -Lf unisims_ver work.glbl work.sim_tb_top
#vsim -voptargs=+acc work.sim_tb_top
#Add signal into wave window
do wave.do
#run -all