cvw/examples/verilog/riscvsingle/riscvsingle.do

24 lines
601 B
Plaintext
Raw Normal View History

2022-01-10 16:26:18 +00:00
# riscvsingle.do
# David_Harris@hmc.edu 10 January 2021
# compile, optimize, and start the simulation
vlog riscvsingle.sv
vopt +acc work.testbench -o workopt
vsim workopt
# Add waveforms and run the simulation
add wave /testbench/clk
add wave /testbench/reset
add wave -divider "Main Datapath"
add wave /testbench/dut/PC
add wave /testbench/dut/Instr
2022-01-17 16:57:32 +00:00
add wave /testbench/dut/ieu/dp/SrcA
add wave /testbench/dut/ieu/dp/SrcB
add wave /testbench/dut/ieu/dp/Result
2022-01-10 16:26:18 +00:00
add wave -divider "Memory Bus"
add wave /testbench/MemWrite
2022-01-17 16:57:32 +00:00
add wave /testbench/IEUAdr
2022-01-10 16:26:18 +00:00
add wave /testbench/WriteData
2022-01-17 16:57:32 +00:00
run 210
2022-01-10 16:26:18 +00:00
view wave