-
Notifications
You must be signed in to change notification settings - Fork 0
/
runrtltestROM.do
41 lines (31 loc) · 1013 Bytes
/
runrtltestROM.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# turn on verbage
transcript on
# Get rid of current work lib
if {[file exists rtl_work]} {
vdel -lib rtl_work -all
}
# Create work library and map it to 'work'
vlib rtl_work
vmap work rtl_work
# Compile Verilog
# All Verilog files that are part of this design should have
# their own "vlog" line below.
vlog -work work +acc "./testROM.sv"
vlog -work work +acc "./myROM1.v"
# Call vsim to invoke simulator
# Make sure the last item on the line is the name of the
# testbench module you want to execute.
vsim -t 1ps -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L altera_lnsim_ver -L cycloneive_ver -L rtl_work -L work -voptargs="+acc" -fsmdebug testROM
# Source the wave do file
# This should be the file that sets up the signal window for
# the module you are testing.
do ROMwave.do
# Set the window types
view wave
view structure
view signals
# Run the simulation
run -all
# View the entire wave display
wave zoomfull
# End