📄 setup_sim.do
字号:
set sopc "d:/altera/quartus50/sopc_builder"
set sopc_perl "d:/altera/quartus50//bin/perl561"
echo "Sopc_Builder Directory: $sopc";
# ModelSimPE and OEM have different requirements
# regarding how they load their test bench.
# We account for that
if { [ vsimAuth ] == "ALTERA" } {
alias _init_setup {vlib work
vmap altera_vhdl_support work
vcom -93 -explicit E:/QProj/Test_LED/altera_vhdl_support.vhd
} } else {
alias _init_setup {vlib work
vmap altera_vhdl_support work
vcom -93 -explicit E:/QProj/Test_LED/altera_vhdl_support.vhd
vmap lpm work
vmap altera_mf work
vmap sgate_pack work
vmap sgate work
vcom -93 -explicit d:/altera/quartus50/eda/sim_lib/altera_mf_components.vhd
vcom -93 -explicit d:/altera/quartus50/eda/sim_lib/altera_mf.vhd
vcom -93 -explicit d:/altera/quartus50/eda/sim_lib/220pack.vhd
vcom -93 -explicit d:/altera/quartus50/eda/sim_lib/220model.vhd
vcom -93 -explicit d:/altera/quartus50/eda/sim_lib/sgate_pack.vhd
vcom -93 -explicit d:/altera/quartus50/eda/sim_lib/sgate.vhd
} }
# ModelSimPE and OEM have different requirements
# regarding how they simulate their test bench.
# We account for that here
if { [ vsimAuth ] == "ALTERA" } {
alias _vsim {vsim +nowarnTFMPC -L lpm -L altera_mf -L sgate test_bench } } else {
alias _vsim {vsim +nowarnTFMPC test_bench } }
alias test_contents_files {if {[ file exists "contents_file_warning.txt" ]} { set ch [open "contents_file_warning.txt" r]; while { 1 } { if ([eof $ch]) {break}; gets $ch line; puts $line; }; close $ch; } }
alias s "_init_setup
vcom -93 -explicit E:/QProj/Test_LED/onchip_RAM.vhd
vcom -93 -explicit E:/QProj/Test_LED/sysid.vhd
vcom -93 -explicit E:/QProj/Test_LED/LED_PIO.vhd
vcom -93 -explicit E:/QProj/Test_LED/onchip_ROM.vhd
vcom -93 -explicit E:/QProj/Test_LED/CPU_test_bench.vhd
vcom -93 -explicit E:/QProj/Test_LED/CPU_jtag_debug_module.vhd
vcom -93 -explicit E:/QProj/Test_LED/CPU_jtag_debug_module_wrapper.vhd
vcom -93 -explicit E:/QProj/Test_LED/CPU.vho
vcom -93 -explicit E:/QProj/Test_LED/first_nios2_system.vhd
_vsim
do virtuals.do
set StdArithNoWarnings 1
; test_contents_files"
alias r "exec $sopc_perl/bin/perl -I $sopc/bin/perl_lib -I $sopc/bin $sopc/bin/run_command_in_unix_like_shell.pl $sopc { cd ../; ./first_nios2_system_generation_script } "
alias c "echo {Regenerating memory contents.
(This may take a moment)...}; restart -f; exec $sopc_perl/bin/perl -I $sopc/bin/perl_lib -I $sopc/bin $sopc/bin/run_command_in_unix_like_shell.pl $sopc { cd ../; ./first_nios2_system_generation_script } --software_only=1"
alias w "do wave_presets.do"
alias l "do list_presets.do"
alias h "
echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
echo @@
echo @@ setup_sim.do
echo @@
echo @@ Defined aliases:
echo @@
echo @@ s -- Load all design (HDL) files.
echo @@ re-vlog/re-vcom and re-vsim the design.
echo @@
echo @@ c -- Re-compile memory contents.
echo @@ Builds C- and assembly-language programs
echo @@ (and associated simulation data-files
echo @@ such as UART simulation strings) for
echo @@ refreshing memory contents.
echo @@ Does NOT re-generate hardware (HDL) files
echo @@ ONLY WORKS WITH LEGACY SDK (Not the Nios IDE)
echo @@
echo @@ w -- Sets-up waveforms for this design
echo @@ Each SOPC-Builder component may have
echo @@ signals 'marked' for display during
echo @@ simulation. This command opens a wave-
echo @@ window containing all such signals.
echo @@
echo @@ l -- Sets-up list waveforms for this design
echo @@ Each SOPC-Builder component may have
echo @@ signals 'marked' for listing during
echo @@ simulation. This command opens a list-
echo @@ window containing all such signals.
echo @@
echo @@ h -- print this message
echo @@
echo @@ ***Special VHDL settings***
echo @@ StdArithNoWarnings=1 in s command
echo @@"
h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -