-
Notifications
You must be signed in to change notification settings - Fork 53
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
Negative parameter indexes #39
Comments
Hi @silabs-oivind I believe my original proposal would prevent this. |
Hi @MikeOpenHWGroup, |
Thanks @silabs-oivind, that did the trick. Just for safety's sake it would also be good to do the same for the 40x_wrapper. FWIW, I've looked into this and agree with you that the LRM supports negative range boundaries. The Metrics DSIM simulator supports these as expected, so I was in error thinking this was the issue. It turns out the problem is that DSIM interprets parameters as unsigned values, so if |
…nt (not unsigned) Signed-off-by: Oivind Ekelund <[email protected]>
Address github issue #39. Make parameter PMA_NUM_REGIONS int (not uns…
A recent addition to the CV32E40X (sha 4206fff on 2021-04-27) introduced "negative indexes" for the
PMA_CFG
parameter. An example of this isbhv/cv32e40x_wrapper.sv
:The default value of
PMA_NUM_REGIONS
is zero which means the range ofPMA_CFG
is [-1:0]. Most SV simulators will accept this, but Metrics DSIM interprets SV parameters as unsigned values (which, I believe is correct) and therefore the size of PMA_CFG is (2**31)-1 which exceeds a built-in DSIM limit.The text was updated successfully, but these errors were encountered: