Skip to content
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

[rtl] Fix zero value in FPGA RF #2224

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Conversation

nasahlpa
Copy link
Member

We should use WordZeroVal instead of 0 for reads from register x0 in the FPGA register file.

This bug was discovered when enabling the RegFileECC parameter. When this is enabled, the core performs ECC checks, expecting that WordZeroVal is returned for x0. Else, we get a major alert.

Fixes lowRISC/opentitan#25146

We should use `WordZeroVal` instead of `0` for reads from register `x0` in the
FPGA register file.

This bug was discovered when enabling the `RegFileECC` parameter. When this is
enabled, the core performs ECC checks, expecting that `WordZeroVal` is returned
for `x0`. Else, we get a major alert.

Fixes lowRISC/opentitan#25146

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
Copy link
Contributor

@vogelpi vogelpi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @nasahlpa !

@nasahlpa nasahlpa added this pull request to the merge queue Nov 18, 2024
Merged via the queue into lowRISC:master with commit 84232a5 Nov 18, 2024
11 checks passed
@nasahlpa nasahlpa deleted the ibex_fpga_regfile branch November 19, 2024 08:47
nasahlpa added a commit to nasahlpa/opentitan that referenced this pull request Dec 2, 2024
This commit manually pulls over lowRISC/ibex#2224 to fix
the register file for the FPGA configuration. As we do not
want to include other Ibex changes, this is done using a
patch file.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(commit is original to earlgrey_1.0.0)
luismarques pushed a commit to lowRISC/opentitan that referenced this pull request Dec 9, 2024
This commit manually pulls over lowRISC/ibex#2224 to fix
the register file for the FPGA configuration. As we do not
want to include other Ibex changes, this is done using a
patch file.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(commit is original to earlgrey_1.0.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants