[sv-ec] Query regarding automatic bin mapping

From: Abhishek Tiwari <atiwari_at_.....>
Date: Tue Jun 20 2006 - 08:39:09 PDT
Hi

If we have a 32 bit integer as coverpoint having only automatic bins 
,then what method of automatic bin mapping should be applied.

For example

integer i;
reg clk;

covergroup (@posedge clk) {
   coverpoint i {
   }
}

In this case by default we will be having 64 automatic bins.
Total integer space will be  -2147483648 to +2147483647.

Now  mapping of  all possible values of integer (-2147483648 to 
+2147483647) to these 64 automatic bins can
be done in 2 ways.

1)  We should start mapping from minimum value( -2147483648) to maximum 
value (+2147483647).
   So  auto[0] will map to (-2147483648 to -2080374785)
       auto[1] will map to (-2080374784 to -2013265919)
       and so on.....
       auto[63] will map to (+2080374784 to +2147483647)

2)  positive values and corresponding negative value should map to same 
automatic bin.
   for example +5 and -5 should map to same auto bin. So
   auto[0]  will map to (0 to 33554431) and (-33554432 to -1)

Which method should we follow.

Thanks
Abhishek
Received on Tue Jun 20 08:39:14 2006

This archive was generated by hypermail 2.1.8 : Tue Jun 20 2006 - 08:39:27 PDT