[reggen] Add native support for WARL access to reggen tool
Currently, the reggen does not natively support WARL (write-any-read-legal) software access modes, and it has to be emulated using an external register implementation. Given that WARL behavior is an access mode used in certain RISC-V peripherals, we may think about adding native support for this to the reggen tool.
Related to #394
just to chime in, @msfschaffner and I discussed this offline and I am definitely in favor of this.
@msfschaffner @tjaychen
Does this PR affect only padctrl CSR? I mean if any update is made in reggen tool, should we regenerate register rtl and uvm files for one or severval IPs?
Once this feature is added, it will affect all CSRs generated (this feature isn't there yet :) )
But in general, it's a good idea to run make regs (from the hw/ directory) to re-create registers when you modify a particular block. However, if you don't change your hjson file, there really should not be any differences.
I'm going to close this issue because I can't see it realistically going anywhere in the near future. WARL access is fiddly to support with a general tool like reggen because you have to teach it what the "L" bit means for any given register (how can I tell when a value is bogus and what should it read as?)
I'm pretty unconvinced that it makes much sense to do this with general code anyway (instead of using cunning tricks where we know something about the register in question).