Comments (2)
Hello,
We currently allow for deciding the number of interrupt levels at runtime, through the mcliccfg.xnlbits
register field, which encodes the number of interrupt levels. This would ideally be done at platform init stage.
The maximum number of bits to encode both level and priority is set by an elaboration-time parameter (INTCTLBITS
), and the HW checks that mcliccfg.xnlbits < INTCTLBITS
, otherwise saturates to that value.
I see there are some optional parameters in the draft specs for the number of levels (CLICLEVELS
and CLICCFGLBITS
), but I would also wait for clearer specs from the RISC-V fast interrupt TG in the PR you mentioned above
from clic.
ah ok I missed the connection between INTCTLBITS and the level. This does bring me to a different issue. The spec currently states:
Only 0 or 8 level bits are currently supported, with other values currently reserved.
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.
from clic.
Related Issues (9)
- Update to latest spec
- Fixing the functionality of IRQs 0-15? HOT 1
- Add mask to define implemented interrupt sources
- Add parameter to hardwire clicintattr.trig values
- Lint error when setting INTCTLBITS to non-default value
- Alignment of xtvec needs to be 64 bytes
- Not standardized yet HOT 1
- Memory Layout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clic.