I think this version of csri matches what is required in the spec. ExtIntS should not be written into the SEIP register bit.

This commit is contained in:
Ross Thompson 2022-03-25 13:10:31 -05:00
parent 4ba0d1d662
commit 61c714ebe6

View File

@ -58,7 +58,7 @@ module csri #(parameter
always_comb begin
IntInM = 0;
IntInM[11] = ExtIntM; // MEIP
IntInM[9] = ExtIntS | (ExtIntM & MIDELEG_REGW[9]); // SEIP
IntInM[9] = (ExtIntM & MIDELEG_REGW[9]); // SEIP
IntInM[7] = TimerIntM; // MTIP
IntInM[5] = TimerIntM & MIDELEG_REGW[5]; // STIP
IntInM[3] = SwIntM; // MSIP