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
€37.23
List Price:  €139.77
You save:  €102.53
£31.92
List Price:  £119.84
You save:  £87.91
CA$54.56
List Price:  CA$204.79
You save:  CA$150.23
A$61.15
List Price:  A$229.52
You save:  A$168.37
S$54.36
List Price:  S$204.07
You save:  S$149.70
HK$312.74
List Price:  HK$1,173.85
You save:  HK$861.11
CHF 36.44
List Price:  CHF 136.79
You save:  CHF 100.35
NOK kr439.58
List Price:  NOK kr1,649.96
You save:  NOK kr1,210.37
DKK kr277.70
List Price:  DKK kr1,042.33
You save:  DKK kr764.63
NZ$67.15
List Price:  NZ$252.06
You save:  NZ$184.90
د.إ146.73
List Price:  د.إ550.75
You save:  د.إ404.01
৳4,383.25
List Price:  ৳16,452.29
You save:  ৳12,069.03
RM190.54
List Price:  RM715.18
You save:  RM524.64
₦52,183.48
List Price:  ₦195,867.68
You save:  ₦143,684.20
₨11,123.27
List Price:  ₨41,750.57
You save:  ₨30,627.29
฿1,476.02
List Price:  ฿5,540.17
You save:  ฿4,064.15
₺1,299.99
List Price:  ₺4,879.44
You save:  ₺3,579.45
B$206.11
List Price:  B$773.65
You save:  B$567.53
R753.55
List Price:  R2,828.41
You save:  R2,074.86
Лв72.76
List Price:  Лв273.13
You save:  Лв200.36
₩54,963.89
List Price:  ₩206,303.76
You save:  ₩151,339.87
₪152.13
List Price:  ₪571.04
You save:  ₪418.90
₱2,304.99
List Price:  ₱8,651.66
You save:  ₱6,346.66
¥6,264.82
List Price:  ¥23,514.64
You save:  ¥17,249.82
MX$688.89
List Price:  MX$2,585.73
You save:  MX$1,896.83
QR145.70
List Price:  QR546.89
You save:  QR401.19
P551.27
List Price:  P2,069.18
You save:  P1,517.90
KSh5,393.25
List Price:  KSh20,243.25
You save:  KSh14,850
E£1,913.66
List Price:  E£7,182.84
You save:  E£5,269.17
ብር2,274.67
List Price:  ብር8,537.87
You save:  ብር6,263.19
Kz33,385.68
List Price:  Kz125,311.21
You save:  Kz91,925.53
CLP$37,892.57
List Price:  CLP$142,227.57
You save:  CLP$104,335
CN¥289.50
List Price:  CN¥1,086.64
You save:  CN¥797.13
RD$2,346.54
List Price:  RD$8,807.63
You save:  RD$6,461.08
DA5,364.69
List Price:  DA20,136.06
You save:  DA14,771.36
FJ$90.28
List Price:  FJ$338.87
You save:  FJ$248.59
Q310.73
List Price:  Q1,166.33
You save:  Q855.59
GY$8,356.11
List Price:  GY$31,364.19
You save:  GY$23,008.07
ISK kr5,589
List Price:  ISK kr20,978
You save:  ISK kr15,389
DH404.19
List Price:  DH1,517.10
You save:  DH1,112.91
L709.91
List Price:  L2,664.60
You save:  L1,954.69
ден2,292.87
List Price:  ден8,606.18
You save:  ден6,313.30
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,469.89
List Price:  C$5,517.15
You save:  C$4,047.26
रु5,317.95
List Price:  रु19,960.64
You save:  रु14,642.68
S/149.01
List Price:  S/559.33
You save:  S/410.31
K153.84
List Price:  K577.43
You save:  K423.59
SAR149.83
List Price:  SAR562.39
You save:  SAR412.56
ZK1,051.42
List Price:  ZK3,946.47
You save:  ZK2,895.04
L185.30
List Price:  L695.51
You save:  L510.21
Kč936.50
List Price:  Kč3,515.12
You save:  Kč2,578.62
Ft14,615.73
List Price:  Ft54,859.30
You save:  Ft40,243.57
SEK kr435.47
List Price:  SEK kr1,634.51
You save:  SEK kr1,199.04
ARS$34,906.15
List Price:  ARS$131,018.21
You save:  ARS$96,112.06
Bs276.58
List Price:  Bs1,038.15
You save:  Bs761.56
COP$157,441.81
List Price:  COP$590,948.68
You save:  COP$433,506.87
₡20,076.59
List Price:  ₡75,356.33
You save:  ₡55,279.73
L986.13
List Price:  L3,701.41
You save:  L2,715.27
₲296,697.58
List Price:  ₲1,113,637.11
You save:  ₲816,939.52
$U1,532.08
List Price:  $U5,750.59
You save:  $U4,218.50
zł160.94
List Price:  zł604.08
You save:  zł443.14
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.