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

✨ Add CFU R4-type instructions #449

Merged
merged 12 commits into from
Dec 5, 2022
Merged

✨ Add CFU R4-type instructions #449

merged 12 commits into from
Dec 5, 2022

Conversation

stnolting
Copy link
Owner

@stnolting stnolting commented Dec 3, 2022

This PR adds support for RISC-V R4-type instructions to the Custom Functions Module (CFU).

  • User can now implement custom R4-type instructions that operate on three source registers (rs1, rs2, rs3).
  • These new custom instruction type use the RISC-V custom-1 opcode.
  • The CFU instruction "primitives" are reworked. Noe there are just 2 pre-defined primitives for utilizing custom CFU instructions:
    • neorv32_cfu_r3_instr(funct7, funct3, rs1, rs2)
    • neorv32_cfu_r4_instr(funct3, rs1, rs2, rs3)
  • A compatibility wrapper for the outdated neorv32_cfu_cmd*() CFU instructions is added (for backwards-compatibility).
  • The CFU hardware module and the according demo program are updated to provide a R4-type instruction example: multiply-add (rd <= rs1 * rs2 + rs3)
  • Rework and update documentation (section Custom Functions Unit (CFU)).

@stnolting stnolting added enhancement New feature or request HW hardware-related SW software-related labels Dec 3, 2022
@stnolting stnolting self-assigned this Dec 3, 2022
@stnolting stnolting marked this pull request as ready for review December 4, 2022 18:53
@stnolting stnolting merged commit bd3afd6 into main Dec 5, 2022
@stnolting stnolting deleted the cfu_r4type_instructions branch December 5, 2022 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request HW hardware-related SW software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant