mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixed testbench so coremark stops.
This commit is contained in:
parent
1a907ef4d1
commit
2f7cf2bc7f
@ -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"};
|
||||||
|
Loading…
Reference in New Issue
Block a user