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
always @(negedge clk)
begin
if (TEST == "coremark" & dut.core.priv.priv.ecallM) begin
$display("Benchmark: coremark is done.");
$stop;
end
if (DCacheFlushDone) begin
#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);
$stop;
end
if (TEST == "coremark" & dut.core.priv.priv.ecallM) begin
$display("Benchmark: coremark is done.");
$stop;
end
else begin
//pathname = tvpaths[tests[0]];
memfilename = {pathname, tests[test], ".elf.memfile"};