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

How to implement fault handlers? #8

Open
pedro-javierf opened this issue May 2, 2022 · 0 comments
Open

How to implement fault handlers? #8

pedro-javierf opened this issue May 2, 2022 · 0 comments

Comments

@pedro-javierf
Copy link

Hello, does the core have support for fault/exception handlers?
I would like to catch exceptions in the CPU like misaligned load/stores, illegal instructions being executed, and so on (not interrupts).

According to the picorv32 README: "When no external PCPI core acknowledges the instruction within 16 clock cycles, then an illegal instruction exception is raised and the respective interrupt handler is called" which makes me believe there is support for these handlers, but no idea how to set them up from the firmware.

Is this configured in this icestudio version, and if so, at which addresses do I need to set up my routines, routine tables, etc? What registers to poke? I think the picorv32 does not follow the ISA 1:1 so there may be some custom thing going on.

Thanks.

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

No branches or pull requests

1 participant