I want to write a bins which are mutually exclusive.
Here is the example:
- DUT has two kinds of slave devices: ahb slave and apb slave.
- I want to sample AMBA bus address to collect a coverage to check whether accesses to APB slave and AHB slave take place.
- AHB address is rest of APB address.
- I want to define a set of address for ahb_slave which is “[0:$]” - “bins apb_slave”.
It could be a bit cumbersome to list out all the address for ahb_slave. So I am wondering whether there is a good way of expressing “rest of apb”.
cg_AccessArea: coverpoint addr {
bins apb_slave = {['h4002_3800:'h4002_3BFF],
['h4002_4000:'h4002_4FFF],
['h4002_6800:'h4002_68FF],
['h4001_C000:'h4001_FFFF]};
bins ahb_slave = /* rest of apb */
}
Thanks,