Skip to content

feat: rv64 alu_w shift_w#2484

Draft
876pol wants to merge 15 commits intorv64-word-opcode-copy-existing-modulesfrom
rv64-alu-w-shift-w
Draft

feat: rv64 alu_w shift_w#2484
876pol wants to merge 15 commits intorv64-word-opcode-copy-existing-modulesfrom
rv64-alu-w-shift-w

Conversation

@876pol
Copy link
Contributor

@876pol 876pol commented Mar 4, 2026

Resolves INT-6340, INT-6343.

Summary:

  • base_alu_w and shift_w reuse the existing generic core AIRs (BaseAluCoreAir<RV64_WORD_NUM_LIMBS, RV64_CELL_BITS> and ShiftCoreAir<RV64_WORD_NUM_LIMBS, RV64_CELL_BITS>) via type aliases, eliminating the need for duplicated core code.
  • A new Rv64BaseAluWAdapter (alu_w.rs) bridges 64-bit register memory with the 4-byte core interface: it reads full 8-byte registers but only passes the low 4 bytes to the core, and sign-extends the 4-byte core output back to 8 bytes on write.
  • The test suite is largely carried over from the original RV32 code and primarily exercises the reused core AIR logic rather than the newly written adapter.

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.

1 participant