chiselrocket-chipinstruction-encoding

How is data width determined for load/store instructions in Rocket Core?


I'm working on a project where we need to modify a Rocket-chip core with new instructions. We're wondering: how does data width for load/store instructions is determined ?

I assume the instruction decoder will determine the data width thanks to the funct3 field but I do not see where this operation is performed in the Rocket decoder.

Any idea?


Looking at the Github repository (links above) + grep


Solution

  • Found the answer by myself.