mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
busybear: ret is only 1 word
This commit is contained in:
parent
5a5237b908
commit
9a45b49536
@ -130,6 +130,6 @@ add wave /testbench_busybear/InstrWName
|
|||||||
#set DefaultRadix hexadecimal
|
#set DefaultRadix hexadecimal
|
||||||
#
|
#
|
||||||
#-- Run the Simulation
|
#-- Run the Simulation
|
||||||
run 2630
|
run 2640
|
||||||
#run -all
|
#run -all
|
||||||
##quit
|
##quit
|
||||||
|
@ -158,8 +158,11 @@ module testbench_busybear();
|
|||||||
$stop;
|
$stop;
|
||||||
end
|
end
|
||||||
// first read instruction
|
// first read instruction
|
||||||
scan_file_PC = $fscanf(data_file_PC, "%s %s\n", PCtext, PCtext2);
|
scan_file_PC = $fscanf(data_file_PC, "%s\n", PCtext);
|
||||||
PCtext = {PCtext, " ", PCtext2};
|
if (PCtext != "ret") begin
|
||||||
|
scan_file_PC = $fscanf(data_file_PC, "%s\n", PCtext2);
|
||||||
|
PCtext = {PCtext, " ", PCtext2};
|
||||||
|
end
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user