Fixed floating signals in clint and ieu

This commit is contained in:
David Harris 2021-01-28 15:44:05 -05:00
parent ad5d4793b6
commit fe0876027f
2 changed files with 2 additions and 1 deletions

View File

@ -67,6 +67,7 @@ module clint (
if (reset) begin
MSIP <= 0;
MTIME <= 0;
MTIMECMP <= 0;
// MTIMECMP is not reset
end else if (memwrite) begin
if (entry == 16'h0000) MSIP <= MaskedWriteDataM[0];
@ -90,6 +91,7 @@ module clint (
if (reset) begin
MSIP <= 0;
MTIME <= 0;
MTIMECMP <= 0;
// MTIMECMP is not reset
end else if (memwrite) begin
if (entry == 16'h0000) MSIP <= MaskedWriteDataM[0];

View File

@ -56,7 +56,6 @@ module ieu (
logic [2:0] FlagsE;
logic [4:0] ALUControlE;
logic ALUSrcAE, ALUSrcBE;
logic IllegalInstrFaultM;
logic [2:0] Funct3M;
logic [1:0] ResultSrcW;