Difference between revisions of "CSC270 Exercises on FSM"
(Created page with "--~~~~ ---- =Exercise #1= * Implement a sequencer (FSM) which activates 3 Lights: a green light, a yellow light, and a red light. The behavior of the FSM is the following: ** t...") |
(→Exercise #2) |
||
Line 9: | Line 9: | ||
* There is only one light on at a given time. | * There is only one light on at a given time. | ||
− | =Exercise #2= | + | ==Exercise #2== |
* Same as Exercise 1, but this time the behavior is the following | * Same as Exercise 1, but this time the behavior is the following | ||
Line 15: | Line 15: | ||
** the yellow light comes on and stays on for the next for 15 seconds, | ** the yellow light comes on and stays on for the next for 15 seconds, | ||
** the red light comes on after the yellow light for 30 seconds. | ** the red light comes on after the yellow light for 30 seconds. | ||
+ | |||
+ | ==Exercise #3== | ||
+ | |||
+ | * Create a "true" frequency divider that divides by 4. |
Revision as of 15:31, 28 February 2011
--D. Thiebaut 15:24, 28 February 2011 (EST)
Exercise #1
- Implement a sequencer (FSM) which activates 3 Lights: a green light, a yellow light, and a red light. The behavior of the FSM is the following:
- the green light stays on for 30 seconds, then
- the yellow light comes on and stays on for 30 seconds, then
- the red light comes on and stays on for 30 seconds, then we repeat the pattern.
- There is only one light on at a given time.
Exercise #2
- Same as Exercise 1, but this time the behavior is the following
- the green light comes on after the red light and stays on for 30 seconds,
- the yellow light comes on and stays on for the next for 15 seconds,
- the red light comes on after the yellow light for 30 seconds.
Exercise #3
- Create a "true" frequency divider that divides by 4.