OpenCores
URL https://opencores.org/ocsvn/zet86/zet86/trunk

Subversion Repositories zet86

[/] [zet86/] [trunk/] [sim/] [modelsim/] [tb.do] - Diff between revs 35 and 42

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 35 Rev 42
Line 1... Line 1...
vdel -all -lib work
#vdel -all -lib work
vmap unisims /opt/Xilinx/10.1/modelsim/verilog/unisims
vmap unisims /opt/Xilinx/10.1/modelsim/verilog/unisims
vlib work
vlib work
vlog -work work -lint +incdir+../../rtl-model +incdir+.. ../../rtl-model/regfile.v ../../rtl-model/alu.v ../../rtl-model/cpu.v ../../rtl-model/exec.v ../../rtl-model/fetch.v ../../rtl-model/jmp_cond.v ../../rtl-model/util/primitives.v ../../rtl-model/util/div_su.v ../../rtl-model/util/div_uu.v ../../rtl-model/rotate.v
vlog -work work -lint +incdir+../../rtl-model +incdir+.. ../../rtl-model/regfile.v ../../rtl-model/alu.v ../../rtl-model/cpu.v ../../rtl-model/exec.v ../../rtl-model/fetch.v ../../rtl-model/jmp_cond.v ../../rtl-model/util/primitives.v ../../rtl-model/util/div_su.v ../../rtl-model/util/div_uu.v ../../rtl-model/rotate.v
vlog -work work +incdir+.. ../memory.v ../testbench.v ../mult.v
vlog -work work +incdir+.. ../memory.v ../testbench.v ../mult.v
vlog -work unisims /opt/Xilinx/10.1/ISE/verilog/src/glbl.v
vlog -work unisims /opt/Xilinx/10.1/ISE/verilog/src/glbl.v
Line 19... Line 19...
add wave -label need_off /testbench/cpu0/fetch0/need_off
add wave -label need_off /testbench/cpu0/fetch0/need_off
add wave -label need_imm /testbench/cpu0/fetch0/need_imm
add wave -label need_imm /testbench/cpu0/fetch0/need_imm
add wave -label ir /testbench/cpu0/fetch0/ir
add wave -label ir /testbench/cpu0/fetch0/ir
add wave -label imm -radix hexadecimal /testbench/cpu0/fetch0/imm
add wave -label imm -radix hexadecimal /testbench/cpu0/fetch0/imm
add wave -label off -radix hexadecimal /testbench/cpu0/fetch0/off
add wave -label off -radix hexadecimal /testbench/cpu0/fetch0/off
 
add wave -label intr -radix hexadecimal /testbench/intr
 
add wave -label intr -radix hexadecimal /testbench/cpu0/fetch0/decode0/intr
 
add wave -label inta -radix hexadecimal /testbench/inta
 
add wave -label ext_int -radix hexadecimal /testbench/cpu0/fetch0/decode0/ext_int
 
add wave -label repz_pr -radix hexadecimal /testbench/cpu0/fetch0/repz_pr
add wave -divider mem
add wave -divider mem
add wave -label cs -radix hexadecimal /testbench/cpu0/wm0/cs
add wave -label cs -radix hexadecimal /testbench/cpu0/wm0/cs
add wave -label op -radix hexadecimal /testbench/cpu0/wm0/op
add wave -label op -radix hexadecimal /testbench/cpu0/wm0/op
add wave -label block /testbench/cpu0/wm0/cpu_block
add wave -label block /testbench/cpu0/wm0/cpu_block
add wave -label dat_o -radix hexadecimal sim:/testbench/dat_o
add wave -label dat_o -radix hexadecimal sim:/testbench/dat_o
Line 33... Line 38...
add wave -label stb_o -radix hexadecimal /cpu0/wm0/wb_stb_o
add wave -label stb_o -radix hexadecimal /cpu0/wm0/wb_stb_o
add wave -label cyc_o -radix hexadecimal /cpu0/wm0/wb_cyc_o
add wave -label cyc_o -radix hexadecimal /cpu0/wm0/wb_cyc_o
add wave -label ack_i -radix hexadecimal /cpu0/wm0/wb_ack_i
add wave -label ack_i -radix hexadecimal /cpu0/wm0/wb_ack_i
add wave -label we_o -radix hexadecimal /cpu0/wm0/wb_we_o
add wave -label we_o -radix hexadecimal /cpu0/wm0/wb_we_o
add wave -label tga_o -radix hexadecimal /cpu0/wm0/wb_tga_o
add wave -label tga_o -radix hexadecimal /cpu0/wm0/wb_tga_o
add wave -label cpu_dat_i -radix hexadecimal /cpu0/wm0/cpu_dat_i
 
add wave -divider alu
add wave -divider alu
add wave -label x -radix hexadecimal /testbench/cpu0/exec0/a
add wave -label x -radix hexadecimal /testbench/cpu0/exec0/a
add wave -label y -radix hexadecimal /testbench/cpu0/exec0/bus_b
add wave -label y -radix hexadecimal /testbench/cpu0/exec0/bus_b
add wave -label t -radix hexadecimal /testbench/cpu0/exec0/alu0/t
add wave -label t -radix hexadecimal /testbench/cpu0/exec0/alu0/t
add wave -label func -radix hexadecimal /testbench/cpu0/exec0/alu0/func
add wave -label func -radix hexadecimal /testbench/cpu0/exec0/alu0/func
Line 47... Line 51...
add wave -label addr_d /testbench/cpu0/exec0/reg0/addr_d
add wave -label addr_d /testbench/cpu0/exec0/reg0/addr_d
add wave -label wr /testbench/cpu0/exec0/reg0/wr
add wave -label wr /testbench/cpu0/exec0/reg0/wr
add wave -label we /testbench/we
add wave -label we /testbench/we
add wave -label ack /testbench/ack
add wave -label ack /testbench/ack
add wave -label fetch_or_exec /testbench/cpu0/fetch_or_exec
add wave -label fetch_or_exec /testbench/cpu0/fetch_or_exec
run 15us
add wave -divider regfile
 
add wave -label cx -radix hexadecimal /testbench/cpu0/exec0/reg0/r\[1\]
 
add wave -label tmp -radix hexadecimal /testbench/cpu0/exec0/reg0/r\[13\]
 
add wave -label cs -radix hexadecimal /testbench/cpu0/exec0/reg0/r\[9\]
 
add wave -label ip -radix hexadecimal /testbench/cpu0/exec0/reg0/r\[15\]
 
add wave -divider Wishbone-Master
 
add wave -label cpu_dat_i -radix hexadecimal /cpu0/wm0/cpu_dat_i
 
add wave -label cs -radix hexadecimal /cpu0/wm0/cs
 
 
 
run 20us

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.