Clock Delay Operator

15 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 nine. Starting this lecture, we will see all the concurrent assertion operators, ADA, these are the operators that pretty much make up the bulk of the language and there are quite a few of those. We will look at those mostly in single lectures or maybe a few of them combined in a single lecture. So let's start with the clock delay operator that we have actually seen a few times. But for the sake of completeness, here's the lb lb m delay operator m can be zero here that means there is no delay, or m can be a positive integer. Obviously, time cannot advance backwards so you cannot be negative integers.

And as I've said before in previous lectures, do not confuse this with the Verilog pound delay. Luckily, the syntax is that there are two pounds signs here. So the chances of mistake are very less. So in this property, we have seen this property many times before. Here's a property at pauses of clock z implies if G's true implies starting the same clock, this sequence should hold. And that sequence basically say a must be followed by B, two clocks later, we assert the property, and then we cover the property.

And if during a search, and if it fails, we call this task and didn't cover if it is covered the meaning if it passes, then we call this task. So here's a very simple log of this property that I've simulated. And as you can see at Paul's edge of clock apes, is one that a must be one at the same clock and B should be one two clocks later that indeed happens here and the property policies here, clock is one at pauses of clock Z's one and A's also on exactly as required, but these not want to translator in the property fails. Further duress for the rest of the lectures in this course, I will not be showing this particular code because I'm going to use this code pretty much everywhere. In short, I will only show the sequence and property and then I will show you a log with pass and fail.

Whether this pass and fail come from it comes from this code. So I assume that this code exists and during the rest of the lecture Okay, now let's look at the clock delay range operator. So, here we are saying that in this sequence A, B must follow a reading 123 clocks, it can follow a one talk later or two clocks later, one clock later or two clocks later or three clocks later. That's why it's called a range delay operator and can be zero and can be zero or in finite. And I will show you an example on how we find that actually works. And obviously if it is 00 colon zero is the same as zero.

What that means is both an A both A and B should occur at the same time, which is normally zero delay. And, obviously again, M and must be greater than zero. The thing to notice in all The operators is when does the property buys or renders the property become true. So to say. Now in this example, we are saying that property a be a positive clock, z being true implies starting the same clock, SMB should hold now SMB, so here's your z and it comes at the same time, which is correct. Now, we can come either one clock later to crossfitter or three clocks later, as I just described, that means if we comes one clock later, then the property passes and completes, it does not then look for be on the second or the third go.

If the becomes on the second clock, not the first clock, then the property will pass on the second clock. And and same for the third clock. So the property will match the very first time B is true. It does not give Looking for further bees, which is something important to understand because in other operators, the property will match at the last of the occurrence of a given signal here is the first occurrence of the signal. And here's a very simple application which you can apply. This one says that at pauses of clock, if read request is served it is high is not as sensitive as level sensitive.

They're starting the same clock within one to five globs, either data ready should be asserted should be high, or data boards should be, which makes sense after read requests, either you are going to read or you're going to abort. And so as you can see, range operator is very, very desirable. Because in hardware, more than often you don't know exactly when the next event is going to occur. Now this slide is probably one of the most important slides in this course. We saw multi threaded with single delay earlier in one of the previous lectures. Now let's look at what happens How does the multiple threads work with a range delay operator.

So let's look at this example. But advantage of clock if ready is high, it implies starting same clock within one to five clocks radiate should arrive. Okay. here's here's your timing diagram. You have a clock ready and ready. Now let's say that on this false edge of clock as far as the name of the thread for example, at this was Jeff Clark ready is high as required.

Hear that is high. Then 123 and four crops later ready acreages, and you will see the reason why I call it as one dash two in just a second. But for crops later, radio arrives, as you can see here. And since it was supposed to arrive within one to five clocks, the requirement is met and the property passes. Now let's say that ready comes again, the very next clock. What's going to happen?

This ready is also going to wait from within one to five o'clock to save ready, EQ arrives. But guess what? After this radio arrives, you have one, two, and three clocks and three clocks later it detects that ready check is arrived. So it's going to say it my requirement is met as well. And it's also going to pass. Now see what has happened here to read his game.

But the simulation will show you that they both pass at this particular age. How do you know if the radio four s two arrived, or the radio for the S one arrived? You don't know that both of these are going to pass at the same time and you don't know. What did that radiate for Esther did not write but it sees the radiate that arrived for us one and assume that that is my radio and passes. This is multi threading. And this is very important to understand because what you're getting here, could be not necessarily but could be a false positive evaluation of both threads will end at the same time because both are expecting radiate to occur in a range of delays radiate occurred within that range for both threads.

Pay very close attention to it. So, first question is this is dangerous? How can I be sure that the radio also arrived there is a solution for it. And that solution requires the use of something called local variables. And I have not covered local variables until now. So I will refrain from showing the solution to this problem until we go to local variables, where I'll repeat this example and show you how this can be solved, because this must be solved.

Otherwise, you may get false positives. So here's an application of range delay operator. Let's again as I said dollar meaning infinite can be very useful, because most of the time in complex sequences we will not or you will not know, really, when a certain signal or sequence will follow another signals another sequence, but you do need to make sure that it does occur. So, let's take an example if data is detected, but the pipeline latencies are such that you don't really know exactly when they get or beat will be asserted. But whenever it is asserted, we don't know when that the machine check is asserted the same clock. This is a spec that you will normally see in your mind microarchitecture hardware design specs and you To write an assertion for it.

So here's your tagger here. Okay, let me go. So here's the assertion. What we're saying is if dagger is detected always, when you want to write an assertion, think of what your antecedent is. and carefully design the antecedent. Without a carefully designed antecedent, the rest of the design of the assertion may be very cumbersome or difficult, or even impossible.

So when I did this spec, I'm saying that everything starts with integrity stick. So I say dollar rose tagger. I wanted an edge sensitive, because I only want to detect one tag error only when it occurs. Now I'm saying that I do not know when terabit will be asserted, but it needs to be asserted. So what I'm going to do is bound on one to infinity, I do not know when, but during a starting the next clock up to whenever this T error rate must go high. And whenever it goes high MTech is asserted the same clock.

That's why I have lb lb zero. So, this and this can occur at the same time. Now, you can also use and and Boolean here, which will work the same way. I prefer lb lb zero because what I like to see a continuum, a continuous temporal domain associativity to see the how the temporal domain is moving forward. I personally don't like to make Boolean with temporal domain combinatorially a temporal domain that's just my preference. It's up to you how you want to design it.

There is no difference. There's nothing wrong either way. So here's the dollar dollar rose tagger and note that my arrow stops at the clock edge because it said that was the edge of clock edge that we are going to sample in the pre porn region. If tag error is one and in the previous claw in the people region dagger was zero and hence we detect dollar rose dagger. Then after that one clock later, which is what is 1.1 means, so, after this for one clock, after one dog, we wait forever, they'll be at our bait goes high. It's an insensitive and whenever it goes high, we make sure that MTech also goes high.

And if this relationship is met, then we'll say that the property passes. If not, then the property will fail. If any of this thing fails. Now, just just for the sake of completeness, what happens for example, if the error rate never arrives, we are waiting forever simulation ends the error would never arrived. And if the T error would never arrives, we don't check for the check. Some simulators will give an incomplete assertion some simulators may give a failure and in the 2009 and 2012 LRM that is a concept of strong and weak properties, which I will cover later.

Depending on how you have defined an assertion strong or weak. You will either get a failure at the end of the simulation If the error will never arrives, or you will get an incomplete indication which is dependent on the simulator. But we'll keep that aside but I just want you to make a note of it. That there's a good chance to enter but never arrives and what is it that your simulator is going to do? And that also depends on whether the property is strong or weak. So that's pretty much it for this particular lecture.

Very simple plug a operator we have discussed and you have seen in previous lectures and also the range clock delay operator. Thank you for attending the lecture, and I'll see you soon 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.