Recursive Property

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
€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

Hello and welcome to this lecture on recursive property. This is a bit complicated topic, but you will get the hang of it once we are done with the lecture. So the origin code official definition of a recursive property is that the name property is recursive if it's declaration involved and instantiation of itself. So what does that mean? Let's look at this property. I'm saying assert property on the falling edge of reset.

See that RC one property holds and Bravo DRC but takes as an input a signal called v strap. And it basically says that that this and of these two sequences must be true. Now here, we understand v strap as one of the secrets is V strap must be true. The other side simply says that NPC then being always true imply the same property again. So, we are basically recursing the property in this loop here and every time we come in we make sure that we strap is true. If at one point in time we strap is not true, then this property this ad will fail and so with this property, so, in some sense with the recursion, what we have made sure that our signal in this case remains true after a certain given entity antecedent.

So, this is just to reiterate, this particular part of the sequence is coded simply to recurse on itself. Here antecedent is always true, which implies at the next ball of cloth, call the same property again, and that Gabriel repeating this until we strap is false when it's false that the property will fail. So, in in this example, the bottom example is identical property only that I have changed the non overlapping with that overlapping. Now, think about this, when you enter this property and you say call RC when again, we are not advancing the clock because this is overlapping. So, in some sense we have now recursed or created and in finite lo at the same body clock time does not advance is repeating itself in zero time and that will give you a runtime error. So, the point is you must have either a non overlapping operator or some kind of time advancement before you recurse on the property itself.

Now let's make this a little bit more interesting in in this particular example, all we did was made sure that a signal remained high after a certain antecedent was true. But let's say in real life you have a specification which says interrupt must be held true. Until I EQ is asserted. That means interrupt must be acknowledged before it can be taken off. So how will we do that? So here I'm setting a property RC one and I'm giving it two inputs interrupt and I and in the property are seven I'm saying two things one is, I should be true or this entire sequence should be true.

And in this entire sequence, I'm saying interrupt must be true and this side must be true. And this this part of the code is lit. Simply Created so that you can call the property recursively. That's why the antecedent is true. That means every time go ahead and add the next positive clock call the same property again. So this particular part of the code is simply to recurse on the property itself.

And then let's say I it goes Hi, let's look at the lo fi. So interrupt is high. And every clock we are making sure that it remains high and is it remains high and one fine clock Ayah goes high. Now since this is an AR, and since I agree and high the property will complete and pass, but let's say for example, I act does not go high, as shown here. And at the same time interrupt goes low. That means a drop did not say hi long enough for it to go high.

So interrupt low. So, these and will fail and I case loads. So, both sides of the order are false and the property will fail. So, in this case essentially we have used an R and an N with recursion crack on Polish a particular specification property. Now, let's take this one step further and look at a very real life application. So, the specification says that for D cache right me miss this is from a typical CPU, D cache, cache subsystem example for a D cache right Miss start Miss allocation because you miss the right the next clock and issue a mem read or read Ma'am, one clock later.

And then see that about matches And on a match, make sure that raw data is held until me, memory completes. Okay? Seems like a bit complicated specification, but it really is not. So let's take it step by step. First thing that, as I've already said, break down the specification into smaller sequences. So the first sequence I'm creating is is for this part of this sequence.

Michelob says that Miss D cache, if it's through one calculator, a log star should be true at one clock, like a read maps should be true. So I've created a sequence called Mesa walk. Now what I'm doing is I'm saying assert property s underscore RC one. Okay? And in s underscore RC one, I'm bossing the entire sequence missile. I've shown in my other lectures that you can pause and entice.

Sequence as an actual to a formal. So here I'm saying that in SRC one day This means hello sequence. And when it is true when we have Gundam is a law, fire RC one. The next clock fired RC one and RC one I'm sending two inputs, right data H and read C. Now this is the recursive part of the property. So it's exactly identical to the previous example, what I'm saying is d c should be high or this part of the sequence should be high. And here I'm basically saying that right data should be high, every claw, because I'm recursing back to the same property, right data and recurs, right data and recurs so as long as our read is Not high, we continue to look to make sure I data is high.

And as soon as the rate complete is high, we don't care for our data high anymore, identical to the previous slide example. So this is one way you can break down the specification and effectively use recursive property to see if a signal is held high or low for that matter, until something else is true, and so on and so forth. So, look at this slide carefully. It may look a little complicated, but it really is not. A couple of things. Here again, you're passing an entire sequence as to a formal called genetic sequence.

And then I'm calling a property which continues to recurse itself or do some conditions are true. A couple of restrictions. You cannot have a knot in recursive property instance. So here I have a property are illegal. And I'm saying c implies a an recurse on itself would be the not. So not is not allowed.

It doesn't make sense actually. And this is similar to the point I made in the very first slide you cannot recurse on a property with an overlapping operator, you will get the error that you're not advancing time you are stuck in a zero delay loop. So overlapping operator or bom, bom zero or anything that does not advance time will give you an error. This is just one more of the ones that if if you want to disable recursive property, based on our standard disable if operative It's not possible you cannot say visible if B and Danny no kill this recursion, you cannot do that. So the solution is very simple. You simply say property are illegal and in that you say disable if B are legal.

So all I'm doing is I'm splitting this property into two and then our legal literally goes on to recurse on itself. And this recursion will stop as long as as soon as B becomes true. So this is just a simple points telling you how to get around the disable construct for recursive property. And one final point that not only can you recurse a property on itself, but you can recurse between two properties also. So your property see phase one does no recovers on itself, but he says go to see phase two and C phase two does not recurse in itself, but goes says go to C phase one. So, here now we are going from C phase 122222122 and going in, in finite loop and that is an advisement of time because of the non overlapping operator here.

So, this is a legal way to do mutual recursion among recursive properties. So, that's all, hopefully, recursive properties are clear to you. Do revisit this lecture if you have any doubts or confusion and always send me questions if you're not clear on anything. Thank you.

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.