mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-03 02:05:21 +00:00
busybear: simulate first 10k instructions
I know we need to add CSR checking sometime soon Also I'm a bit sketpical this is all working properly, and that no new bugs were uncovered from 1k instrs to 10k instrs
This commit is contained in:
parent
96ceac0e80
commit
c4964352f0
@ -131,6 +131,6 @@ add wave /testbench_busybear/InstrWName
|
|||||||
#set DefaultRadix hexadecimal
|
#set DefaultRadix hexadecimal
|
||||||
#
|
#
|
||||||
#-- Run the Simulation
|
#-- Run the Simulation
|
||||||
run 12422
|
run 129812
|
||||||
#run -all
|
#run -all
|
||||||
##quit
|
##quit
|
||||||
|
@ -170,8 +170,8 @@ module testbench_busybear();
|
|||||||
scan_file_PC = $fscanf(data_file_PC, "%x\n", InstrF);
|
scan_file_PC = $fscanf(data_file_PC, "%x\n", InstrF);
|
||||||
// then expected PC value
|
// then expected PC value
|
||||||
scan_file_PC = $fscanf(data_file_PC, "%x\n", pcExpected);
|
scan_file_PC = $fscanf(data_file_PC, "%x\n", pcExpected);
|
||||||
if (instrs < 10 || (instrs < 100 && instrs % 10 == 0) ||
|
if (instrs <= 10 || (instrs <= 100 && instrs % 10 == 0) ||
|
||||||
(instrs < 1000 && instrs % 50 == 0)) begin
|
(instrs <= 1000 && instrs % 100 == 0) || (instrs <= 10000 && instrs % 1000 == 0)) begin
|
||||||
$display("loaded %0d instructions", instrs);
|
$display("loaded %0d instructions", instrs);
|
||||||
end
|
end
|
||||||
instrs += 1;
|
instrs += 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user