-
Notifications
You must be signed in to change notification settings - Fork 806
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
[RACL] Add RACL support for spi_device #26044
Conversation
9a96699
to
f4178c2
Compare
f4178c2
to
a1d9e0b
Compare
parameter spi_device_pkg::sram_type_e SramType = spi_device_pkg::DefaultSramType, | ||
parameter bit EnableRacl = 1'b0, | ||
parameter bit RaclErrorRsp = 1'b1, | ||
parameter int unsigned RaclPolicySelVec[73] = '{73{0}}, |
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.
Not a comment about this PR, but I suddenly noticed that it's a bit awkward because we have to reflect the number of registers in the parameter type here.
I wonder whether there's a way this could be more automatic, or maybe some associative array (assuming those are allowed for parameters) keyed by the register name that selects policy zero if a register isn't in the array.
Clearly for a follow-up, but I'm interested in your opinion here.
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.
That is a good point. I will try to look into this and see what's possible.
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.
Unfortunately, there is no constant provided by the corresponding reg_pkg
. I guess it would be a fair change to let this package render a constant describing the number of registers?
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.
I think I agree. I've just opened #26074 to track it (but, honestly, I think it should be pretty easy to do!)
f2b57cb
to
7860312
Compare
@rswarbrick I have unified the notes across all template copies. However, before merging I would still like to rebase this PR on top of #26056 so I can include those fixes as well. |
7860312
to
0a83a3f
Compare
Signed-off-by: David Schrammel <davidschrammel@rivosinc.com>
Signed-off-by: David Schrammel <davidschrammel@rivosinc.com>
0a83a3f
to
33b43a4
Compare
Rebased to master and included fixes from #26056. |
CHANGE AUTHORIZED: hw/ip/spi_device/data/spi_device.hjson The change to In all, there is no significant risk to earlgrey from this change. |
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.
Thanks for the work here. I'm happy that this is ready to come in!
CHANGE AUTHORIZED: hw/ip/spi_device/data/spi_device.hjson As per Rupert's assessment above. |
This PR enables RACL support for
spi_device
.The issues raised in #26004 also affect generated files here.They are fixed in #26056 and I will rebase this PR on top assuming #26056 will be merged to master before this PR.