-
Notifications
You must be signed in to change notification settings - Fork 871
[Reggen] Export more properties to SystemRDL #27618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
1f0be46
to
09514be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just commenting on the user-defined properties. I haven't looked deeply at the additional fields for MultiRegister, but it seems like it could use more explanation (e.g. in commit messages).
valid_components = {Field} | ||
|
||
|
||
class Hwre(UDPBoolean): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bleh, it's kind of annoying that we have a separate property here. SystemRDL has swacc
for any access and swmod
for any change, but those don't map perfectly.
I guess that makes a UDP make sense (for compatibility / reproduction reasons). For a SystemRDL import to reggen (opposite direction), we probably won't care. swacc
would generate qe
and re
, and we don't currently support swmod
inside our code generation.
valid_components = {Reg} | ||
|
||
|
||
class Shadowed(UDPBoolean): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine. There's is no standard property for this, only vendor-defined ones. It's too bad the SystemRDL WG is inactive.
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
09514be
to
02ba4d1
Compare
02ba4d1
to
4c9d5fe
Compare
4c9d5fe
to
9161c1d
Compare
This will be important for systemrdl later. Signed-off-by: Douglas Reis <doreis@lowrisc.org>
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
9161c1d
to
9e430a6
Compare
False = 0x69696969; | ||
}; | ||
|
||
/* `true` if hardware uses `re` signal, which is latched signal of software read pulse.*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps explain the difference to swacc
here, i.e. swacc = hwre | swmod
.
This PR get most of the properties exported to SystemRDL. It also defines some custom properties: