forked from Github_Repos/cvw
whoops MTIMECMP is always 64 bits
This commit is contained in:
parent
bdb1ece183
commit
64e0fe4c5a
@ -82,7 +82,7 @@ module clint (
|
||||
always_ff @(posedge HCLK or negedge HRESETn)
|
||||
if (~HRESETn) begin
|
||||
MSIP <= 0;
|
||||
MTIMECMP <= (`XLEN)'(-1);
|
||||
MTIMECMP <= (64)'(-1);
|
||||
// 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 <= (`XLEN)'(-1);
|
||||
MTIMECMP <= (64)'(-1);
|
||||
// MTIMECMP is not reset
|
||||
end else if (memwrite) begin
|
||||
if (entryd == 16'h0000) MSIP <= HWDATA[0];
|
||||
|
Loading…
Reference in New Issue
Block a user