








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









ResetN’ D’ S0 DN S2S1 DDNN S6S4S5S3[open][open][open]N S7[open]
description reset^ place FSM in initial state^ H(Green,Yellow, Red)
assert green/yellow/red highway lights C^ detect vehicle on the farm road^ F(Green, Yellow,Red)
assert green/yellow/red Farmroad lights TS^ short time interval expired^ ST^
start timing a short or long interval TL^ long time interval expired • Tabulation of unique states – some light configurations imply othersstate^ descriptionS0^ highway green (farm road red)S1^ highway yellow (farm road red)S2^ farm road green (highway red)S3^ farm road yellow (highway red)
Inputs^ Present State^ Next State^ Outputs C^ TL^ TS^
HG^0 Green^ Red
-^0 –^ HG^
HG^0 Green^ Red 1 1 –^ HG^
HY^1 Green^ Red
-^ –^0 HY^
HY^0 Yellow^ Red
-^ –^1 HY^
FG^1 Yellow^ Red 1 0 –^ FG^
FG^0 Red^ Green 0 –^ –^ FG^
FY^1 Red^ Green
-^1 –^ FG^
FY^1 Red^ Green
-^ –^0 FY^
FY^0 Red^ Yellow
-^ –^1 FY^
HG^1 Red^ Yellow SA1:^ HG = 00^ HY = 01^
Inputs^ Present State^ Next State^ Outputs C^ TL^ TS^
HG^0 Green^ Red
-^0 –^ HG^
HG^0 Green^ Red 1 1 –^ HG^
HY^1 Green^ Red
-^ –^0 HY^
HY^0 Yellow^ Red
-^ –^1 HY^
FG^1 Yellow^ Red 1 0 –^ FG^
FG^0 Red^ Green 0 –^ –^ FG^
FY^1 Red^ Green
-^1 –^ FG^
FY^1 Red^ Green
-^ –^0 FY^
FY^0 Red^ Yellow
-^ –^1 FY^ SA1:^ HG = 00, HY = 01, FG = 11, FY = 10^ (Green = 00, Yellow = 01, Red = 10)HG^1 Red^ Yellow
Outputs C^ TL^ TS^ PQ1^ PQ^
NQ0PQ0Q^ D^ Q NQ1PQ1QD^ Q