'first_match' - Further Nuances

5 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 this lecture. It's a short and simple lecture, where I want to make an important point on first match. So just to recap, first match is basically an operator or a function that stops evaluating the property at the first match of a given sequence just like shown here, the sequence may continue, but as soon as the first match is found, the Property Valuation will add. Now in this example, I want to make a point. So here's I'm setting up property B says if D is true, then starting the same clock, FMS should hold and FMS says that at the first match of ABC or E, F, E should go higher than x cloud and B C or e f is temporal domain sequence where BNC should arrive from two to five blocks, or E and F should arrive from two to five cross.

So let's look at the simulation law. In this log D is high and as required, B and C arrive two clocks later, and then a goes high. So the property passes. But note that B and C went high at 35. And then they were high even at 45. But the proper they did not continue to evaluate.

After the first B and C equal to one, it stopped right there and look for a call to one. Let's look at this example. Now he D is equal to one and then the very next clock E and F are high, but this is not according to the property because E and F should be high two clocks later. So, the first match does not succeed here, but then two clocks later B and C are high. So, the property continues at the first match and then A is high so the property passes. Now in this case D is high and two clouds letter E and F are high and it the property looks for equal to zero the next call.

Now note that on the first match of E and F property started evaluating a equal to one but the very next clock B and C were high and property did not care for it. So, the first match works as advertised. So, Let's look at one more real life application and this is on PCI bus which is a parallel bus. And what we are saying is whenever a frame is asserted meaning going low, FMS should hold. And FMS says that on the first match of bus idle buses being idle, that the next stage should go into bus idle your state machine should transition to bus idle and bus idle check is a temporal domain sequence where basically we are saying wait from two to forever until frame and I already are Hi. Now in this example, and in the previous example, if you notice first matches on the antecedent side here and and here, they are on the antecedent side and there Alright, I want to make the first match makes most sense for us on the antecedent side.

Why? Because on the consequent side, by default, the property stops evaluating on the first match of a certain given sequence. So for example, if you look at this property, where I'm saying, if A is true, then B should be true from within one to five crocs. I can also write it as if A is true on the first match of B from within one to five crocs. But as you know, in this case, the property will stop evaluating as soon as a finds B to be true. We can be true after just one talk and property will say okay, the property passes and it will not continue to evaluate any further.

So this is See the default behavior on the consequent side. So that's why this property is the same as if you were using first match. But on the antecedent side, there is no such thing. There, the antecedent side can be true, every claw, and property will continue to evaluate every call. But what we are saying as in this example, that the first time the antecedent is true, from two clauses to forever, that stop evaluating the property and then fire the consequent. So it makes most sense to us first match on the antecedent side, as opposed to using it and the consequent side.

That's all I just wanted to make this point. So that you can use first met very effectively and 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.