Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rtl] optimize CPU barrel shifter timing #301

Merged
merged 2 commits into from
Apr 14, 2022
Merged

Conversation

stnolting
Copy link
Owner

By default, the CPU uses a bit-serial approach for shift instructions (requiring up to 31 additional cycles). If FAST_SHIFT_EN is true a 2-cycle barrel-shifter is implemented instead. This PR optimizes the timing of the barrel shifter by moving the internal pipeline register.

Furthermore, the register balancing of the synthesis tool should now be able to move this pipeline register to further improve timing.

move register stage of barrel shifter to improve timing
@stnolting stnolting added HW Hardware-related optimization Make things faster, smaller and more efficient labels Apr 13, 2022
@stnolting stnolting self-assigned this Apr 13, 2022
@stnolting stnolting marked this pull request as ready for review April 13, 2022 17:57
@stnolting stnolting merged commit cc64b5c into main Apr 14, 2022
@stnolting stnolting deleted the optimize_barrel_shifter branch April 14, 2022 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HW Hardware-related optimization Make things faster, smaller and more efficient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant