put MTIMECMP's reset value back to 0 because the reset value of -1 broke the MCAUSE tests

This commit is contained in:
bbracker 2021-07-19 16:19:24 -04:00
parent d603f4ea57
commit 78e513160e

View File

@ -82,7 +82,7 @@ module clint (
always_ff @(posedge HCLK or negedge HRESETn)
if (~HRESETn) begin
MSIP <= 0;
MTIMECMP <= (64)'(-1);
MTIMECMP <= (64)'(0);
// MTIMECMP is not reset
end else if (memwrite) begin
if (entryd == 16'h0000) MSIP <= HWDATA[0];
@ -112,7 +112,7 @@ module clint (
always_ff @(posedge HCLK or negedge HRESETn)
if (~HRESETn) begin
MSIP <= 0;
MTIMECMP <= (64)'(-1);
MTIMECMP <= (64)'(0);
// MTIMECMP is not reset
end else if (memwrite) begin
if (entryd == 16'h0000) MSIP <= HWDATA[0];