Skip to content

alu: guard FN_ROR in shiftReverse behind useZbb parameter - #3804

Open
lakshhnaa wants to merge 1 commit into
chipsalliance:masterfrom
lakshhnaa:fix/alu-shift-reverse-zbb-guard
Open

alu: guard FN_ROR in shiftReverse behind useZbb parameter#3804
lakshhnaa wants to merge 1 commit into
chipsalliance:masterfrom
lakshhnaa:fix/alu-shift-reverse-zbb-guard

Conversation

@lakshhnaa

Copy link
Copy Markdown

Fixes residual logic in shin mux when useZbb=false.

The shiftReverse companion object method unconditionally included FN_ROR
in the isOneOf check, generating a dead comparator in the synthesized
netlist even when useZbb=false.

This PR inlines the shift-input mux condition directly into class ALU,
guarding FN_ROR behind coreParams.useZbb and FN_BEXT behind coreParams.useZbs,
consistent with the guards already present in the output MuxLookup.

No functional change when useZbb=true. Eliminates one dead 5-bit comparator
when useZbb=false.

Closes #3784

@linux-foundation-easycla

linux-foundation-easycla Bot commented May 21, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: lakshhnaa / name: lakshhnaa (f3b9f53)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ALU shiftReverse includes FN_ROR unconditionally, leaving residual logic when useZbb=false

1 participant