?? func_sim.do
字號(hào):
# 16b/20b Functional Simulation ModelSim DO file
# Create work library
vlib work
# Compile package files
vcom -just e -93 -explicit -work work pkg_convert.vhd
vcom -skip e -93 -explicit -work work pkg_convert.vhd
vcom -just e -93 -explicit -work work pkg_spc_char.vhd
vcom -skip e -93 -explicit -work work pkg_spc_char.vhd
# Compile encoder files
vcom -just e -93 -explicit enc_func.vhd
vcom -skip e -93 -explicit enc_func.vhd
vcom -just e -93 -explicit s_gen.vhd
vcom -skip e -93 -explicit s_gen.vhd
vcom -just e -93 -explicit dis_gen_up.vhd
vcom -skip e -93 -explicit dis_gen_up.vhd
vcom -just e -93 -explicit dis_gen_low.vhd
vcom -skip e -93 -explicit dis_gen_low.vhd
vcom -just e -93 -explicit main_enc_up.vhd
vcom -skip e -93 -explicit main_enc_up.vhd
vcom -just e -93 -explicit main_enc_low.vhd
vcom -skip e -93 -explicit main_enc_low.vhd
vcom -just e -93 -explicit encoder.vhd
vcom -skip e -93 -explicit encoder.vhd
# Compile decoder files
vcom -just e -93 -explicit err_det.vhd
vcom -skip e -93 -explicit err_det.vhd
vcom -just e -93 -explicit err_check.vhd
vcom -skip e -93 -explicit err_check.vhd
vcom -just e -93 -explicit dec_func.vhd
vcom -skip e -93 -explicit dec_func.vhd
vcom -just e -93 -explicit main_dec.vhd
vcom -skip e -93 -explicit main_dec.vhd
vcom -just e -93 -explicit decoder.vhd
vcom -skip e -93 -explicit decoder.vhd
# Compile test bench files
vcom -just e -93 -explicit tst_bench.vhd
vcom -skip e -93 -explicit tst_bench.vhd
vcom -just e -93 -explicit main_tb.vhd
vcom -skip e -93 -explicit main_tb.vhd
# Load simulation: main_tb
vsim -t 1ps -L unisims -lib work main_tb
# View wave window and run wave.do
view wave
do wave.do
view structure
view signals
# Simulation time
run 45us
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -