From 64e0fe4c5ac0061d09cbd879134c45ce9411dc20 Mon Sep 17 00:00:00 2001 From: bbracker Date: Mon, 19 Jul 2021 15:40:53 -0400 Subject: [PATCH] whoops MTIMECMP is always 64 bits --- wally-pipelined/src/uncore/clint.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wally-pipelined/src/uncore/clint.sv b/wally-pipelined/src/uncore/clint.sv index 25a985ed..79f68087 100644 --- a/wally-pipelined/src/uncore/clint.sv +++ b/wally-pipelined/src/uncore/clint.sv @@ -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];