From fc9868561d3f0dff920f49802c19c81e80e18e67 Mon Sep 17 00:00:00 2001 From: Pirmin Vogel Date: Tue, 2 Jan 2024 21:36:39 +0100 Subject: [PATCH] [csrng/dv] Add application instance cross to fips cover groups 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 Signed-off-by: Pirmin Vogel --- hw/ip/csrng/dv/cov/csrng_cov_if.sv | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/ip/csrng/dv/cov/csrng_cov_if.sv b/hw/ip/csrng/dv/cov/csrng_cov_if.sv index 0ec66af97293e..534db7a1f98da 100644 --- a/hw/ip/csrng/dv/cov/csrng_cov_if.sv +++ b/hw/ip/csrng/dv/cov/csrng_cov_if.sv @@ -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 @@ -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.