for r in0to PMP_NUM_REGIONS-1loop-- iterate over all regions
for r in0to PMP_NUM_REGIONS-1loop-- iterate over all regions
if((ctrl_i(ctrl_priv_lvl_msb_c downto ctrl_priv_lvl_lsb_c)= priv_mode_u_c)or(pmp_ctrl_i(r)(pmp_cfg_l_c)= '1'))and-- user privilege level or locked pmp entry -> enforce permissions also for machine mode
if((ctrl_i(ctrl_priv_lvl_msb_c downto ctrl_priv_lvl_lsb_c)= priv_mode_u_c)or(pmp_ctrl_i(r)(pmp_cfg_l_c)= '1'))and-- user privilege level or locked pmp entry -> enforce permissions also for machine mode
(pmp_ctrl_i(r)(pmp_cfg_ah_c downto pmp_cfg_al_c) /= pmp_off_mode_c)and-- active entry
(pmp_ctrl_i(r)(pmp_cfg_ah_c downto pmp_cfg_al_c) /= pmp_off_mode_c)and-- active entry