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

[flash_ctrl/rtl] Enhance data intg in flash_phy_rd #23514

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

nasahlpa
Copy link
Member

@nasahlpa nasahlpa commented Jun 5, 2024

This commit enhances the data integrity protection inside the flash_phy_rd module by generating and appending the integrity tag before muxing the corresponding word using word_sel.

Copy link
Contributor

@johannheyszl johannheyszl left a comment

Choose a reason for hiding this comment

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

I have reviewed the source code in detail and I think this is a good modification.
As per discussion w/ @vogelpi , the area impact should be very low.

@moidx moidx marked this pull request as ready for review June 5, 2024 18:54
This commit enhances the data integrity protection inside the flash_phy_rd
module by generating and appending the integrity tag before muxing the
corresponding word using word_sel.

Signed-off-by: Pascal Nasahl <[email protected]>
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 !

Comment on lines +704 to 707
tlul_data_integ_enc u_bus_inv_data_intg (
.data_i({BusWidth{1'b1}}),
.data_intg_o(inv_data_integ)
);
Copy link
Contributor

Choose a reason for hiding this comment

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

This integrity generator module has a constant input and thus synthesis will be able to optimize this which is great. This means the change really only adds one tlul_data_integ_enc instances even though the loop above instantiates two. :-)

@moidx moidx merged commit f8240c3 into lowRISC:master Jun 6, 2024
31 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.

4 participants