Skip to content

Commit

Permalink
[csrng/dv] Add application instance cross to fips cover groups
Browse files Browse the repository at this point in the history
This commit adds the crosses between apps and fips compliance to the
csrng cover groups. It also adds a cross between the flag0 and the apps
on the cmd input side.

Co-authored-by: Hakim Filali <[email protected]>
Signed-off-by: Pirmin Vogel <[email protected]>
  • Loading branch information
vogelpi and Hakim Filali committed Jan 2, 2024
1 parent 341f1aa commit fc98685
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hw/ip/csrng/dv/cov/csrng_cov_if.sv
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ interface csrng_cov_if (
// Ignore invalid MuBi values for flags.
ignore_bins ignore_invalid_mubi = !binsof(cp_flags) intersect { MuBi4True, MuBi4False };
}
cmd_flag0_transition_app_cross: cross cp_flags_transition, cp_app;
endgroup : csrng_cmds_cg

// Covergroup to sample otp_en_cs_sw_app_read feature
Expand Down Expand Up @@ -475,6 +476,8 @@ interface csrng_cov_if (
bins valid = { 1'b1 };
bins invalid = { 1'b0 };
}

genbits_fips_transition_app_cross: cross cp_genbits_fips_transition, cp_genbits_app;
endgroup

// This covergroup tracks the compliance bit in the CSRNG state_db.
Expand Down

0 comments on commit fc98685

Please sign in to comment.