-
Notifications
You must be signed in to change notification settings - Fork 0
/
runrtlController.do
44 lines (34 loc) · 1.1 KB
/
runrtlController.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
42
43
44
# 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 "./Controller.sv"
vlog -work work +acc "./myROM1.v"
vlog -work work +acc "./IR.sv"
vlog -work work +acc "./SM.sv"
vlog -work work +acc "./PC.sv"
# 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 Controller_tb
# Source the wave do file
# This should be the file that sets up the signal window for
# the module you are testing.
do Controller_wave.do
# Set the window types
view wave
view structure
view signals
# Run the simulation
run -all
# View the entire wave display
wave zoomfull
# End