peakRDL : Interrupt support #314
Replies: 2 comments 4 replies
-
|
Hi, Is anyone here experienced with interrupt support in peakRDL ? Thank you in advance for your help :-) Martin |
Beta Was this translation helpful? Give feedback.
-
|
Ya. ChatGPT really struggles with this stuff. I've made some progress on this front and have figured out how to properly code the interrupts so that it produces what we need. Using individual fields makes sense and also allows us to dynamically assign names/descriptions to each interrupt. The only missing piece is there's no way to parameterize the number of fields in a register, but it looks like that's a limitation of the language itself. My intention, based on a previous tool, was to have a general interrupt.rdl file that could be completely customized, including the number of interrupts, when included in another rdl. The other tool used tricks with perl to make this work. We're trying to go with pure rdl, so at the moment I have a generic 32 bit interrupt.rdl file and we only use the bits we need. Not exactly what I had in mind, but it gets the job done. We've also experimented with using the perl stuff with peakRDL. That also looks promising if we really need to go that direction. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Playing around with PeakRDL and the interrupt support. It looks like there is interrupt support, which is nice. However, one thing that appears to be valid in SystemRDL 2.0 but not in PeakRDL is parameterizing a module. According to the spec I should be able to create a generic interrupt.rdl with a param that defines the number of bits. When I instantiate that in another rdl I should be able to override the param and even assign names to each bit. This doesn't appear to be supported in PeakRDL though. Can you confirm if that's true ?
I should be able to instantiate a generic interrupt module like this. This is all based on ChatGPTs interpretation of the 2.0 spec so it may be incorrect.
Thanks for your help !
Martin
Beta Was this translation helpful? Give feedback.
All reactions