Code Monkey home page Code Monkey logo

Comments (2)

alex96295 avatar alex96295 commented on June 12, 2024

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.

christian-herber-nxp avatar christian-herber-nxp commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.