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

[sram_ctrl,dv] Add readback_regwen test #24596

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

nasahlpa
Copy link
Member

To close a coverage gap, this commit enhances the regwen_vseq to also cover the readback_regwen register.

Closes #24358.

Copy link
Contributor

@rswarbrick rswarbrick left a comment

Choose a reason for hiding this comment

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

A couple of nitty comments. The CI failure is because you need to regenerate some stuff from sram_ctrl.hjson (an easy fix!)

hw/ip/sram_ctrl/data/sram_ctrl_testplan.hjson Outdated Show resolved Hide resolved
hw/ip/sram_ctrl/dv/env/seq_lib/sram_ctrl_regwen_vseq.sv Outdated Show resolved Hide resolved
hw/ip/sram_ctrl/dv/env/seq_lib/sram_ctrl_regwen_vseq.sv Outdated Show resolved Hide resolved
@nasahlpa nasahlpa force-pushed the sram_ctrl_regwen_dv branch 2 times, most recently from b6c0326 to c680d6e Compare September 20, 2024 05:48
@nasahlpa nasahlpa marked this pull request as ready for review September 20, 2024 05:53
@nasahlpa nasahlpa requested a review from a team as a code owner September 20, 2024 05:53
@nasahlpa nasahlpa requested review from hcallahan-lowrisc and removed request for a team September 20, 2024 05:53
@nasahlpa
Copy link
Member Author

Thanks for your review, @rswarbrick. I've addressed your comments.

Copy link
Contributor

@rswarbrick rswarbrick left a comment

Choose a reason for hiding this comment

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

Thanks for the tweaks: this looks good to me.

@rswarbrick
Copy link
Contributor

CHANGE AUTHORIZED: hw/ip/sram_ctrl/data/sram_ctrl.hjson

(The change here is to add a description of a countermeasure, so there is no potential to break the design)

@nasahlpa
Copy link
Member Author

CHANGE AUTHORIZED: hw/ip/sram_ctrl/data/sram_ctrl.hjson
CHANGE AUTHORIZED: hw/ip/sram_ctrl/rtl/sram_ctrl.sv

(No functional change, only adds a countermeasure description.)

To close a coverage gap, this commit enhances the regwen_vseq to also
cover the readback_regwen register. To reflect this change, the
`sec_cm_readback_config_regwen` label is added. No functional
RTL change.

Now, EXPRESSION (readback_we & readback_regwen_qs) gets full cond.
coverage.

Closes lowRISC#24358.

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

CHANGE AUTHORIZED: hw/ip/sram_ctrl/data/sram_ctrl.hjson
CHANGE AUTHORIZED: hw/ip/sram_ctrl/rtl/sram_ctrl.sv

(No functional change, only adds a countermeasure description.)

@nasahlpa nasahlpa merged commit 0df3194 into lowRISC:master Sep 20, 2024
38 checks passed
@nasahlpa nasahlpa deleted the sram_ctrl_regwen_dv branch September 20, 2024 15:33
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.

[sram_ctrl/dv] Regwen test for READBACK feature
4 participants