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

[dd, prim] Simplyfing condition to ease coverage closure #25814

Merged

Conversation

antmarzam
Copy link
Contributor

The acknoledgement can't be set unless the request is set. The condition has been simplified to only check for the acknoledgment.

In addition, the new assertion checks if the ack is set, the request must be set

hw/ip/prim/rtl/prim_reg_cdc_arb.sv Outdated Show resolved Hide resolved
hw/ip/prim/rtl/prim_reg_cdc_arb.sv Outdated Show resolved Hide resolved
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.

I think I agree with the changes to the code. Please could you tidy up the comments and force-push? Then we can move to merging things :-)

The acknoledgement can't be set unless the request is set. The
condition has been simplified to only check for the acknoledgment.

In addition, the new assertion checks if the ack is set, the request
must be set

Signed-off-by: Antonio Martinez Zambrana <[email protected]>
@antmarzam antmarzam force-pushed the prim_reg_cdc_arb_cond_cov_simplification branch from dbdb415 to a7defe5 Compare January 29, 2025 17:28
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, this looks good to me.

@rswarbrick
Copy link
Contributor

CHANGE AUTHORIZED: hw/ip/prim/rtl/prim_reg_cdc_arb.sv

No functional change (by careful reasoning and an assertion that gets added). This should give no risk to earlgrey.

@rswarbrick rswarbrick requested review from vogelpi and alees24 January 30, 2025 18:25
@rswarbrick
Copy link
Contributor

As a note: If #25705 gets merged before this PR, we'll need to update the exclusion file to drop the exclusions that this RTL change gets rid of.

@alees24
Copy link
Contributor

alees24 commented Jan 31, 2025

CHANGE AUTHORIZED: hw/ip/prim/rtl/prim_reg_cdc_arb.sv

@rswarbrick rswarbrick merged commit b63a8de into lowRISC:master Jan 31, 2025
38 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