Calling Subroutines, Sequence in Sensitivity List and Cyclic Dependency

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.50
List Price:  €140.77
You save:  €103.27
£32.41
List Price:  £121.66
You save:  £89.25
CA$54.81
List Price:  CA$205.73
You save:  CA$150.91
A$62.05
List Price:  A$232.91
You save:  A$170.86
S$54.43
List Price:  S$204.30
You save:  S$149.87
HK$313.05
List Price:  HK$1,175.03
You save:  HK$861.98
CHF 36.41
List Price:  CHF 136.69
You save:  CHF 100.27
NOK kr439.47
List Price:  NOK kr1,649.55
You save:  NOK kr1,210.07
DKK kr279.86
List Price:  DKK kr1,050.46
You save:  DKK kr770.59
NZ$67.60
List Price:  NZ$253.73
You save:  NZ$186.13
د.إ146.72
List Price:  د.إ550.72
You save:  د.إ403.99
৳4,381.64
List Price:  ৳16,446.23
You save:  ৳12,064.59
RM190.88
List Price:  RM716.46
You save:  RM525.58
₦51,815.15
List Price:  ₦194,485.15
You save:  ₦142,670
₨11,111.14
List Price:  ₨41,705.03
You save:  ₨30,593.88
฿1,478.11
List Price:  ฿5,548
You save:  ฿4,069.89
₺1,300.06
List Price:  ₺4,879.73
You save:  ₺3,579.66
B$208.05
List Price:  B$780.90
You save:  B$572.85
R762.50
List Price:  R2,862
You save:  R2,099.50
Лв73.36
List Price:  Лв275.36
You save:  Лв202
₩55,087.02
List Price:  ₩206,765.95
You save:  ₩151,678.92
₪150.01
List Price:  ₪563.06
You save:  ₪413.05
₱2,297.04
List Price:  ₱8,621.82
You save:  ₱6,324.78
¥6,182.42
List Price:  ¥23,205.38
You save:  ¥17,022.95
MX$681.16
List Price:  MX$2,556.70
You save:  MX$1,875.54
QR145.67
List Price:  QR546.78
You save:  QR401.11
P554.52
List Price:  P2,081.36
You save:  P1,526.83
KSh5,333.32
List Price:  KSh20,018.32
You save:  KSh14,685
E£1,923.81
List Price:  E£7,220.91
You save:  E£5,297.10
ብር2,268.50
List Price:  ብር8,514.70
You save:  ብር6,246.19
Kz33,382.55
List Price:  Kz125,299.46
You save:  Kz91,916.91
CLP$38,322.43
List Price:  CLP$143,841.03
You save:  CLP$105,518.60
CN¥289.36
List Price:  CN¥1,086.11
You save:  CN¥796.75
RD$2,355.99
List Price:  RD$8,843.10
You save:  RD$6,487.10
DA5,383.54
List Price:  DA20,206.81
You save:  DA14,823.27
FJ$90.81
List Price:  FJ$340.88
You save:  FJ$250.06
Q310.52
List Price:  Q1,165.52
You save:  Q855
GY$8,353.05
List Price:  GY$31,352.72
You save:  GY$22,999.66
ISK kr5,637.74
List Price:  ISK kr21,160.94
You save:  ISK kr15,523.20
DH404.46
List Price:  DH1,518.12
You save:  DH1,113.65
L713.07
List Price:  L2,676.49
You save:  L1,963.41
ден2,308.56
List Price:  ден8,665.05
You save:  ден6,356.49
MOP$322.11
List Price:  MOP$1,209.02
You save:  MOP$886.91
N$767.13
List Price:  N$2,879.39
You save:  N$2,112.26
C$1,469.56
List Price:  C$5,515.91
You save:  C$4,046.34
रु5,332.47
List Price:  रु20,015.15
You save:  रु14,682.67
S/148.96
List Price:  S/559.12
You save:  S/410.16
K151.71
List Price:  K569.46
You save:  K417.74
SAR149.84
List Price:  SAR562.44
You save:  SAR412.60
ZK1,025.07
List Price:  ZK3,847.55
You save:  ZK2,822.47
L186.64
List Price:  L700.55
You save:  L513.91
Kč947.88
List Price:  Kč3,557.81
You save:  Kč2,609.93
Ft14,787.28
List Price:  Ft55,503.22
You save:  Ft40,715.93
SEK kr435.16
List Price:  SEK kr1,633.35
You save:  SEK kr1,198.19
ARS$34,806.27
List Price:  ARS$130,643.31
You save:  ARS$95,837.04
Bs276.47
List Price:  Bs1,037.72
You save:  Bs761.25
COP$156,895.18
List Price:  COP$588,896.94
You save:  COP$432,001.76
₡20,050.19
List Price:  ₡75,257.24
You save:  ₡55,207.04
L985.67
List Price:  L3,699.66
You save:  L2,713.99
₲295,370.43
List Price:  ₲1,108,655.72
You save:  ₲813,285.29
$U1,533.85
List Price:  $U5,757.21
You save:  $U4,223.36
zł161.93
List Price:  zł607.81
You save:  zł445.87
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, in this lecture, I'm going to tackle a few different topics basically how to call a sub routine on the match of a sequence or use sequence as a formal argument as an antecedent, or also use that in a sensitivity list. And finally, we look into how cyclic dependency works in SVM. So I have shown in previous examples how to attach a statement and executable statement or a sub routine, as it's called to give an expression. Here, I'm taking this same thought process a bit further, where I'm showing that in sequence LR sequence, I have a local variable called local data. And I'm saying that our dollar rows p true. Attach the local data at assigning the value of p i n, which is an input, but at the same time Also do a display set when it can be any executable statement.

Now, the thing to note here is that this display statement won't be executed as soon as you are assigned paint or local data, it will be executed only when dollar rose be true matches. And similarly here I'm saying that attach an executable statement to this expression. And and this, this statement also been executed only when this particular sequence matches. Now, this is a very powerful way of also using this feature for debug. You can have a complex sequence you can have multiple complex sequences going through your sequence or property and during debug your life To know which sequence did you enter, which subsequently you enter, when did you exit, so on and so forth. So in this case, for example, whenever dollar rose Pedro is true, I'm simply saying that the sequence have been triggered.

That's the first subsequence here. Similarly, I'm saying here that you know, when p is equal to local data plus five, we are exiting the sequence. And I personally use this dashing of a sub routine very effectively, during development of complex assertions. So this example is sort of similar to the previous example, but the only point I want to make is that you can also when I say executable statement, you can also attach a task or a function in addition to simple segments like dollar display. So in this segment, Anwar is sequence, I'm saying same thing, dollar roll speed through local data equal to pain. And I'm not calling a display but I'm basically calling a task URL of task.

And I'm passing it local data. And in the very last task LR sequence trigger, again, I'm, I'm only doing a display of what's going on, but you can have anything here is a regular task. I also got a bit carried away, and I decided to do a display of LR sequence dot p i n, which is a formal argument to LR sequence. Well, that doesn't work. The error I got was that hierarchical access to formal parameter p i n of L bar sequences illegal. So you cannot access a formal directly hierarchically, from a task and so on.

What I did was on LR sequence on on this particular sequence match, I called another task called LR sequence match. But this time, I decided to send it via a pee pee out and local data. So in this task LR sequence match, I have three inputs. And now I'm displaying the values of these three inputs that came from the sequence LR sequence. So this was my way of now displaying the values of pin B out and local data into a task which is outside of the sequence. So there are always ways to work around things.

Now, this is a really powerful feature that I haven't discussed so far. Let me explain. I have a simple sequence called reset sequence and in The property as underscore RC one, I'm saying this looks like a variable here. I'm saying se que si SRP as a three inputs to this property. And I'm saying that whenever I say Q is true, it implies the relationship between si and SRB. But look what I'm doing here when I'm asserting this property as RC one I'm sending it reset a sequence and reset sequence is a sequence that we declared here.

So essentially, you can pardon pause an entire sequence to our property, which is very powerful. You can have a complex sequence and based on the complex sequence, you want to do something the property in this case, the idea is that this reset sequence is considered a genetic sequence and many different properties will use a sequence. So instead of the Getting or coming up with a relationship or reset sequence in each property, you just declared it once. And that pass it as an input parameter to different properties. And let's say one final day you change that reset sequence, you need to change it only in one place. All the properties that receive this sequence will still remain generic.

So this is one way to create modular SVG libraries. And SVG s must be designed such that they are reusable. So this is one way to do that. The other powerful feature that we haven't discussed so far is that you can use sequence just like any other sensitivity signal in for example, always block or initial block, it doesn't matter. So what I'm showing here is there's a sequence as r1 with a relationship between recurse and grind So but in the procedural block, I'm saying always add as r1 do something. So, in some sense, we can easily makes concurrent sequences and properties along with procedural code.

And again, as I want to fire, so to say only when this relationship is true, at the match of requests, followed by grant is true. And the log file is very simple. request is true to calculate a grant is true. So you get this display request, request grant pass. In this I'm showing the request is true, but two clocks later grant is not true. And this particular event will not fire and that's why you don't see a display statement here.

And this is a repeat of the first part of the law. So you can very effectively have Some complex sequence. And based on the trigger of that sequence on the match of the sequence, you can take some action in a procedural block. This is the same example. I'm simply showing that on ad read complete when this particular sequence matches and completes, you can issue another named event. So here I'm saying that on read copulate issue next week, this is just to show that you can combine procedural block named events, and concurrent sequences, all in the same core.

And I think we have changed some of the examples, but a sequence can be used as a subsequence. It can also be used either as an antecedent or as a consequent. And the idea here is that again, you can have a very complex specific And you need to develop a sequence for that particular specification. And the way I have explained in the rest of the class, you should always break down the specification into smaller sequences. So here basically I'm breaking down cycle starts, then some sequence should match and that cycle ends rather than putting everything in one long temporal domain equation. And I'm just showing that here, that sequence as one and sequence as to when as one is true, it implies as to second break down sequences and then use them both as a as an antecedent as well as consequent.

Now, this is about cyclic dependency. So as we add does allow cyclic cyclic dependency. So here I am showing cyclic dependency between two sequences. So as one Cause as to and as to cause as one. So this is like an infinite loop of our relationship between ABC and D, this will keep repeating forever. Whenever it breaks, the sequence will fail.

But this is illegal because in some sense, it's an infinite loop. So in SVG a cyclic dependency between two sequences is not allowed, but it is allowed in a property. When property B one executes a cause p two and then P to cause back p one here. Let's have a new call back p one, you wait for the Encore until A is true. And then you imply p two and when P two enters Ada also waits till C is true. And then so and then you trigger p one back.

So in some sense, this also relate this relationship also will keep going Only that there is some sort of a break in the middle. And so this is legal in svga. And this can be very useful when you want to Jex cyclic relationship between properties. So that's pretty much it a simple lecture with few different topics. I hope you gain some useful knowledge from it. 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.