Hi Essam,
Althoug you are doing in the right way. But the other way of doing the same in just one covergroup can be as follows.
covergroup cvpt0 @(posedge clock);
coverpoint RA
{
bins a0 = {0};
bins a1 = {1};
bins a2 = {2};
...
...
...
bins a15 = {15};
}
coverpoint RB
{
bins b0 = {0};
bins b1 = {1};
bins b2 = {2};
...
...
...
bins b15 = {15};
}
cvpt0cross: cross RA, RB
{
bins AB0 = binsof (RA.a0) && binsof (RB.b0);
bins AB1 = binsof (RA.a1) && binsof (RB.b1);
......
......
......
......
bins AB15 = binsof (RA.a15) && binsof (RB.b15);
}
endgroup
Hopefully it wil work.
--
Thanks & Regards
Hitesh Mishra
Design Engineer
Freescale Semiconductor
Mobile: 09891272635
"Dont walk as if U rule the World, Walk as if U dont care who rules the World, Thats called ATTITUDE"