Hi,
1) What is the right syntax for defining bins in coverage for enum? The below syntax doesnt seem to compile.
typedef enum {READ, WRITE} kind_e;
READ_WRITE: coverpoint trans.apb_cmd {
bins apb_cmd [] = {[trans.apb_cmd.first:trans.apb_cmd.last]};
}
2) If i manually declare the bins as like below and if i dont issue any read transaction my coverage still shows 100%. Can anyone point me what is wrong here?
https://edaplayground.com/x/WVnJ
bins apb_cmd [] = {[0:1]};