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

⚠️ replace SYSINFO.CPU memory-mapped register by custom "mxisa" CSR #276

Merged
merged 15 commits into from Feb 16, 2022

Conversation

stnolting
Copy link
Owner

@stnolting stnolting commented Feb 16, 2022

This PR replaces the SYSINFO's "CPU" information register (NEORV32_SYSINFO.CLK) by a new custom CPU CSR for "extended ISA and Extension Information" (mxisa). By providing a CPU-internal CSR to help software discover available ISA sub-extensions (like Zfinx) this feature is also available to setups that use the NEORV32 CPU in stand-alone mode (-> Litex #115; @enjoy-digital).

  • The new xmisa CSR is mapped to the "custom machine-mode read-only" CSR address space at 0xfc0.
  • The NEORV32_SYSINFO.CPU memory-mapped register is removed (the according address reads as zero and is reserved for future use).
  • All C-language defines and discovery functions are adapted accordingly.
  • In gdb mxisa shows up as "csr_mxisa" when running info all-registers.

@stnolting stnolting added HW hardware-related SW software-related labels Feb 16, 2022
@stnolting stnolting self-assigned this Feb 16, 2022
@stnolting stnolting marked this pull request as ready for review February 16, 2022 07:03
* typo fix in comment
* added some more non-essential std libs
@stnolting stnolting changed the title ⚠️ replace SYSINFO.CPU memory-mapped register by custom MXISA CSR ⚠️ replace SYSINFO.CPU memory-mapped register by custom "mxisa" CSR Feb 16, 2022
@stnolting stnolting merged commit 2cc454a into main Feb 16, 2022
@stnolting stnolting deleted the add_mxisa_csr branch February 16, 2022 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HW hardware-related SW software-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant