gaph-pucrs / RS5

RV32I[M][C][V][_Zihpm][_Zkne][_Xosvm]_Zicsr processor
MIT License
9 stars 1 forks source link

Register instruction in fetch stage before using in decoder #31

Open aedalzotto opened 1 week ago

aedalzotto commented 1 week ago

This PR proposes to register the fetched instruction in fetch stage before using it in decoder. This allows us to use bigger memories without timing violations, as the net delay between the memory and the decoder is considerable.

The initial implementation drops support for compressed instructions. Preliminary results:

Baseline Registered
Setup -0.079 0.015
LUTs 3118 3133
FFs 1353 1453
CoreMark 202 184

A small toll to pay for a little bit more headroom in timing. Maybe with this change we can re-add the branch prediction and gain performance?