1 |
3 |
vinogradov |
vlib work
|
2 |
|
|
vmap work work
|
3 |
|
|
|
4 |
|
|
alias com {
|
5 |
|
|
vlog -sv "./mem.sv"
|
6 |
|
|
vlog -sv "./package.sv"
|
7 |
|
|
vlog -sv "./qrisc32_EX.sv"
|
8 |
|
|
vlog -sv "./qrisc32_ID.sv"
|
9 |
|
|
vlog -sv "./qrisc32_IF.sv"
|
10 |
|
|
vlog -sv "./qrisc32_MEM.sv"
|
11 |
|
|
vlog -sv "./qrisc32.sv"
|
12 |
|
|
vlog -sv "./qrisc32_TB.sv"
|
13 |
|
|
}
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
alias tb_run {
|
17 |
|
|
vsim -novopt work.qrisc32_tb
|
18 |
|
|
onerror {resume}
|
19 |
|
|
quietly WaveActivateNextPane {} 0
|
20 |
|
|
add wave -noupdate /qrisc32_tb/UUT/clk
|
21 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/reset
|
22 |
|
|
add wave -noupdate -divider {pipe stalled}
|
23 |
|
|
add wave -noupdate /qrisc32_tb/UUT/pipe_stall
|
24 |
|
|
add wave -noupdate -divider {Instruction bus}
|
25 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_instructions_data
|
26 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_instructions_addr
|
27 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_instructions_rd
|
28 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_instructions_wait_req
|
29 |
|
|
add wave -noupdate -divider {Data Read Bus}
|
30 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_datar_data
|
31 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_datar_addr
|
32 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_datar_rd
|
33 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_datar_wait_req
|
34 |
|
|
add wave -noupdate -divider {Data Write Bus}
|
35 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_dataw_data
|
36 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_dataw_addr
|
37 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_dataw_wr
|
38 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/avm_dataw_wait_req
|
39 |
|
|
add wave -noupdate -divider Registers
|
40 |
|
|
add wave -noupdate -radix hexadecimal /qrisc32_tb/UUT/qrisc32_ID/rf
|
41 |
|
|
run -all
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
echo "For compile type command com"
|
46 |
|
|
echo "For run simulation type command tb_run"
|
47 |
|
|
|