I know that Code Coverage is the right way to do toggle coverage. Doing that through Functional Coverage is a long stretch. But, for the sake of argument, I want to select a few signals and do toggle coverage through functional coverage. Will the following work?
bit[7:0] adr1;
covergroup gc @(posedge clk);
ac: coverpoint adr1
{
bins ar1 = (1'b0 => 1'b1 || 1'b1 => 1'b0);
}
endgroup
gc gcInst = new;
Thanks.