'and', 'or', 'intersect - Further Nuances

8 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

So we have already seen the operators and or an intersect and this lecture provides a few more nuances on the same. Firstly, I'm showing these examples with very simple sub sequences. But you may replace this with much more complex sub sequences. And this concepts will be of use with those complex sub sequences. So here's a property where z with overlapping implication implies that ABCD should hold and ABCD is an intersection of A B and C, D. and a B says that B must follow everything five blocks, and here C, D and E. Each has a temporal domain of two clocks. So let's look at this example first, as required when z is Rule A B and C D should start at the same time because of the overlapping operator and that should now be arrives within one to five blocks that is also true and CD also follows the requirements.

So, that is also true, but intersect requires that both a B and C D and at the same time and they do not. So, it will go back and fill the property when the first subsequence is not true. Similarly, here we can see that z CNA started the same time, but, and we arrived 1234 and on the fifth clock that is also true, and C D is also true, but because they don't and at the same time the property will fail. The shorter sequence. Now in this case, I have shown the same sequence. But I'm simply saying that a 1234 b arrives within five clocks.

And C D E also follows its requirements and is both and at the same time that the property will pass at the end. So, here's an example to make a point. Here, the ABC sequence has fixed time delay, and so does CDE. So will this property ever pass? No, it won't, because these two properties very clearly show that they never end at the same time. So the point is that it makes sense to use intersect with sub sequences with ranges when you have a range.

Is there's a good chance that the two properties manned at the same time, as we saw in the previous example. Now, here's a very interesting application that I consider as an idea generator. So the specification says that data it goes high within four crops after the rising edge of reach. Now, first off the bat, this is a very simple specification to model. So you can simply say at positive clock dollar rose retry implies that we didn't want to fall close our clocks, data rate should go high. And that's it.

If the data did goes high in the fifth clock, then the property will fade. I'm doing the same thing with a much more complex way. And you may wonder why, but I will tell you that it is an idea generator. So again, dollar rows retry there are two steps Frequency This is one and this is another. So, this subsequence Is that true will remain true. Consequently, from one to four clocks.

And this subsequence is that when retries true, we don't know when so from one clock to forever dollar rows or data does that mean data rate can go high anytime after retry has been found to be true. Now let's say that data arrives in the fifth clock. So this sequence will end on the fifth clock. But since this sequence subsequence is true only for four crowds, it ends after four Gox. So then these two sequences do not end at the same time and the property will fail as required. But let's say data rate arrived in the third clock.

So, this sequence a will and on the third clock, while this sequence will also end on the third clock because it is true for one to four clocks on the third clock it is true. So, both sequences are true in the third clock and the property will pass as required. So, as I say, this is an idea generator whenever you want to restrict a very complex subsequence for within a given time frame, then you may use this particular approach as I've shown in one of the lectures. I use this concept to model variable delay where the delays are required to be always constant. They are operator simple sequences again Same property and sequences, where z A and z must be true at the same time which they are, but we must follow after two clouds it does not. So, AB sequence fails.

So, the simulator will continue to look for the other sequence to be true because this is an or and CD he does meet his requirements. So, the property will pass here at the larger sequence. And here A and B has a correct relationship and so, the C D and E, but the property will pass as soon as a B is true because this is an order, it will not care to see what happens to c d. So, the property will pass as soon as one of the two sequence is true. In this case, the problem is right off the bat Where z A and z must start at the same time because of the overlapping operator, but a B does not start when a does not arrive the same time as z. So, AB fades, but the simulator will continue to look for CD E to be true and it is indeed true.

So, the property will pass here and in this case z A and z arrive at the same time as required, but b does not arrive after two clocks. So, he fails and in CDE sequence he never arrives as required to cross after d. So, it also fails. So, both sub sequences fail and the or will fail on this clock. And this is yet another example where there is a range in sequence AB Content delays in CDE. So Z and Z arrive at the same time as required. But B does not arrive even after five Crocs, but CDE does meet this requirement.

So the property passes. Now here, B does not arrive even after five clogs, and c d c did not arrive the same time is z as required by the overlapping operator. So, CD also fails, and both sequences fail and the property fails here. So, that's pretty much it a simple lecture. Again, the sequences or sub sequences that I have used are very simple, but this concept will come in use when you have complex sequences to deal with. So, 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.