mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Resolved the duplicated check signature issue.
This commit is contained in:
parent
c91530aa17
commit
005307fc16
@ -169,7 +169,8 @@ module testbench;
|
|||||||
STATE_RUN_TEST,
|
STATE_RUN_TEST,
|
||||||
STATE_CHECK_TEST,
|
STATE_CHECK_TEST,
|
||||||
STATE_CHECK_TEST_WAIT,
|
STATE_CHECK_TEST_WAIT,
|
||||||
STATE_VALIDATE} statetype;
|
STATE_VALIDATE,
|
||||||
|
STATE_INCR_TEST} statetype;
|
||||||
statetype CurrState, NextState;
|
statetype CurrState, NextState;
|
||||||
logic TestBenchReset;
|
logic TestBenchReset;
|
||||||
logic [2:0] ResetCount, ResetThreshold;
|
logic [2:0] ResetCount, ResetThreshold;
|
||||||
@ -296,7 +297,7 @@ module testbench;
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
STATE_VALIDATE: begin
|
STATE_VALIDATE: begin
|
||||||
NextState = STATE_INIT_TEST;
|
NextState = STATE_INCR_TEST;
|
||||||
if (TEST == "coremark")
|
if (TEST == "coremark")
|
||||||
if (dut.core.EcallFaultM) begin
|
if (dut.core.EcallFaultM) begin
|
||||||
$display("Benchmark: coremark is done.");
|
$display("Benchmark: coremark is done.");
|
||||||
@ -308,6 +309,9 @@ module testbench;
|
|||||||
CheckSignature(pathname, tests[test], riscofTest, begin_signature_addr, errors);
|
CheckSignature(pathname, tests[test], riscofTest, begin_signature_addr, errors);
|
||||||
end
|
end
|
||||||
if(errors > 0) totalerrors = totalerrors + 1;
|
if(errors > 0) totalerrors = totalerrors + 1;
|
||||||
|
end
|
||||||
|
STATE_INCR_TEST: begin
|
||||||
|
NextState = STATE_INIT_TEST;
|
||||||
test = test + 1;
|
test = test + 1;
|
||||||
if (test == tests.size()) begin
|
if (test == tests.size()) begin
|
||||||
if (totalerrors == 0) $display("SUCCESS! All tests ran without failures.");
|
if (totalerrors == 0) $display("SUCCESS! All tests ran without failures.");
|
||||||
|
Loading…
Reference in New Issue
Block a user