(vlog-13185) Unexpected constant with_expr in bin 'PBDIV2' of Coverpoint cp_ADDR

Hi,

On the following code line:

bins PBDIV2 = {pcfg.get_offset(“PBDIVx”,1)} with (pcfg.get_param(“TB_NUM_PB_CLKS”) > 1);

I get the following warning on QuestaSim:
(vlog-13185) Unexpected constant with_expr in bin ‘PBDIV2’ of Coverpoint cp_ADDR

What could be an elegant solution to get rid off the warning?

Thank you in advance

In reply to dragosciutacu:

See with clause error | Verification Academy

In reply to dave_59:

In reply to dragosciutacu:
See With clause error - Coverage - Verification Academy

Thank you, I will try