-
Notifications
You must be signed in to change notification settings - Fork 85
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
regtool generates a reg_steer
signal that is one bit too short
#507
Comments
In fact, in OpenTitan they have ditched the In short, this error does not surface if you only have 1 window, which I guess was the most widely tested use case, but it does surface e.g. for 2 or 4 windows. |
@cousteaulecommandant sorry for the late reply - if you have a way to fix it, feel free as usual to submit a PR - as this is touching a vendorized repository, you have two choices:
My favorites are in order 1, 2, and 3. |
Good news. It looks like pulp-platform/register_interface already uses the (The change was introduced in pulp-platform/register_interface@7cf6ae7 from February 2023, in case you don't want to upgrade all the way to the newest version.) |
x-heep/hw/vendor/pulp_platform_register_interface/vendor/lowrisc_opentitan/util/reggen/reg_top.sv.tpl
Line 192 in a639054
The above line should say
${num_wins_width}
, not${num_wins_width-1}
, since the definition ofnum_wins_width
already includes the-1
(and in newer OpenTitan versions has been renamed tosteer_msb
which is a less misleading name):x-heep/hw/vendor/pulp_platform_register_interface/vendor/lowrisc_opentitan/util/reggen/reg_top.sv.tpl
Line 16 in a639054
The following files are affected:
The text was updated successfully, but these errors were encountered: