Create conditional coverpoints

In reply to dave_59:

Thanks for the answer. Conceptually that works for me. However when I try it I get a SIGSEGV (Bad handle/ref) error, which to do this day I’m not sure how to debug.


	enum bit [31:0] {
	        BAUD_RATE_REG =  32'hB008_2000 , 
	        CTRL_REG =  32'hB008_2004 
	} REG_ADDR; 

	enum bit [31:0] {
		BAUD_10MHZ = 32'h0000_079E,
		START_SM = 32'h1111_1111
	} REG_DATA; 

  covergroup axi_cov_model_cg;
	ADDR_CP: coverpoint REG_ADDR'(configuration.waddr);  //SIGSEGV error

What does the

coverpoint REG_ADDR'(configuration.waddr);

line do? Form an array?