'bins'

SystemVerilog Assertions and Functional Coverage From Scratch SystemVerilog Functional Coverage Language Features
10 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$39.95
List Price:  $149.95
You save:  $110
₹1,480
List Price:  ₹9,995
You save:  ₹8,515
€37.87
List Price:  €142.15
You save:  €104.28
£31.55
List Price:  £118.43
You save:  £86.87
CA$55.89
List Price:  CA$209.78
You save:  CA$153.89
A$61.42
List Price:  A$230.55
You save:  A$169.12
S$53.66
List Price:  S$201.43
You save:  S$147.76
HK$310.94
List Price:  HK$1,167.12
You save:  HK$856.17
CHF 35.38
List Price:  CHF 132.82
You save:  CHF 97.44
NOK kr441.52
List Price:  NOK kr1,657.24
You save:  NOK kr1,215.71
DKK kr282.47
List Price:  DKK kr1,060.24
You save:  DKK kr777.77
NZ$67.94
List Price:  NZ$255.04
You save:  NZ$187.09
د.إ146.73
List Price:  د.إ550.76
You save:  د.إ404.02
৳4,757.02
List Price:  ৳17,855.20
You save:  ৳13,098.18
RM178.63
List Price:  RM670.50
You save:  RM491.86
₦66,908.65
List Price:  ₦251,137.75
You save:  ₦184,229.10
₨11,062.35
List Price:  ₨41,521.90
You save:  ₨30,459.55
฿1,386.54
List Price:  ฿5,204.31
You save:  ฿3,817.77
₺1,376.80
List Price:  ₺5,167.77
You save:  ₺3,790.96
B$231.20
List Price:  B$867.82
You save:  B$636.61
R723.37
List Price:  R2,715.16
You save:  R1,991.78
Лв74.05
List Price:  Лв277.95
You save:  Лв203.90
₩55,812.30
List Price:  ₩209,488.24
You save:  ₩153,675.93
₪149.29
List Price:  ₪560.37
You save:  ₪411.07
₱2,357.82
List Price:  ₱8,849.97
You save:  ₱6,492.14
¥6,222.78
List Price:  ¥23,356.84
You save:  ¥17,134.06
MX$807.25
List Price:  MX$3,029.98
You save:  MX$2,222.73
QR145.17
List Price:  QR544.90
You save:  QR399.73
P541.58
List Price:  P2,032.82
You save:  P1,491.23
KSh5,173.52
List Price:  KSh19,418.52
You save:  KSh14,245
E£1,985.51
List Price:  E£7,452.51
You save:  E£5,467
ብር4,899.40
List Price:  ብር18,389.63
You save:  ብር13,490.22
Kz36,460.79
List Price:  Kz136,853.46
You save:  Kz100,392.67
CLP$38,803.03
List Price:  CLP$145,644.93
You save:  CLP$106,841.90
CN¥289.50
List Price:  CN¥1,086.62
You save:  CN¥797.12
RD$2,397.37
List Price:  RD$8,998.41
You save:  RD$6,601.03
DA5,330.55
List Price:  DA20,007.92
You save:  DA14,677.37
FJ$90.71
List Price:  FJ$340.49
You save:  FJ$249.77
Q307.31
List Price:  Q1,153.47
You save:  Q846.16
GY$8,324.22
List Price:  GY$31,244.48
You save:  GY$22,920.25
ISK kr5,502.71
List Price:  ISK kr20,654.11
You save:  ISK kr15,151.40
DH397.72
List Price:  DH1,492.82
You save:  DH1,095.10
L727.09
List Price:  L2,729.10
You save:  L2,002.01
ден2,327.48
List Price:  ден8,736.06
You save:  ден6,408.58
MOP$319.12
List Price:  MOP$1,197.83
You save:  MOP$878.70
N$719.71
List Price:  N$2,701.40
You save:  N$1,981.69
C$1,464.95
List Price:  C$5,498.63
You save:  C$4,033.67
रु5,378.70
List Price:  रु20,188.64
You save:  रु14,809.94
S/151.06
List Price:  S/567.01
You save:  S/415.95
K160.17
List Price:  K601.21
You save:  K441.03
SAR149.98
List Price:  SAR562.94
You save:  SAR412.96
ZK1,099.68
List Price:  ZK4,127.58
You save:  ZK3,027.90
L188.46
List Price:  L707.37
You save:  L518.91
Kč957.21
List Price:  Kč3,592.84
You save:  Kč2,635.63
Ft15,518.42
List Price:  Ft58,247.49
You save:  Ft42,729.07
SEK kr439.39
List Price:  SEK kr1,649.23
You save:  SEK kr1,209.83
ARS$40,020.14
List Price:  ARS$150,213.28
You save:  ARS$110,193.13
Bs276.06
List Price:  Bs1,036.20
You save:  Bs760.13
COP$176,073.59
List Price:  COP$660,881.98
You save:  COP$484,808.38
₡20,235.05
List Price:  ₡75,951.09
You save:  ₡55,716.04
L1,005.80
List Price:  L3,775.23
You save:  L2,769.43
₲310,029.48
List Price:  ₲1,163,677.61
You save:  ₲853,648.13
$U1,707.86
List Price:  $U6,410.37
You save:  $U4,702.50
zł164.29
List Price:  zł616.68
You save:  zł452.38
Subscription
$149.95
$39.95
per week
Payment Plan
$149.96
$39.95
per week
4 payments
Already have an account? Log In

Transcript

Welcome to lecture number four. This is where we will cover the bins that I've been referring to in previous lectures. So, I will go through the basics of the bins. So to start with what is a bin, think of a bin as a bucket, in the sense that let's say for example, in this particular example, you have a DR address is of a bit wide, that means it has 256 different values that you need to cover. Now, if you just let the simulator create the bends, so called bins or buckets, it will create 256 of those, which is what you really don't need. So bins is something where you can bucket eyes or you can say hey, if the values are from zero to 10 in a day get covered, put that in this bin with this name on it and I will show you in a example which will which is example I'm carrying forward from previous lecture on PCI how it becomes useful.

So, let me not go ahead of myself. So our goal point will include a set of explicit, like I showed you in some examples before or implicit bends that will allow you to organize the cover point sample. And we haven't seen transition or transition values or cross values for that matter. So let's look at this example. I have an eight bit wide address and I created a cover group called Jeevan. And I want to sample the core group it pauses of clock, so it pauses a clock all these discover point in all these bits will be evaluated.

Now inside discover group I'm going to cover with the PowerPoint, this ADR and I evaluated only a preset is low if we are not in the reset mode. Now if you recall those To squiggly brackets. Now in the earlier example, I had nothing inside the squiggly brackets and everything was automatically generated for you. What I'm doing now is I'm going to define a bunch of bins. And since as I said, ADR has 256 different values, I'm going to show you how to put those 256 values in different bins. So let's look at the first bit.

Bins is a key word. And I'll give it a name, address bin one equal to in the squiggly bracket, zero colon three. What this number one, do not confuse zero colon three to mean that is a four bit register or anything like that, which is what you're used to. In the functional language, syntax and semantics. Zero colon three means four values. 012 and three.

So, what this is saying is that whenever address this government address has a value either zero or one or two or three, if you reach any of these four values, then you have covered address being bought. Again, do not confuse this with the register zero colon three, it literally means 012 and three and whenever it's a single big single been here and you I will show you how can you create multiple bands, but this is a single Ben took our all as well as 012 and three, anytime you reach any of these values, this bins address min one will be covered. In the second line, you'll see that these address mean two I put this bracket here and then I'm saying values four and five. What this means is that Individual beans will be created automatically generated by system our live audio simulator for that record I'm not telling it anything, it's it sees that there are two values on the right hand side so it's going to automatically create two bins.

So as you can see our individual bins address been to one these are the names given by the simulator and address been to two for each of the added value for call caller comma five. Again to contrast this with the previous line here there is a single bin to cover all the address values. Here there are two bins to cover two different values. So there is a big difference here. When address equal to four has been reached, then address been to one will be covered. And when address value five has been raised at has been to two will be covered.

Now in this line, I'm explicitly saying create two bits But I have three values six, seven and eight on the right hand side. So, what is going to do is add this value six isn't been addressed when three one and address bin two there are only two bins and three values seven and eight will be put in the second bin. What that means is, if six had been reached, if we if your test bench exercises ADR equal to six, then the then the address been three one will be considered covered and whenever the ATR it is either value seven or eight address when three two will be covered this names are given explicitly by the the simulator. This is slightly reverse of the previous line here I'm saying create three bins, but I have only two values. So, the first bin will cover very Nine second bean will cover value 10 and the third one will simply remain empty it the simulator will tell you that it's an empty bed meaning it'll never be covered.

There's nothing to cover there. Similarly, if you look at this particular line, you will see that in the address mean five again, I'm doing what I did with it trust me do. I'm basically saying create explicitly number of beans required based on the values that I want to cover on the right hand side. But what I've got on the right hand side is I have two different brackets one is took our values 910 1112 and the second is to go over 1112 1314 1516. The point I'm making here is that you have 11 and 12 and 11 and 12. In both these brackets are all overlapping and that's perfectly okay.

That's perfectly okay. What the simulator will do is it will remove the riddle Then see and basically go from nine to 16. And because I'm saying similar, you create the bins. Here, we'll create eight bins explicitly for the eight values on the right hand side. And here, we are saying that cover all the values of the ADR that are between 31. And Forever Forever means in this case is 256.

So any address value, you read that as value anywhere from 31 to 256, it's considered covered. And these bins here Greg will tell you that those values have been covered. Any of those value covered will be considered. We'll consider this beans here too, and to be covered. There, it's important to note and here I have covered all the values but in case you did not cover all the values, then you can just put a default here. So anything That's not been covered in the previous bins.

But all of those anything that you reach by I consider that as a default and put that in the bins, others. So these are the different ways you can create vents and again, a Benyus value bucket guys, you basically say, Hey, listen, I have a 32 bit wide bus. And I don't want I want less than the first eight bits to be. If they get covered, put them in this bin, so it's easier for me to see my coverage report and so on and so forth. Now, let me show you an example. Which will solidify this concept.

So this is the same example I showed you in the previous lecture. There is an enum which is 12 different cycle types of the PCI bus and the enum is called PCI commands. I have created a power group RPC commands under scope cover just like in the previous lecture, and I'm sampling it at the age of four. Now, earlier I simply said cover point PCA commands. And then I left it up to the similar to create 12 bins for the 12 nm types add for further total enum values. Here, what I'm doing is I'm going to create a bins are being called PCI reads.

And what I'm telling the simulator is create all the bases necessary to cover all the right hand side values. And in the PCI rates, I want to cover all the read type cycles that the PCI come at the PCI bus issues in the PCI writes when I want to cover all the memory, sorry, all the right commands, and whatever that is left I want to put that in the beans called PCM miscellaneous misc. So as you can see beans Live you now when you look at the coverage reports, and if you see beans PCI reads have been covered, then you know that all the read cycles have been covered. If you did not classify them into READ WRITE and miscellaneous, for example, then you have to look at individual beans of all the 12 beans that are explicitly created for you and see a harmony. If all the reads have been covered.

This makes it a lot easier. And so this is one of the main reasons for creating veins. And you will see how it affects even further when we go to the transition and cross coverage. So that's all folks. I just wanted to introduce you to Ben's, how to create ways what are the different type of vents and again, being is simply a way to organize all the different values of the PowerPoint that you're trying to cover. Thank you very much for your time and I will see you in the next class.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.