Replies: 1 comment 1 reply
-
Regardless of the width of the field, using Any reason you need it to be write-1-to-clear? If its the only counter field in the register, any write-to-clear would be sufficient.
If you truly want a write-1-to-clear action, you could hide a singlepulse trigger bit "behind" the counter. This is legal since the sw read and write actions do not conflict:
I haven't explicitly tried it, but PeakRDL-regblock should be able to support this. |
Beta Was this translation helpful? Give feedback.
-
I am aware that the systemrdl specification says (on page 50):
g.) singlepulse fields shall be instantiated with a width of 1 and the reset value shall be specified as 0.
However, I believe that both the RDL specification and the compiler should support multibit registers with a singlepulse output from the register block.
For example, imagine a counter implemented outside of the register block. It is often useful to have a clear bit for this counter that is triggered by writing 1 to the register.
Beta Was this translation helpful? Give feedback.
All reactions