Difference between revisions of "CSC270 Lab 5 2016"
(Created page with "--~~~~ ---- <br /> <bluebox> This lab presents Finite State Machines (FSM) and will you have explore a couple Moore machines. </bluebox> <br /> =Controllable Moore FSM= <br />...") |
(→Controllable Moore FSM) |
||
Line 6: | Line 6: | ||
</bluebox> | </bluebox> | ||
<br /> | <br /> | ||
− | =Controllable Moore FSM= | + | =Minimal and Controllable Moore FSM= |
<br /> | <br /> | ||
− | Implement this FMS shown below and observe its behavior. Generate the timing diagram for it. Include the timing diagram in your report, as well as its state diagram. | + | Implement this FMS shown below and observe its behavior. It uses half of a 74LS74 D Flip-flop. Generate the timing diagram for it. Include the timing diagram in your report, as well as its state diagram. |
<br /> | <br /> | ||
[[Image:SimpleFSM.png|400px|center]] | [[Image:SimpleFSM.png|400px|center]] | ||
<br /> | <br /> | ||
<br /> | <br /> | ||
+ | =Finite State Machine= | ||
<br /> | <br /> | ||
+ | ;Word problem: | ||
+ | :Implement a sequencer (FSM) which controls 3 lights: a green light, a yellow light, and a red light. The lights operate in a cycle, as follows: | ||
+ | # Green is ON for 1 second, and turns OFF. Then | ||
+ | # Yellow is ON for 1 second, then turns OFF. Then | ||
+ | # Red is ON for 2 seconds, and stays ON. Then | ||
+ | # Yellow turns ON for 1 second, and after that both Red and Yellow turn OFF. | ||
<br /> | <br /> | ||
+ | ==Part 1== | ||
<br /> | <br /> | ||
+ | * Generate the timing diagram, and the state diagram. | ||
+ | * Find the number of flip-flops required to implement the FSM. | ||
+ | * Find the boolean functions that will generate the D inputs to the flip-flops, and the R, G, and Y outputs. | ||
<br /> | <br /> | ||
+ | ==Part 2== | ||
<br /> | <br /> | ||
+ | * Verify that your design is correct by coding your equations in a Python simulator. | ||
+ | <br /> | ||
+ | ==Part 3== | ||
+ | <br /> | ||
+ | * Wire up a circuit that implements this FSM. Demonstrate its correct behavior to your instructor. | ||
<br /> | <br /> | ||
<br /> | <br /> |
Revision as of 18:31, 24 February 2016
--D. Thiebaut (talk) 18:12, 24 February 2016 (EST)
This lab presents Finite State Machines (FSM) and will you have explore a couple Moore machines.
Contents
Minimal and Controllable Moore FSM
Implement this FMS shown below and observe its behavior. It uses half of a 74LS74 D Flip-flop. Generate the timing diagram for it. Include the timing diagram in your report, as well as its state diagram.
Finite State Machine
- Word problem
- Implement a sequencer (FSM) which controls 3 lights: a green light, a yellow light, and a red light. The lights operate in a cycle, as follows:
- Green is ON for 1 second, and turns OFF. Then
- Yellow is ON for 1 second, then turns OFF. Then
- Red is ON for 2 seconds, and stays ON. Then
- Yellow turns ON for 1 second, and after that both Red and Yellow turn OFF.
Part 1
- Generate the timing diagram, and the state diagram.
- Find the number of flip-flops required to implement the FSM.
- Find the boolean functions that will generate the D inputs to the flip-flops, and the R, G, and Y outputs.
Part 2
- Verify that your design is correct by coding your equations in a Python simulator.
Part 3
- Wire up a circuit that implements this FSM. Demonstrate its correct behavior to your instructor.