Skip to content

[rtl] Clean up iCache Tweak Infection#2379

Merged
nasahlpa merged 2 commits into
lowRISC:masterfrom
nasahlpa:icache_tweak_lint
Apr 10, 2026
Merged

[rtl] Clean up iCache Tweak Infection#2379
nasahlpa merged 2 commits into
lowRISC:masterfrom
nasahlpa:icache_tweak_lint

Conversation

@nasahlpa
Copy link
Copy Markdown
Contributor

  • Fix a linting issue
  • Move the un-XOR to the way hit logic

Linting raised that constant zeros are stored in the `data_tweak_lw_ic1`
and `tag_tweak_lw_ic1` FFs. Although this is exactly what we want, we
can bypass this linting issue by only storing the relevant bits in the
FFs and expand them before appyling the XOR.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
Instead of doing the un-XOR for all ways, just do it for the
way we have a hit. This is identical from a functional perspective
but is cleaner from an implementation perspective.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
@nasahlpa nasahlpa requested review from gautschimi and vogelpi April 10, 2026 08:23
Copy link
Copy Markdown
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 !

Copy link
Copy Markdown
Contributor

@gautschimi gautschimi left a comment

Choose a reason for hiding this comment

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

looks good!

@nasahlpa nasahlpa added this pull request to the merge queue Apr 10, 2026
Merged via the queue into lowRISC:master with commit fc34556 Apr 10, 2026
12 checks passed
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