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

[CFU] add support for CFU-internal CSRs #681

Merged
merged 11 commits into from
Sep 5, 2023
Merged

[CFU] add support for CFU-internal CSRs #681

merged 11 commits into from
Sep 5, 2023

Conversation

stnolting
Copy link
Owner

This PR allows to implement up to 2^32 CFU-internal (Custom Functions Subsystem for user-defined RISC-V instructions) control and status registers (CSR) for additional operand propagation, configuration and status checking (i.e. passing a 256-bit key to an encryption module implemented within the CFU).

The CFU-CSR access mechanism uses an indirect approach via just two CPU-CSRs:

  • cfusel (address 0x800) - CFU-internal CSR select ("CFU-CSR address")
  • cfureg (address 0x801) - CFU-internal CSR alias register ("CFU-CSR read/write data")

This concept is similar to the RISC-V indirect-csr-access proposal.

@stnolting stnolting added enhancement New feature or request HW hardware-related labels Sep 2, 2023
@stnolting stnolting self-assigned this Sep 2, 2023
@stnolting stnolting marked this pull request as ready for review September 5, 2023 16:35
@stnolting stnolting merged commit d5f9233 into main Sep 5, 2023
8 checks passed
@stnolting stnolting deleted the cfu_csrs branch September 5, 2023 17:15
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant