-
Notifications
You must be signed in to change notification settings - Fork 0
/
testALU.do
52 lines (40 loc) · 1.14 KB
/
testALU.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
46
47
48
49
50
51
52
# Create work library
vlib work
# Compile Verilog
# All Verilog files that are part of this design should have
# their own "vlog" line below.
vlog "./registers/regstim.sv"
vlog "./registers/regfile.sv"
vlog "./registers/reg64.sv"
vlog "./D_FF.sv"
vlog "./decoders/decoder2_4.sv"
vlog "./decoders/decoder3_8.sv"
vlog "./decoders/decoder5_32.sv"
vlog "./muxes/mux2_1.sv"
vlog "./muxes/mux4_1.sv"
vlog "./muxes/mux8_1.sv"
vlog "./muxes/mux16_1.sv"
vlog "./muxes/mux32_1.sv"
vlog "./muxes/mux64x32_64.sv"
vlog "./alu/alustim.sv"
vlog "./alu/alu_1bit.sv"
vlog "./alu/alu.sv"
vlog "./alu/adders/adder_full.sv"
vlog "./alu/adders/adder_half.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 regstim
vsim -voptargs="+acc" -t 1ps -lib work alustim
# Source the wave do file
# This should be the file that sets up the signal window for
# the module you are testing.
#do registers/regstim_wave.do
do alu/alustim_wave.do
# Set the window types
view wave
view structure
view signals
# Run the simulation
run -all
# End