mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
MTIMECMP should reset to maximum value for RV32, not just for RV64
This commit is contained in:
parent
d4852d88e2
commit
234e47a7c5
@ -115,7 +115,7 @@ module clint_apb import cvw::*; #(parameter cvw_t P) (
|
|||||||
always_ff @(posedge PCLK)
|
always_ff @(posedge PCLK)
|
||||||
if (~PRESETn) begin
|
if (~PRESETn) begin
|
||||||
MSIP <= 1'b0;
|
MSIP <= 1'b0;
|
||||||
MTIMECMP <= '0;
|
MTIMECMP <= 64'hFFFFFFFFFFFFFFFF; // Spec says MTIMECMP is not reset, but we reset to maximum value to prevent spurious timer interrupts
|
||||||
end else if (memwrite) begin
|
end else if (memwrite) begin
|
||||||
if (entry == 16'h0000) MSIP <= PWDATA[0];
|
if (entry == 16'h0000) MSIP <= PWDATA[0];
|
||||||
if (entry == 16'h4000)
|
if (entry == 16'h4000)
|
||||||
|
Loading…
Reference in New Issue
Block a user