I’m having the error saying an “Illegal expression within the binsof construct”. This error points to the ignore bins of my cross coverage
This is the code of the coverpoint.
cp_data : coverpoint tr.msg[26:12] {
bins DATA_SEC[4] = {[8'h00:8'hFF]};
}
// This is the cross coverage
reply_addr_data_cross : cross cp_reply, cp_addr, cp_data {
ignore_bins illegal_data = binsof(cp_reply.INVALID_READ) && (binsof(cp_data.DATA_SEC[1]));
}
The error says that binsof(cp_data.DATA_SEC[1]) is illegal.
What’s the right way of calling this memeber?