'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
€37.97
List Price:  €142.52
You save:  €104.55
£31.62
List Price:  £118.70
You save:  £87.08
CA$55.80
List Price:  CA$209.46
You save:  CA$153.66
A$61.35
List Price:  A$230.27
You save:  A$168.92
S$53.69
List Price:  S$201.55
You save:  S$147.85
HK$310.93
List Price:  HK$1,167.06
You save:  HK$856.13
CHF 35.30
List Price:  CHF 132.51
You save:  CHF 97.21
NOK kr441.57
List Price:  NOK kr1,657.43
You save:  NOK kr1,215.85
DKK kr283.22
List Price:  DKK kr1,063.06
You save:  DKK kr779.84
NZ$68.10
List Price:  NZ$255.62
You save:  NZ$187.52
د.إ146.73
List Price:  د.إ550.76
You save:  د.إ404.03
৳4,778.10
List Price:  ৳17,934.34
You save:  ৳13,156.23
RM178.37
List Price:  RM669.52
You save:  RM491.15
₦67,139.57
List Price:  ₦252,004.47
You save:  ₦184,864.90
₨11,115.15
List Price:  ₨41,720.08
You save:  ₨30,604.92
฿1,385.02
List Price:  ฿5,198.61
You save:  ฿3,813.59
₺1,380.34
List Price:  ₺5,181.04
You save:  ₺3,800.70
B$232.12
List Price:  B$871.28
You save:  B$639.15
R724.11
List Price:  R2,717.92
You save:  R1,993.80
Лв74.25
List Price:  Лв278.72
You save:  Лв204.46
₩55,978.29
List Price:  ₩210,111.28
You save:  ₩154,132.98
₪149.19
List Price:  ₪559.99
You save:  ₪410.79
₱2,359.60
List Price:  ₱8,856.64
You save:  ₱6,497.04
¥6,168.38
List Price:  ¥23,152.66
You save:  ¥16,984.28
MX$812.76
List Price:  MX$3,050.66
You save:  MX$2,237.89
QR145.80
List Price:  QR547.27
You save:  QR401.46
P546.22
List Price:  P2,050.20
You save:  P1,503.98
KSh5,163.53
List Price:  KSh19,381.03
You save:  KSh14,217.50
E£1,983.54
List Price:  E£7,445.10
You save:  E£5,461.56
ብር4,985.04
List Price:  ብር18,711.08
You save:  ብር13,726.04
Kz36,447.47
List Price:  Kz136,803.48
You save:  Kz100,356
CLP$38,904.10
List Price:  CLP$146,024.30
You save:  CLP$107,120.20
CN¥289.30
List Price:  CN¥1,085.89
You save:  CN¥796.58
RD$2,411.55
List Price:  RD$9,051.64
You save:  RD$6,640.08
DA5,336.91
List Price:  DA20,031.79
You save:  DA14,694.87
FJ$90.69
List Price:  FJ$340.41
You save:  FJ$249.72
Q308.66
List Price:  Q1,158.55
You save:  Q849.89
GY$8,365.18
List Price:  GY$31,398.24
You save:  GY$23,033.05
ISK kr5,525.08
List Price:  ISK kr20,738.08
You save:  ISK kr15,213
DH399.43
List Price:  DH1,499.24
You save:  DH1,099.81
L727.49
List Price:  L2,730.59
You save:  L2,003.10
ден2,336.54
List Price:  ден8,770.07
You save:  ден6,433.53
MOP$320.56
List Price:  MOP$1,203.22
You save:  MOP$882.65
N$725.20
List Price:  N$2,722.02
You save:  N$1,996.82
C$1,471.33
List Price:  C$5,522.58
You save:  C$4,051.24
रु5,396.91
List Price:  रु20,256.99
You save:  रु14,860.08
S/151.73
List Price:  S/569.52
You save:  S/417.79
K160.95
List Price:  K604.15
You save:  K443.19
SAR149.98
List Price:  SAR562.94
You save:  SAR412.96
ZK1,106.53
List Price:  ZK4,153.31
You save:  ZK3,046.77
L188.95
List Price:  L709.24
You save:  L520.28
Kč962.03
List Price:  Kč3,610.94
You save:  Kč2,648.91
Ft15,613.61
List Price:  Ft58,604.79
You save:  Ft42,991.18
SEK kr440.65
List Price:  SEK kr1,653.96
You save:  SEK kr1,213.31
ARS$40,059.13
List Price:  ARS$150,359.64
You save:  ARS$110,300.50
Bs276.88
List Price:  Bs1,039.26
You save:  Bs762.37
COP$176,322.29
List Price:  COP$661,815.48
You save:  COP$485,493.18
₡20,304.64
List Price:  ₡76,212.31
You save:  ₡55,907.66
L1,010.38
List Price:  L3,792.41
You save:  L2,782.03
₲313,132.78
List Price:  ₲1,175,325.66
You save:  ₲862,192.88
$U1,709.25
List Price:  $U6,415.58
You save:  $U4,706.32
zł165.08
List Price:  zł619.65
You save:  zł454.56
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.