Navigation Menu

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 support for custom vexriscv instructions #37

Merged
merged 3 commits into from Mar 11, 2020

Conversation

xobs
Copy link
Contributor

@xobs xobs commented Mar 11, 2020

This adds a new namespace under "registers" to support the custom interrupt controller on vexriscv.

@xobs xobs requested a review from a team as a code owner March 11, 2020 01:59
@xobs xobs force-pushed the vexriscv branch 2 times, most recently from 3aa4c98 to fb9c6a8 Compare March 11, 2020 05:37
Copy link
Member

@Disasm Disasm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!
A few moments:

  1. Could you add module docs for the vexriscv module?
  2. It seems like vmip, vsip and vdci are read-only, not read-write

src/register/vexriscv/mod.rs Outdated Show resolved Hide resolved
src/register/mod.rs Outdated Show resolved Hide resolved
VexRiscv contains its own custom registers for external interrupt
mapping.  Add these registers under the `register::vexriscv` namespace,
and prefix the assembly routines with "v-" in order to avoid ambiguity
with e.g. `sip` and `mip` registers.

Signed-off-by: Sean Cross <sean@xobs.io>
Signed-off-by: Sean Cross <sean@xobs.io>
This script allows Windows users to rebuild the assembly files.

Signed-off-by: Sean Cross <sean@xobs.io>
@xobs
Copy link
Contributor Author

xobs commented Mar 11, 2020

  1. I've added some module docs. Please let me know if that's what you're looking for, or if you'd prefer something else.

  2. You're correct: https://github.com/SpinalHDL/VexRiscv/blob/master/src/main/scala/vexriscv/plugin/ExternalInterruptArrayPlugin.scala#L25 and https://github.com/SpinalHDL/VexRiscv/blob/95237b23ea2d658cb3e0aa77680ca2851ef5d882/src/main/scala/vexriscv/plugin/DBusCachedPlugin.scala#L358 -- I'll update those to be readonly.

Copy link
Member

@Disasm Disasm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@Disasm
Copy link
Member

Disasm commented Mar 11, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 11, 2020

Build succeeded

@bors bors bot merged commit 30af64c into rust-embedded:master Mar 11, 2020
romancardenas pushed a commit that referenced this pull request Nov 17, 2023
37: Fix _start_trap save/restore sequences r=laanwj a=Disasm



Co-authored-by: Vadim Kaushan <admin@disasm.info>
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.

None yet

2 participants