Hi,
I’d like to specify the exact bins I want to hit in cross coverage and then ignore any automatically created bins. Is there any way to stop the creation of automatic bins?
I know I could use ignore_bins but sometimes it’s quite difficult to come up with an expression that ignores the automatically created bins. A simple example is the following:
cmd : coverpoint trans.cmd
{
bins cmd1 = {1};
bins cmd2 = {2};
bins cmd3 = {3};
}
source : coverpoint trans.source
{
bins master1 = {1};
bins master2 = {2};
bins master3 = {3};
}
dest : coverpoint trans.dest
{
bins slave1 = {1};
bins slave2 = {2};
bins slave3 = {3};
}
MyCmds : cross cmd, source, dest
{
bins cmd1 = binsof(cmd.cmd1) && binsof(source.master1) && binsof(dest.slave1);
bins cmd2 = binsof(cmd.cmd2) && binsof(source.master2) && binsof(dest.slave2);
bins cmd3 = binsof(cmd.cmd3) && binsof(source.master3) && binsof(dest.slave3);
}