-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunlab.do
45 lines (39 loc) · 1.09 KB
/
runlab.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
45
# Create work library
vlib work
# Compile Verilog
# All Verilog files that are part of this design should have
# their own "vlog" line below.
vlog "./Codes/adder_64.sv"
vlog "./Codes/datamem.sv"
vlog "./Codes/alu.sv"
vlog "./Codes/fulladder.sv"
vlog "./Codes/instructmem.sv"
vlog "./Codes/math.sv"
vlog "./Codes/pipeLinedCPU.sv"
vlog "./Codes/control.sv"
vlog "./Codes/programCounter.sv"
vlog "./Codes/regfile.sv"
vlog "./Codes/singleReg.sv"
vlog "./Codes/fiveTo32Dec.sv"
vlog "./Codes/two2FourDec.sv"
vlog "./Codes/three2EightDec.sv"
vlog "./Codes/mux32_1.sv"
vlog "./Codes/mux8_1.sv"
vlog "./Codes/mux4_1.sv"
vlog "./Codes/mux2_1.sv"
vlog "./Codes/DFF.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 -voptargs="+acc" -t 1ps -lib work pipeLinedCPU_testbench
# Source the wave do file
# This should be the file that sets up the signal window for
# the module you are testing.
do pipeLinedCPU_wave.do
# Set the window types
view wave
view structure
view signals
# Run the simulation
run -all
# End