Arrays of signals with resetsignal support? #281
Unanswered
JulianDeepwave
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, thank you for your work on systemrdl tooling.
I have an array of
reg/regfilecomponents with fields that I would like to reset individually/differently than primary cpu reset on block.I believe the
resetsignalproperty is the intended way to do this.My components are in a hierarchy like
my_reg my_inst[16];and per this page
https://systemrdl-compiler.readthedocs.io/en/latest/dev_notes/instance_arrays.html#no-support-for-heterogeneous-arrays
my_inst[2]->property = 1234; // Modifying a subset is not supportedI dont believe its possible to have different
resetsignalproperties for each instance.So instead I have been defining the reset signal down in the hierarchy near the field (and connecting through hierarchy in hdl hw if struct etc) doing something like so:
A)is what I have working now. There is asignalperresetsignalproperty on field. Two fields, two one bit signals.B)is a made up guess? Is trying to declare a two bitsignaland use that asresetsignalbits for a two bit wide field. Ex. reset_two_bits[1] used for two_bits[1].C)is what I think is maybe the intended use but I am getting the shown fatal error message. Uses two bit widesignaland tries to select one bit at a time for field'sresetsignalproperty.From the start - am I doing things right regarding trying to have separate reset signal for many fields in a hierarchy/array of instances?
Any words of advice?
Is the
A)the best case at the moment?Thanks again for your time!
Julian
Beta Was this translation helpful? Give feedback.
All reactions