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

[pwm,dv] Exclude some more impossible toggle coverage items #25140

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rswarbrick
Copy link
Contributor

This PR builds on #25135 which contains the first commit. The following two commits exclude another couple of impossible toggle coverage items (with detailed notes). With these changes merged, we can actually see 100% toggle coverage.

Honestly, this isn't really a pwm-specific change so we'll probably
want to move it eventually. Before this change, he reported toggle
coverage misses bits 56:43 of data_i in tb.dut.u_reg.u_chk.u_chk. This
instance is made with:

    prim_secded_inv_64_57_dec u_chk (
      .data_i({tl_i.a_user.cmd_intg, H2DCmdMaxWidth'(cmd)}),
      .data_o(),
      .syndrome_o(),
      .err_o(err)
    );

where cmd is 43 bits wide and H2DCmdMaxWidth is 57. As such, bits
56:43 are constant.

Signed-off-by: Rupert Swarbrick <[email protected]>
For the first item (d_param and d_sink), the fields are genuinely
constant.

For the second item, the rsp_intg signal is calculated as a hash of a
small value. Local attempts to change it, watching a wave viewer,
didn't actually see the top bit change. I'm not sure if it's actually
impossible to hit, but waiving the coverage seems reasonable in this
case.

Signed-off-by: Rupert Swarbrick <[email protected]>
This is wired to a constant, so definitely won't change.

Signed-off-by: Rupert Swarbrick <[email protected]>
@rswarbrick rswarbrick added Component:DV DV issue: testbench, test case, etc. IP:pwm labels Nov 14, 2024
@rswarbrick rswarbrick requested a review from a team as a code owner November 14, 2024 13:03
@rswarbrick rswarbrick requested review from marnovandermaas and removed request for a team November 14, 2024 13:03
@rswarbrick rswarbrick mentioned this pull request Nov 14, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:DV DV issue: testbench, test case, etc. IP:pwm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant