ipv6_hdr__f_next_header_cp: coverpoint this.ipv6_hdr.ipv6_f_next_header iff (this.has_ipv6_header){
bins ipsec_33 = {'h33};
bins tcp_06 = {'h06};
bins udp_11 = {'h11};
bins done_3b = {'h3b};
bins ipv6_ext_any_other [3] = {[0:'h5], ['h7:'h10], ['h12:'h3a], ['h3c:$]};
}
ipv6_ext_any_other
bin 应收集其他 bin 未收集的所有值。
default
可能会被使用,但问题是 default
不是一个 active
bin,我的意思是,它不是func cov 指标。
还有其他方法可以定义ipv6_ext_any_other
bin吗?
或者,有没有办法使默认
成为事件垃圾箱?
最佳答案
你可以做到
bins ipv6_ext_any_other [3] = {[0:$]} with (!(item inside {'h33,'h06,'h11,'h3b}));
关于verilog - 功能覆盖 - 收集其他 bin 中未收集的所有值的 bin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65687867/