XIF result interface `we` signal type is not consistent with description
Created by: michael-platzer
The type definition of the we
signal in the result packet of the XIF result interface is not consistent with its description. The type of that signal is defined as logic [X_RFW_WIDTH-XLEN:0]
, which yields a signal with a width of 1 bit in case X_RFW_WIDTH
== XLEN
and a width of 33 bits in case X_RFW_WIDTH
is 64 and XLEN
is 32. However, the description states that:
we
is 2 bits wide whenXLEN
= 32 andX_RFR_WIDTH
= 64, and 1 bit wide otherwise. Ifwe
is 2 bits wide, thenwe[1]
is only allowed to be 1 ifwe[0]
is 1 as well (i.e. for dual writeback).
I assume that the type of the we
signal is meant to be logic [X_RFW_WIDTH/XLEN-1:0]
instead. Also, the description uses X_RFR_WIDTH
instead of X_RFW_WIDTH
.