GokulS
1
Hi
Is there any shortcut to write the power of 2 coverage code for a 64 bit vector? What I mean is like ,for a 4 bit vector, one can write as
wildcard bins B0= {4’b1???};
wildcard bins B1= {4’b01??};
wildcard bins B2= {4’b001?};
wildcard bins B3= {4’b0001};
It would be tedious to do for a 64 bit vector, so how can I do it within the covergroup defined in my coverage class?
I am new to UVM.
This has little or nothing to do with UVM from the implementation perspective, this link may help http://www.amiq.com/consulting/2015/09/18/functional-coverage-patterns-bitwise-coverage/
HTH,
-R
GokulS
3
In reply to rgarcia07:
Hi
I saw the code earlier but it did not work out for me.I had already sampled it within the class .In the code, it is sampled within the function.