Skip to content

Commit

Permalink
Removed some uncoverable fcov when
Browse files Browse the repository at this point in the history
* mml is low
* region is unlocked
execution would be permitted in m-mode
  • Loading branch information
Saad Khalid authored and GregAC committed Mar 16, 2023
1 parent d13a180 commit 0623fdb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dv/uvm/core_ibex/fcov/core_ibex_pmp_fcov_if.sv
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,12 @@ interface core_ibex_pmp_fcov_if import ibex_pkg::*; #(
(binsof(cp_req_type_iside) intersect {PMP_ACC_EXEC} &&
binsof(cp_region_priv_bits) intersect {X, XW, XR, XWR, LX, LXW, LXR, LXWR} &&
binsof(pmp_iside_req_err) intersect {1});
illegal_bins illegal_deny_exec_machine_unlocked =
// Ensuring in machine mode when MML is low, we are in X allowed configuration
(binsof(cp_region_priv_bits) intersect {R, W, WR} &&
binsof(cp_req_type_iside) intersect {PMP_ACC_EXEC} &&
binsof(cp_priv_lvl_iside) intersect {PRIV_LVL_M} &&
binsof(pmp_iside_req_err) intersect {1});
illegal_bins illegal_machine_deny_exec =
// Ensuring MML is high and we are in a X allowed configuration in Machine Mode
(binsof(cp_region_priv_bits) intersect {NONE, MML_XM_XU, MML_XRM_XU, MML_XRM,
Expand Down Expand Up @@ -320,6 +326,12 @@ interface core_ibex_pmp_fcov_if import ibex_pkg::*; #(
(binsof(cp_region_priv_bits) intersect {X, XW, XR, XWR, LX, LXW, LXR, LXWR} &&
binsof(cp_req_type_iside2) intersect {PMP_ACC_EXEC} &&
binsof(pmp_iside2_req_err) intersect {1});
illegal_bins illegal_deny_exec_machine_unlocked =
// Ensuring in machine mode when MML is low, we are in X allowed configuration
(binsof(cp_region_priv_bits) intersect {R, W, WR} &&
binsof(cp_req_type_iside2) intersect {PMP_ACC_EXEC} &&
binsof(cp_priv_lvl_iside2) intersect {PRIV_LVL_M} &&
binsof(pmp_iside2_req_err) intersect {1});
illegal_bins illegal_machine_deny_exec =
// Ensuring MML is high and we are in a X allowed configuration in Machine Mode
(binsof(cp_region_priv_bits) intersect {NONE, MML_XM_XU, MML_XRM_XU, MML_XRM, MML_XM} &&
Expand Down

0 comments on commit 0623fdb

Please sign in to comment.