'cross' Coverage

SystemVerilog Assertions and Functional Coverage From Scratch SystemVerilog Functional Coverage Language Features
11 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
€38.44
List Price:  €144.28
You save:  €105.84
£31.93
List Price:  £119.86
You save:  £87.93
CA$57.45
List Price:  CA$215.64
You save:  CA$158.19
A$64.12
List Price:  A$240.67
You save:  A$176.55
S$54.27
List Price:  S$203.70
You save:  S$149.43
HK$310.47
List Price:  HK$1,165.34
You save:  HK$854.86
CHF 35.74
List Price:  CHF 134.15
You save:  CHF 98.41
NOK kr456.25
List Price:  NOK kr1,712.53
You save:  NOK kr1,256.27
DKK kr286.72
List Price:  DKK kr1,076.21
You save:  DKK kr789.48
NZ$70.92
List Price:  NZ$266.22
You save:  NZ$195.29
د.إ146.73
List Price:  د.إ550.75
You save:  د.إ404.02
৳4,792.38
List Price:  ৳17,987.92
You save:  ৳13,195.54
RM180.09
List Price:  RM675.97
You save:  RM495.88
₦62,179.77
List Price:  ₦233,388.17
You save:  ₦171,208.40
₨11,161.13
List Price:  ₨41,892.66
You save:  ₨30,731.52
฿1,376.19
List Price:  ฿5,165.47
You save:  ฿3,789.28
₺1,405.79
List Price:  ₺5,276.58
You save:  ₺3,870.78
B$246.73
List Price:  B$926.09
You save:  B$679.36
R734.27
List Price:  R2,756.05
You save:  R2,021.78
Лв75.23
List Price:  Лв282.40
You save:  Лв207.16
₩57,882.25
List Price:  ₩217,257.66
You save:  ₩159,375.41
₪145.78
List Price:  ₪547.21
You save:  ₪401.42
₱2,350.49
List Price:  ₱8,822.45
You save:  ₱6,471.96
¥6,261.91
List Price:  ¥23,503.72
You save:  ¥17,241.81
MX$810.63
List Price:  MX$3,042.66
You save:  MX$2,232.03
QR146.36
List Price:  QR549.38
You save:  QR403.02
P552.40
List Price:  P2,073.41
You save:  P1,521.01
KSh5,163.53
List Price:  KSh19,381.03
You save:  KSh14,217.50
E£2,034.16
List Price:  E£7,635.12
You save:  E£5,600.95
ብር5,099.95
List Price:  ብር19,142.37
You save:  ብር14,042.42
Kz36,674.10
List Price:  Kz137,654.10
You save:  Kz100,980
CLP$39,616.41
List Price:  CLP$148,697.91
You save:  CLP$109,081.50
CN¥291.59
List Price:  CN¥1,094.47
You save:  CN¥802.87
RD$2,439
List Price:  RD$9,154.65
You save:  RD$6,715.65
DA5,375.65
List Price:  DA20,177.19
You save:  DA14,801.54
FJ$92.73
List Price:  FJ$348.08
You save:  FJ$255.34
Q308.92
List Price:  Q1,159.54
You save:  Q850.61
GY$8,390.52
List Price:  GY$31,493.33
You save:  GY$23,102.81
ISK kr5,555.04
List Price:  ISK kr20,850.54
You save:  ISK kr15,295.50
DH402.49
List Price:  DH1,510.75
You save:  DH1,108.25
L735.86
List Price:  L2,762.03
You save:  L2,026.16
ден2,366.27
List Price:  ден8,881.68
You save:  ден6,515.40
MOP$320.99
List Price:  MOP$1,204.85
You save:  MOP$883.85
N$733.03
List Price:  N$2,751.42
You save:  N$2,018.38
C$1,476.03
List Price:  C$5,540.19
You save:  C$4,064.16
रु5,459.94
List Price:  रु20,493.58
You save:  रु15,033.64
S/149.71
List Price:  S/561.93
You save:  S/412.22
K162.56
List Price:  K610.15
You save:  K447.59
SAR150.11
List Price:  SAR563.45
You save:  SAR413.33
ZK1,109.90
List Price:  ZK4,165.96
You save:  ZK3,056.06
L191.30
List Price:  L718.05
You save:  L526.74
Kč966.19
List Price:  Kč3,626.54
You save:  Kč2,660.35
Ft15,901.88
List Price:  Ft59,686.78
You save:  Ft43,784.90
SEK kr440.95
List Price:  SEK kr1,655.10
You save:  SEK kr1,214.15
ARS$40,829.29
List Price:  ARS$153,250.37
You save:  ARS$112,421.08
Bs277.12
List Price:  Bs1,040.18
You save:  Bs763.05
COP$174,918.24
List Price:  COP$656,545.43
You save:  COP$481,627.19
₡20,168.90
List Price:  ₡75,702.82
You save:  ₡55,533.91
L1,018.04
List Price:  L3,821.16
You save:  L2,803.12
₲313,289.69
List Price:  ₲1,175,914.62
You save:  ₲862,624.93
$U1,782.11
List Price:  $U6,689.05
You save:  $U4,906.94
zł163.79
List Price:  zł614.79
You save:  zł451
Subscription
$149.95
$39.95
per week
Payment Plan
$149.96
$39.95
per week
4 payments
Already have an account? Log In

Transcript

Hello and welcome to lecture number five. In this lecture, we will learn about one of the most important features of the language called cross coverage. Unless and until you cross certain conditions meaning you, you make sure that those conditions occur together, you may not be able to find some of the key critical and corner case bugs. So let's look at cross coverage. Let me just start with the example and then I'll go through some of the rules. So here I have two variables of setting address which are both too big Why?

And I'm basically creating a cover group called CG one sampling it cause edge of clock. I'm creating two power points. One is the power point for offset variable. And inside this code point, I'm creating a bins ofs bin with these two brackets, which means create explicitly as many beans as you need for the number of values on the right hand side, on the right hand side you have 012 and three, four different values of offset that we want to cover. Basically, all the values have offset because offset is a Tobit variable, create four bins to cover four values of offset. Similarly, I'm saying that they create a cover point called ADR and in that create a bins address bin and create four of those four bins explicitly to cover four values of address.

Now what I'm doing is I'm creating a cross between AR and offset and I will explain to you exactly what that means. But first of all, what is how many beans will across or how many cover points will across create AR has four main areas Here has four bins, offset or FST has four bins. So, cross ADR and offset gives 16 power points, basically four core parts of offset and four core points of air. Now, note that the cross is always between two cover points, only between two core points is allowed within the same cover group you cannot have a cross between a PowerPoint defined in one cover group with a cover point defined in another cover group. So, it the core points has to be in the same cover group and weak expirations cannot be used directly in a cross. It has to be only between two PowerPoints, and then you instantiate it.

And that's that's pretty much what you need to do to create a cross. Now let's see what does cross really mean. So let's say As ADR equal to zero has been covered, and that will be covered here, in this particular bid. And let's say offset equal to zero also has been covered, which will be covered in this particular bands. But what if it is equal to zero an offset equal to zero never happened together. And let me make sure I explained what together means together does not mean necessarily at the same clock.

It's not a simultaneous occurrence of address equal to zero and offset equal to zero is what we are looking for. What we're looking for is there let's say it is equal to zero at some time, it stays at zero. And when it says zero, that offset should also go to zero. Now they're both zero at the same time. When that happens, then we know the Cross has been achieved. That will show you a simulation log file from one or the populists.

Simulators and your simulator may show you different way of showing the coverage report. So here for explicit means of offset were created because we just as a simulated create those and all four have been covered. Then you address a call point AR. CG one is the name of the cover group here is the name of the cover point. We also asked the simulator to create four explicit beds and all four of them have been covered. Now let's look at the CG one as I told you it will create 16 different ways because of the cross between four bins of offset and four bins of AR.

Now you see that all the four bins of AR and all the forms of offset were covered by the cross for example return address being two and offset been zero was not covered. Cross was done. Covered individually they were covered. And as you can see, the coverage report will say that these crosses have not been covered. And this is very important because for example, as I said in an earlier lecture, if you have a tag error in one particular cache line read and then you have data error in some other cache line read, you want to make sure that the for example, the the design state machine does not freeze design does not choke. And unless and until you make sure that you have done covered the cross or tagger and data error that such a design flaw can be found.

And this is where code coverage completely fails. So, let me show you one more example. Here what I'm doing is I have an enum called color RGB address of four bit wide and offset two bit wide. Again, I'm creating a cover group named CG one sampling at pauses of clock. I'm creating a counterpoint for the variable offset called FST and Nemo the core point and then I'm covering grading another tower point for ADR variable. And in this cover point, I'm creating two bins.

Note that I am not specifying any brackets here that this is just one thing. Whenever the value of ADR is 0123456 or seven, whenever you reach any of these eight value, this base AR one will be considered covered. So I just want to make sure that you don't think there are eight beans that are covered or created here. They are only there's only one way because there are there is there are No brackets here. So similarly a second beans is created to cover the values eight to 15. Now what I'm doing is I'm creating two crosses.

First I'm creating a cross between color the enum, and the address AR. And then I'm grading across between AR and offset. So, as I said here in the in this particular case, we're not because I'm not specifying any means at all. Then the simulator will create four bins because offset is to be applied. Here like I just said, ar one covers at FL zero to seven and here to cover it set as well as a 215 to two bins are created. So the cross of color and yellow color is basically a three bit enum three values.

And AR. AR here has two bins. So basically You're going to create total cross cover point six, three of color into address. And similarly, we are going to create a cross between AR and offset AR has two bins and offset at explicit four bins. So, the total crossover points are equal to eight photo for offset cross we do have address. And this is just to make a point that you can have a counterpoint for variable.

Go color. As you can see, I've created the core pen only for offset. And only for ADR, I have not created a counterpoint for color. And still I'm doing a cross with it. So explicitly for enum types you don't need to explicitly create a core point. Even though I haven't shown it here.

I personally will create a PowerPoint explicitly because I'm concerned that one simulator may accept it and other won't even though the LRM says that you don't need to explicitly create a PowerPoint for the end of time, that's just a side point. So, you can see how clauses can be created and how different types of gore points can be created which can be crossed and how many power points or bins will be created based on the number of bins that exist in each color point. And here's the simulation log file. And here pretty much the photo automatically created means of offset and two bins that were created in the address like I just showed you. These AR one and year two these are II have is a single bin they have been covered to the color has been covered to cross of CLR address which is basically Cross of color AR has been covered until here, where the auto been G, which is this guy here, which has been covered.

But it's cross with AR two which is this vein, which also has been covered by the Cross has not been covered. And so that simulator will tell you that it has not been covered, everything else has been coded the crosses of address and offset at all code. So you will have a very clear indication of their crosses, do not get covered. And as I say, Grace is an extremely important part of the language and you're just seeing how it works. And that's pretty much it for the cross. I'm keeping the lectures short and simple.

You know fundamentally how to use cross and the importance of it. And believe me, this is something you'll have to keep in mind when they create your cover point. And covered groups when you create your functional coverage plan, thank you and I'll see you in the next lectures.

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.