-
Notifications
You must be signed in to change notification settings - Fork 4
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
Parameterization of number of IRQ levels #12
Comments
Hello, We currently allow for deciding the number of interrupt levels at runtime, through the The maximum number of bits to encode both level and priority is set by an elaboration-time parameter ( I see there are some optional parameters in the draft specs for the number of levels ( |
ah ok I missed the connection between INTCTLBITS and the level. This does bring me to a different issue. The spec currently states:
According to this, any other value should trap, which I guess it doesn't here. To me thats quite fine, but its something to consider. If you want to comply, you have the choice of supporting either levels or prios. Given that preemption is essential for a fast interrupt controller, and levels are the means of preemption within a privilege level. Therefore I would almost certainly assume that you will only make use of the levels and not the priorities. Nevertheless, I think it is a good feature to have this somewhat controllable. I could however imagine that a levels only solution would save some logic. If thats the case, it might make sense to add a parameter for that. I am not sure if that would be considered standard compliant either though. |
I do not see a top level parameter to specify the number of interrupt levels. This would be important, as most designs will only need a few, not 256. I would expect between 3 and 5 level bits to be used, with the rest fixed to one.
The CLIC specification defines a standard parameter, but that definition is currently being reworked. Thus, I would suggest waiting on riscv/riscv-fast-interrupt#331 to complete
The text was updated successfully, but these errors were encountered: