mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Implemented fix disucssed with Elizabeth
This commit is contained in:
parent
d3a1afe50e
commit
a82a123069
@ -52,23 +52,23 @@ add wave -divider
|
|||||||
#add wave /testbench/dut/hart/FlushM
|
#add wave /testbench/dut/hart/FlushM
|
||||||
#add wave /testbench/dut/hart/FlushW
|
#add wave /testbench/dut/hart/FlushW
|
||||||
|
|
||||||
add wave -divider
|
add wave -divider Fetch
|
||||||
add wave -hex /testbench/dut/hart/ifu/PCF
|
add wave -hex /testbench/dut/hart/ifu/PCF
|
||||||
add wave -hex /testbench/dut/hart/ifu/InstrF
|
add wave -hex /testbench/dut/hart/ifu/InstrF
|
||||||
add wave /testbench/InstrFName
|
add wave /testbench/InstrFName
|
||||||
add wave -divider
|
add wave -divider Decode
|
||||||
add wave -hex /testbench/dut/hart/ifu/PCD
|
add wave -hex /testbench/dut/hart/ifu/PCD
|
||||||
add wave -hex /testbench/dut/hart/ifu/InstrD
|
add wave -hex /testbench/dut/hart/ifu/InstrD
|
||||||
add wave /testbench/InstrDName
|
add wave /testbench/InstrDName
|
||||||
add wave -divider
|
add wave -divider Execute
|
||||||
add wave -hex /testbench/dut/hart/ifu/PCE
|
add wave -hex /testbench/dut/hart/ifu/PCE
|
||||||
add wave -hex /testbench/dut/hart/ifu/InstrE
|
add wave -hex /testbench/dut/hart/ifu/InstrE
|
||||||
add wave /testbench/InstrEName
|
add wave /testbench/InstrEName
|
||||||
add wave -divider
|
add wave -divider Memory
|
||||||
add wave -hex /testbench/dut/hart/ifu/PCM
|
add wave -hex /testbench/dut/hart/ifu/PCM
|
||||||
add wave -hex /testbench/dut/hart/ifu/InstrM
|
add wave -hex /testbench/dut/hart/ifu/InstrM
|
||||||
add wave /testbench/InstrMName
|
add wave /testbench/InstrMName
|
||||||
add wave -divider
|
add wave -divider Write
|
||||||
add wave -hex /testbench/dut/hart/ifu/PCW
|
add wave -hex /testbench/dut/hart/ifu/PCW
|
||||||
add wave -hex /testbench/dut/hart/ifu/InstrW
|
add wave -hex /testbench/dut/hart/ifu/InstrW
|
||||||
add wave /testbench/InstrWName
|
add wave /testbench/InstrWName
|
||||||
@ -76,7 +76,7 @@ add wave /testbench/InstrWName
|
|||||||
#add wave -hex /testbench/dut/hart/ieu/dp/SrcBE
|
#add wave -hex /testbench/dut/hart/ieu/dp/SrcBE
|
||||||
#add wave -hex /testbench/dut/hart/ieu/dp/ALUResultE
|
#add wave -hex /testbench/dut/hart/ieu/dp/ALUResultE
|
||||||
#add wave /testbench/dut/hart/ieu/dp/PCSrcE
|
#add wave /testbench/dut/hart/ieu/dp/PCSrcE
|
||||||
add wave -divider
|
add wave -divider Regfile
|
||||||
#add wave /testbench/dut/uncore/dtim/memwrite
|
#add wave /testbench/dut/uncore/dtim/memwrite
|
||||||
#add wave -hex /testbench/dut/uncore/HADDR
|
#add wave -hex /testbench/dut/uncore/HADDR
|
||||||
#add wave -hex /testbench/dut/uncore/HWDATA
|
#add wave -hex /testbench/dut/uncore/HWDATA
|
||||||
@ -88,9 +88,9 @@ add wave -divider
|
|||||||
#add wave -hex /testbench/dut/hart/ieu/dp/RdW
|
#add wave -hex /testbench/dut/hart/ieu/dp/RdW
|
||||||
#add wave -hex -r /testbench/*
|
#add wave -hex -r /testbench/*
|
||||||
add wave -hex -r /testbench/dut/hart/ieu/dp/regf/*
|
add wave -hex -r /testbench/dut/hart/ieu/dp/regf/*
|
||||||
|
add wave -divider Misc
|
||||||
add wave -divider
|
add wave -divider
|
||||||
add wave -divider
|
#add wave -hex -r /testbench/dut/uncore/dtim/RAM
|
||||||
add wave -hex -r /testbench/dut/hart/ebu/ReadDataW
|
|
||||||
|
|
||||||
-- Set Wave Output Items
|
-- Set Wave Output Items
|
||||||
TreeUpdate [SetDefaultTree]
|
TreeUpdate [SetDefaultTree]
|
||||||
@ -106,6 +106,6 @@ configure wave -childrowmargin 2
|
|||||||
set DefaultRadix hexadecimal
|
set DefaultRadix hexadecimal
|
||||||
|
|
||||||
-- Run the Simulation
|
-- Run the Simulation
|
||||||
run 3000
|
#run 3000
|
||||||
#run -all
|
run -all
|
||||||
#quit
|
#quit
|
||||||
|
@ -66,6 +66,7 @@ module testbench();
|
|||||||
dut.hart.ifu.InstrM, dut.hart.ifu.InstrW,
|
dut.hart.ifu.InstrM, dut.hart.ifu.InstrW,
|
||||||
InstrFName, InstrDName, InstrEName, InstrMName, InstrWName);
|
InstrFName, InstrDName, InstrEName, InstrMName, InstrWName);
|
||||||
// initialize tests
|
// initialize tests
|
||||||
|
integer j;
|
||||||
initial
|
initial
|
||||||
begin
|
begin
|
||||||
totalerrors = 0;
|
totalerrors = 0;
|
||||||
@ -73,6 +74,8 @@ module testbench();
|
|||||||
memfilename = tests[0];
|
memfilename = tests[0];
|
||||||
$readmemh(memfilename, dut.imem.RAM);
|
$readmemh(memfilename, dut.imem.RAM);
|
||||||
$readmemh(memfilename, dut.uncore.dtim.RAM);
|
$readmemh(memfilename, dut.uncore.dtim.RAM);
|
||||||
|
for(j=1911; j < 65535; j = j+1)
|
||||||
|
dut.uncore.dtim.RAM[j] = 64'b0;
|
||||||
reset = 1; # 22; reset = 0;
|
reset = 1; # 22; reset = 0;
|
||||||
end
|
end
|
||||||
// generate clock to sequence tests
|
// generate clock to sequence tests
|
||||||
|
Loading…
Reference in New Issue
Block a user