Question

Normally, I would just use repetition method for a lengthy sequence of time for a certain transition.

ie.

  covergroup test1 @(posedge clk)
  coverpoint( signal[1], signal[0]) 
 {
  bins transition1 = (2'b00[*1:100] =>2'b11[*1:100] => 2'b00) 
 }

Is there another method to check for multiple transitions but not have a set limit for repetition. To clarify I want to be able to check if certain transitions happen, but not care about the time( clk cycles).

Was it helpful?

Solution

don't define a sampling event for the covergroup i.e. no @(posedge clk) define the coverpoint without [*1:100] and sample using covergroup_name.sample()

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top