Crossing 2 covergrops

Hi All,

Please tell me how to cross two cover groups:
eg:
cg cg1:
A :coverpoint a;
endgroup

cg cg2
B: coverpoint b;
endgroup

How to cross cg1 coverpoint A & coverpoint ,cg2 coverpoint B

I tried below …but no solution…
In cg cg2
cg1 cg = new();
cross : cg.A,B;
endgrop

Please help me out:
NOTE: i am writing coverage in monitor class.

Thanks,
Nagendra.

This is not possible to do in SystemVerilog. The problem is that cg1 and cg2 are not sampled at the same time instantaneously, and there is currently no way to define which sample points the cross should be based on. There are a bunch of other issues waiting for the IEEE SV committee to resolve. 404