mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Now have most of the regression tests running again.
This commit is contained in:
parent
836bc4a4f7
commit
af8ca85a5b
@ -73,7 +73,7 @@ module testbench;
|
|||||||
logic [P.XLEN-1:0] PCW;
|
logic [P.XLEN-1:0] PCW;
|
||||||
|
|
||||||
string ProgramAddrMapFile, ProgramLabelMapFile;
|
string ProgramAddrMapFile, ProgramLabelMapFile;
|
||||||
integer ProgramAddrLabelArray [string] = '{ "begin_signature" : 0, "tohost" : 0 };
|
integer ProgramAddrLabelArray [string];
|
||||||
|
|
||||||
logic DCacheFlushDone, DCacheFlushStart;
|
logic DCacheFlushDone, DCacheFlushStart;
|
||||||
logic riscofTest;
|
logic riscofTest;
|
||||||
@ -558,8 +558,6 @@ module testbench;
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// track the current function or global label
|
// track the current function or global label
|
||||||
if (DEBUG == 1 | (`PrintHPMCounters & P.ZICOUNTERS_SUPPORTED)) begin : FunctionName
|
if (DEBUG == 1 | (`PrintHPMCounters & P.ZICOUNTERS_SUPPORTED)) begin : FunctionName
|
||||||
FunctionName FunctionName(.reset(reset_ext | TestBenchReset),
|
FunctionName FunctionName(.reset(reset_ext | TestBenchReset),
|
||||||
@ -839,8 +837,12 @@ task automatic updateProgramAddrLabelArray;
|
|||||||
integer ProgramLabelMapFP, ProgramAddrMapFP;
|
integer ProgramLabelMapFP, ProgramAddrMapFP;
|
||||||
ProgramLabelMapFP = $fopen(ProgramLabelMapFile, "r");
|
ProgramLabelMapFP = $fopen(ProgramLabelMapFile, "r");
|
||||||
ProgramAddrMapFP = $fopen(ProgramAddrMapFile, "r");
|
ProgramAddrMapFP = $fopen(ProgramAddrMapFile, "r");
|
||||||
|
|
||||||
|
|
||||||
if (ProgramLabelMapFP & ProgramAddrMapFP) begin // check we found both files
|
if (ProgramLabelMapFP & ProgramAddrMapFP) begin // check we found both files
|
||||||
|
// *** RT: I'm a bit confused by the required initialization here.
|
||||||
|
ProgramAddrLabelArray["begin_signature"] = 0;
|
||||||
|
ProgramAddrLabelArray["tohost"] = 0;
|
||||||
while (!$feof(ProgramLabelMapFP)) begin
|
while (!$feof(ProgramLabelMapFP)) begin
|
||||||
string label, adrstr;
|
string label, adrstr;
|
||||||
integer returncode;
|
integer returncode;
|
||||||
|
Loading…
Reference in New Issue
Block a user