













































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
The digital system design, is very helpful series of lecture slides, which made programming an easy task. The major points in these laboratory assignment are:Basics of State Machine Design, Finite-State Machines, Sequential Circuit, Laser Timer, Three Flip-Flops, Sequential Circuits, Combinational Circuit Design Process, Rising Clock Edge, Three-Cycle Laser Timer
Typology: Slides
1 / 53
This page cannot be seen from the preview
Don't miss anything!
Controller x
b
clk
laser
patient
clk
b
x
Describing the Behavior of a
Sequential Circuit: FSM
4
5
Off On1On2 On3 Off On1On2On3Off
clk
x
State
Outputs:
Outputs: x
Off On1 On2 On
clk^
clk^
x=0 clk^ x=1 x=1^ clk^ x=
FSM Simplification: Rising Clock Edges Implicit
transition: cluttered
7
Note: Transition with no associated condition thus transistions to next state on next clock cycle
On1 On2 On
Off
x=1 x=1 x=
x=
b’
b
Inputs: b; Outputs: x
On1 On2 On
Off
x=1 x=1 x=
x=
b’
clk^
clk^
clk^ ^
*clk^
b *clk ^
Inputs: b; Outputs: x
Ex: {Off, On1, On2, On3}
Ex: Inputs: {b}, Outputs: {x}
Ex: “Off”
Describes next states Ex: Has 5 transitions
Sets outputs while in states Ex: x=0, x=1, x=1, and x=
8
Inputs: b; Outputs: x
On1 On2 On
Off
x=1 x=1 x=
x=
b’
b
Can also use table (state table), or textual languages
FSM Example: Secure Car Key (cont.)
behavior for different
input sequence
states and output
values for different
input waveforms
10
K1 K2 K3 K r=1 r=1 r=0 r=
Wait r=
Inputs: a; Outputs: r
a^ a’
Wait Wait K1 K2 K3 K4 Wait Wait
clk Inputs
Outputs
St at e
a
r
clk Inputs a
Wait Wait K1 K2 K3 K4 Wait^ K
Output
State
r
Q: Determine states and r value for given input waveform:
11
Start
Red Green Blue
s
r g b a
Door lock
u Code detector
Q: Can you trick this FSM to open the door, without knowing the code? A: Yes, hold all buttons simultaneously
Wait
Start
Red1 Blue Green Red
s’
a’
ar’ ab’ ag’ ar’
a’
ab ag^ ar a’ a’ u=
u=0 (^) ar
u=0 (^) s
u=0 u=0 (^) u=
Inputs: s,r,g,b,a; Outputs: u
Common Pitfalls Regarding Transition
Properties
should be true
leaving a state
true
leaving a state 13
Verifying Correct Transition
Properties
Can verify using Boolean algebra
Only one condition true: AND of each condition pair (for transitions leaving a state)
should equal 0 proves pair can never simultaneously be true
One condition true: OR of all conditions of transitions leaving a state) should equal 1 proves at least one condition must be true
Example
14
a + a’b = a*(1+b) + a’b = a + ab + a’b = a + (a+a’)b = a + b Fails! Might not be 1 (i.e., a=0, b=0)
a * a’b = (a * a’) * b = 0 * b = 0 OK!
Answer:
cycle: t 0 t 1 t 2 t 3 t 4 t 5 t 6 t 7 t 8 t 9 t 10
w: 0 1 0 1 1 0 1 1 1 0 1 z: 0 0 0 0 0 1 0 0 1 1 0
- Step - C z =