Option for an external register implementation
I'd like to be able to set an option that the register will be implemented outside of the airhdl model.
My use case is that I want to be able to reset a single register in a different way with respect to all the others: all registers must be reset from a software reset instead of one that need not to be reset by software, but only at power up.
-
Luca Colombini commented
It would be nice to have the possibility to turn an existing resister into a memory or viceversa
-
Luca Colombini commented
Probably what you would need to do is to declare fields of those registers, the external ones, also in the user2regs record and use user2regs for readback instead of internal signals.
-
Luca Colombini commented
Yes, exactly. "software reset" do asserts axi_resetn.
-
AdminGuy Eschemann (Manager, airhdl) commented
Hi Luca, thanks for your suggestion. In airhdl all registers are reset to their default values upon assertion of the axi_aresetn signal. Is that what you call the "software reset"?