Fixed testbench so coremark stops.

This commit is contained in:
Ross Thompson 2022-02-02 11:37:48 -06:00
parent 1a907ef4d1
commit 2f7cf2bc7f

View File

@ -215,6 +215,10 @@ logic [3:0] dummy;
// check results // check results
always @(negedge clk) always @(negedge clk)
begin begin
if (TEST == "coremark" & dut.core.priv.priv.ecallM) begin
$display("Benchmark: coremark is done.");
$stop;
end
if (DCacheFlushDone) begin if (DCacheFlushDone) begin
#600; // give time for instructions in pipeline to finish #600; // give time for instructions in pipeline to finish
@ -280,10 +284,6 @@ logic [3:0] dummy;
else $display("FAIL: %d test programs had errors", totalerrors); else $display("FAIL: %d test programs had errors", totalerrors);
$stop; $stop;
end end
if (TEST == "coremark" & dut.core.priv.priv.ecallM) begin
$display("Benchmark: coremark is done.");
$stop;
end
else begin else begin
//pathname = tvpaths[tests[0]]; //pathname = tvpaths[tests[0]];
memfilename = {pathname, tests[test], ".elf.memfile"}; memfilename = {pathname, tests[test], ".elf.memfile"};