Consecutive Repetition

23 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.25
List Price:  €139.81
You save:  €102.56
£31.94
List Price:  £119.88
You save:  £87.94
CA$54.65
List Price:  CA$205.14
You save:  CA$150.49
A$61.21
List Price:  A$229.74
You save:  A$168.53
S$54.31
List Price:  S$203.86
You save:  S$149.54
HK$312.76
List Price:  HK$1,173.93
You save:  HK$861.17
CHF 36.48
List Price:  CHF 136.93
You save:  CHF 100.44
NOK kr437.45
List Price:  NOK kr1,641.97
You save:  NOK kr1,204.51
DKK kr277.83
List Price:  DKK kr1,042.85
You save:  DKK kr765.01
NZ$67.04
List Price:  NZ$251.66
You save:  NZ$184.61
د.إ146.73
List Price:  د.إ550.75
You save:  د.إ404.01
৳4,378.17
List Price:  ৳16,433.22
You save:  ৳12,055.04
RM190.86
List Price:  RM716.38
You save:  RM525.52
₦50,617.44
List Price:  ₦189,989.64
You save:  ₦139,372.20
₨11,106.46
List Price:  ₨41,687.46
You save:  ₨30,581
฿1,479.17
List Price:  ฿5,552.01
You save:  ฿4,072.83
₺1,298.49
List Price:  ₺4,873.83
You save:  ₺3,575.33
B$205.63
List Price:  B$771.82
You save:  B$566.19
R759.59
List Price:  R2,851.08
You save:  R2,091.49
Лв72.88
List Price:  Лв273.56
You save:  Лв200.68
₩54,905.43
List Price:  ₩206,084.35
You save:  ₩151,178.92
₪151.64
List Price:  ₪569.19
You save:  ₪417.55
₱2,308.77
List Price:  ₱8,665.83
You save:  ₱6,357.06
¥6,214.04
List Price:  ¥23,324.04
You save:  ¥17,110
MX$681.36
List Price:  MX$2,557.45
You save:  MX$1,876.09
QR145.49
List Price:  QR546.12
You save:  QR400.62
P553.29
List Price:  P2,076.75
You save:  P1,523.46
KSh5,373.27
List Price:  KSh20,168.27
You save:  KSh14,795
E£1,913.46
List Price:  E£7,182.06
You save:  E£5,268.60
ብር2,268.32
List Price:  ብር8,514.01
You save:  ብር6,245.68
Kz33,458.12
List Price:  Kz125,583.12
You save:  Kz92,125
CLP$38,059.56
List Price:  CLP$142,854.36
You save:  CLP$104,794.80
CN¥289.47
List Price:  CN¥1,086.53
You save:  CN¥797.06
RD$2,346.22
List Price:  RD$8,806.41
You save:  RD$6,460.19
DA5,366.56
List Price:  DA20,143.10
You save:  DA14,776.53
FJ$91.56
List Price:  FJ$343.69
You save:  FJ$252.12
Q310.09
List Price:  Q1,163.91
You save:  Q853.82
GY$8,351
List Price:  GY$31,345.01
You save:  GY$22,994
ISK kr5,591.40
List Price:  ISK kr20,987
You save:  ISK kr15,395.60
DH404.82
List Price:  DH1,519.49
You save:  DH1,114.66
L711.55
List Price:  L2,670.77
You save:  L1,959.22
ден2,294.80
List Price:  ден8,613.40
You save:  ден6,318.60
MOP$321.89
List Price:  MOP$1,208.23
You save:  MOP$886.33
N$764.99
List Price:  N$2,871.35
You save:  N$2,106.36
C$1,468.33
List Price:  C$5,511.31
You save:  C$4,042.97
रु5,317.95
List Price:  रु19,960.64
You save:  रु14,642.68
S/148
List Price:  S/555.52
You save:  S/407.51
K151.64
List Price:  K569.20
You save:  K417.55
SAR149.83
List Price:  SAR562.40
You save:  SAR412.56
ZK1,042.20
List Price:  ZK3,911.85
You save:  ZK2,869.65
L185.37
List Price:  L695.78
You save:  L510.41
Kč938.56
List Price:  Kč3,522.84
You save:  Kč2,584.28
Ft14,621
List Price:  Ft54,879.10
You save:  Ft40,258.09
SEK kr434
List Price:  SEK kr1,629.02
You save:  SEK kr1,195.01
ARS$34,886.01
List Price:  ARS$130,942.62
You save:  ARS$96,056.60
Bs275.67
List Price:  Bs1,034.74
You save:  Bs759.06
COP$155,475.85
List Price:  COP$583,569.56
You save:  COP$428,093.70
₡20,009.70
List Price:  ₡75,105.25
You save:  ₡55,095.55
L984.80
List Price:  L3,696.38
You save:  L2,711.58
₲296,355.57
List Price:  ₲1,112,353.39
You save:  ₲815,997.81
$U1,532.08
List Price:  $U5,750.59
You save:  $U4,218.50
zł160.72
List Price:  zł603.27
You save:  zł442.54
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 11. We are continuing with the concurrent assertion operators. In the last lecture we saw the clock delay and clock delay range operators. And now this lecture will see consecutive reputation operator consecutive reputation operator star m star is the syntax and M means that the signal in this case signal B must be true on M consecutive clocks I just like the naming place. So, in this property we are saying that it pauses of clock if z is high starting next clock because this is an over a non Ola lapping operator. So, one should hold as one says that a being true, one clock later B should remain true for two consecutive talks.

That relationship is shown here. And it must be true on consecutive clogs, and can be greater than or equal to zero. when m is zero, it's called an empty match. And we'll see that a bit later. m can not be in finite, you do not want to, it makes actually no sense to see if signal remains high with this particular consecutive reputation operator, that it remains high forever. You could simply say a pound bond one B.

And there are other ways you can one column infinity, for example, and that's another way you can achieve that particulars back but in the case opens again. It doesn't make sense to have This tool to be in fact in finite. So here is a clear definition of what this means is equivalent to a pawn pawn one B on pawn one b, this is identical to a pawn pawn one, B star two. Here's a simple simulation log z is true at this clock is true at the very at the next clock as required by non overlapping operator. And VDM is true for two consecutive clocks and the property passes. In this case z is through neck slug is true, but b does not remain a surrogate for two consecutive globs.

And the property fails are very intuitive that that's a consecutive reputation operator. And just want to make sure that the over V understand and which which is quite intuitive Actually, that says we are looking for B to remain asserted for two clogs, then the overall reputation sequence matches at the end of the last iterative match, which makes sense because we are trying to make sure that a particular given signal remains asserted or DS or date for m number of clocks consecutively. Okay, so let's look at the consecutive repetition range operator. What this sequence says that exists through a positive cloud as one should hold. And as even says that a being true, one clock later we should be true consecutively for either two clocks, or five clocks. Let's first look at the formal definition and minimum of M consecutive clocks which is two here and maximum have n consecutive clocks, which is five years and can be greater than or equal to zero.

And just like in the clock delay range operator, n can be greater than or equal to zero or in finite, not that this m cannot be in finite. But here since this is a range operator, we have a lower limit. So then the upper limit can be finite. That's the reason for here and can be in finite. Now, let's, this seems very benign and very easy to understand. But soon I will show you right now actually, let me make a point here.

A pawn pawn one beat star to column five is equivalent to a pawn pawn one B, next clock B, or a, then B, then B and the third v fourth, and fifth, we know that this is an order. So if this condition is met two consecutive B, then the property will end. Because it's an all either it should remain a certain high for example, we should remain high for two consecutive clocks, or three or four or five consecutive talks. So obviously, since this is an R, as soon as we see B followed by B, then the property ends, the overall reputation sequence matches at the first match of the sequence that meets the required condition. Okay, so let's look at this log z is high overlapping operator a is high and B remains high for two consecutive clocks. So we have met this particular condition and the property passes is over.

He doesn't need to wait for three or four or five minutes reputation in this example z is high overlapping a is high, B is high the next the next clock here a pawn pawn one V, but it does not remain consecutively high for even two clocks and so the property fails. Now, let me ask you this question. If the property passes as soon as it sees two consecutive and if the property phase if it does not see two consecutive When will this property ever wait for three or four or five days? Think about that for a moment. We have to call in five. Why or when would this property ever read for three weeks or four weeks or five days?

Will it? Answer is no it will never wait for this. Then why do we have colon five? What's what good does it do? Why can't we just have started to I will explain to you It is the same property. But here What I'm saying is a one, Drogheda should be followed by b b should remain consecutively high for two tops or maximum five clocks, but after this one clock laters c should be high.

Now, think of one pound one one C as the ending event or what I call a qualifying event and you will soon see the significance of bomb bomb one C on five in the previous slide, as I told you five does not have much meaning because it does not have anything after that and you will soon see Wi Fi has meaning because that is what I call an ending event or a question Find the event Okay, this is equivalent there should be a upon one one C here. So, this particular a followed by b followed by C is equivalent to a, b, b, c, or what that means is if this condition is not met, then the property is going to look for three B's and then see if that is not met, then it's going to wait for four and, and so on and so forth.

And you will let me explain this with the simulation law. Here's a simulation log of this particular property that I simulated. Okay, let's start with the very first part of the law. z is high at time 38 is high time 30 as required by the early being operator B remains high for two consecutive clocks. And one drop later as required, C is high. So everything makes and the property passes.

This is straightforward. Now let's look at the next part. This is the interesting part, Z is high as high. Next glug V is high. And then next clock these highs, so two consecutive reputation of V as required by these two. But now, what the property does is the next clock because B has been high for two clocks, which meets the requirement it looks for C to be high the next clock and you may say that, hey, it's been asserted for it's been high for two clocks.

Next clock see needs to be high. It's not high. Why didn't the property fail? Because, look at this again. It says that if this condition is met, all this condition is met, there is this particular qualifying event makes the property now look for three B, because there is a good chance that if she didn't come after two years that it can come after three B's. So why would we say that the property page here, that's the reason the property does not fail, it looks for three ways again looks for C is not true.

So, it looks for four ways. Again C is not true. So, it looks for five ways. And then looks for C equal to five is the maximum conjugative reputation requirement, see through and the property passes. I will also in just a minute tell you how to read such a property. Now in this case, now this is also very important case.

Very easy to miss z as high as high B is high for two consecutive operations, but not in this case, after second b c did not arrive, but b did arrive. So the property continued from two to three to four to five. He was happening is after to neither see arrives nor be arrives. And property fails. Well the bug was that she arrived one from earlier. So, don't get daunted by this description.

Don't think that this is complicated, very soon you will understand what that means. Now, let me just repeat this particular statement a followed by B, B should remain true for minimum of two clocks, maximum of five clocks. We should have crew and PLC arrives. If you read the statement that way, then it will make it a lot more sense and I'll show you a few applications we should remain true in this range until she arrives, we remains true here for five maximum range and see arrives so everything is okay. We remains true here. We should remain true until she arrives Well guess what, we does not remain true here.

And okay, if that is the case, if C had arrived here, then the property would pass just like as I showed you the very first part of the law, but here neither the B remains true nor there is a C and the property fails. So again, B should remain true until c arrives. This is how this works. And this is the reason five I can discuss five these are important and are used as opposed to this slide where this five not consecutive reputation for five will never be exercised. In this case, you're deaf, you're definitely see that the five is utilized as in this part of the law. Okay, let's look at some applications.

So, the spec says that if tagger is we saw this example before in the clock delay range operator. So, the spec is the same if tag error is detected one clock later TRB should be asserted meaning is high and remain asserted. No glitch, it should remain asserted until m check is asserted. This is the unpeel part. This is the quality Find event but this is how you would write this assertion again as I have said before and I made a bid this first day right what is your NDC date? What is it that starts the entire operation of the assertion if data is detected until this is detected, nothing matters.

So that's why your antecedent $1 roll staggered. One clock later or you could you could have used a non overlapping operator but as I was telling you, I prefer to use overlapping and then explicitly wait for one clock. It makes it very clear that there is a one clock delay. What we're saying is if it not if but within after one clock, try it must be a certain dollar roaster bait and starting that clock, pound bomb zero start in the clock when you see dollar roasty error bait asserted deactivate should remain asserted for one clock or forever and dear which should remain asserted forever until MTech is detected. So, the consecutive repetition range operator is one of the most powerful operator you will you will use and it makes it very easy to wait for a certain signal higher low until something else occurs because there is in finite, it doesn't mean that it will wait to see that the TLB is asserted forever to the end of simulation.

It does not because as soon as rose MTech arrives, it says I'm done. And what it makes sure that until rose MTech arrived, that theater beat remain asserted. As you see in this timing diagram Tiger beat arrives one clock later rose the error rate arrives and then starting same clock because I have a bond bond zero this is my way of combining two temporal domain conditions. And like I say, Val in this case if you're going to use and and you better put parenthesis properly Otherwise Otherwise you may get wrong interpretation. So starting the same time you now wait for a consecutive hi Auntie error bit. Until and check arrives.

As soon as an check arrives. The property doesn't care if the error rate goes low or remains high. So this is how you read a consecutive range operator. It is This event that follows a consecutive range operator that makes, in my opinion, the consecutive range operator very meaningful. Let's look at one more application. This is from PCI.

Word PCI is a parallel bus, as I said earlier, compared to PCI Express, which is a serial bus. In my days, PCI was the popular bus. So my examples are geared towards the parallel bus. Here the spec says that PCI spatial cyclists PCI has many different cycles read right IO read IRI configure it can take right it also has cycle called spatial cycle. In during the spatial cycle, the device select should not be asserting meaning it should not go active load during this financial cycle. And this is a spec now you're supposed to design in a session.

He has the assertion again. Now the PCs facial cycle if you're not familiar with PCI is defined by falling frame and command equal to 0001 command is also a bar of the parallel bus. So, this Dollar fell frame and and command equal to one forms a spatial cycle and again and dissident should be meaningful until the PCs patient cycle starts, nothing matters. So, this becomes my antecedent. So what I'm saying is art is a spatial cycle starts starting the same clock device select should remain high. That means it remains the assertive and that's what we are saying here should not be asserted meaning remain D asserted.

It should not go active low so we're checking to see that device elect remains high. consecutively forever until dollar frame is asserted. The the end of a cycle is defined by dollar rose frame. So, you can clearly see again the quote unquote end and event or qualifying event makes the device select Faenza range operator with an in finite meaningful, we do not know when the second is going to end. But whenever it ends until then device Electra domain is now a very bought this is a very powerful language and that's the part I'm trying to point out here. This is an edge sensitive, it's an it's an edge sensitive event.

Why this is simply a Boolean a level sensitive event. Well guess what you can do a logical end of boats vs sensitive and level sensitive event. This makes it very powerful in many different kinds of applications. One more application, make sure now this is a very good application that you probably will be able to apply directly to your project. Make sure that the state machine does not get stuck in current state except idle. If the state machine is in idle, it can say an item forever.

But in any other state, it does not get stuck. Now what is stuck stuck can be let's say, the state doesn't change for 32 clocks or 64 clocks or whatever your design is specifying. So how do you write an assertion for this using the consecutive repetition operator? Again, here, antecedent is that if the state is idle, everything is okay. If the state is not idle, then the state machines should not get stuck. So here's the antecedent, which is pretty much the whole spec.

That's okay. If the current state is not idle and dollar stable, that means the current state remains stable remains whatever it is, for 32. Clocks consecutively, this whole remain, see the parentheses, the parentheses are outside of this entire logical end. That means for consecutively 32, clocks, make sure that the state is not idle. For example, if the state goes to idle, then we don't care and the antecedent will restart all over again. So if the state is not idle, and we stay stable in whatever the current state is, for 32 clocks, then we know that you're stuck in the current state.

And this is a very powerful feature again, what we saying is if the antecedent matches if the antecedent matches, then this property fails, because the antecedent says that Yep, you are stuck in a current state for 32 clocks. What does that mean? It implies that there's a failure. So sorry. So basically, a heart failure can be applied as a consequence. This is another powerful feature, because sometimes you don't have any condition in the consequent, you simply want to say, hey, if I see this as an antecedent, if I see this, whatever it is, I just want to declare a failure.

So that's another powerful feature and this is how this particular spec is very much common in most of the RDL. You do not want to get stuck in a given set. So here's your assertion to do the same thing. Okay, folks, this is all About the consecutive a reputation operator, I'm giving the lectures hopefully it's small enough for each operator. Thank you for attending the lecture and I will soon see you in the next lecture.

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.