





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
The concept of finite state automata (fsa) and how they can be implemented using flip-flops. It covers the basics of fsas, their states, and the use of flip-flops as one-bit memories to remember the current state. The document also includes examples of d flip-flops and their role in fsa implementation.
Typology: Slides
1 / 9
This page cannot be seen from the preview
Don't miss anything!






Intro to Computer Architecture
state.
current state of an FSAcurrent state of an FSA.
can implement an FSA.
l^
d t
C
D
Q
next
Comment
0
X
Q
No change
only one datainput, D, plusenable, C
0
X
Q
prev
No change
1
0
0
Reset
1
1
1
Set
input.
rising edge.
falling edge.
Overview of Design Process
t^
Fi it
St t
A t
t^
t^
d l
the system
d fli
fl
i^
t^
ti
and flip flop input equations
Example
h
th
ti
1 i
t
when three or more consecutive 1 inputshave been received.
more 1 inputs have been detectedmore 1 inputs have been detected.
less than three inputs of 1 have beenreceived.
FSA for 3 Consecutive 1 inputs
-^
State S
0
: zero 1s detected
-^
State S
1
: one 1 detected
-^
State S
2
: two 1s detected
-^
State S
3
: three 1s detected
° Note that each state has 2 output arrows
Moore Machine
t^
t i
i t d
ith th
t t
f th
output is associated with the state of theFSA.
during the second half of a clock pulse.
how the FSA got to the state.
1’s) has an output of 1. All other are zero.
Simplify Each Result
OldQ
1
OldQ
0
input
NewD
A
Q’
in’ 0
Q’
in 0
Q^0
in
Q
in’ 0
Q’
1
0
0
1
0
Q^1
0
1
1
0
p
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
1
1
0
0
0
1
0
0
0
1
0
1
1
1
1
0
0
1
1
1
1
new D
A^
= in * Q
1
0
Simplify new D
B
OldQ
1
OldQ
0
input
NewD
B
Q’
in’ 0
Q’
in 0
Q
in 0
Q
in’ 0
Q’
1
0
1
0
0
Q
1
0
1
1
0
p
0
0
0
0
0
0
1
1
0
1
0
0
0
1
1
0
1
0
0
0
1
0
0
0
1
0
1
1
1
1
0
0
1
1
1
1
new D
B
= in * Q
1
0
Simplify Output
OldQ
1
OldQ
0
input
output
Q’
in’ 0
Q’
in 0
Q^0
in
Q
in’ 0
Q’
1
0
0
0
0
Q^1
0
0
1
1
p^
p
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
0
1
0
0
0
1
0
1
0
1
1
0
1
1
1
1
1
output = Q
1
0
FSA implementation
Flip-Flops Required
n
states in the FSA, it will
i^
l^
) fli
fl
require log
n
flip-flops.
n
is not an even power of two, you have
to round up.
truth table may have
“don’t care”
entries
truth
table may have
don t
care
entries
Example: Parity Checker
bit
i^
b
bits is an even number.
parity is even.
Parity FSA
h
1 i
i^
t
when a 1 is input
same on 0 input.
How many flip-flops will be required
to implement the parity?
Regular Languages
Fi it
St t
A t
t
a Finite State Automata.
separate strings and numbers and dividethe input into a series of “tokens”.
Context Free Languages
l^
d PHP
t^
t f
Pearl and PHP, are context freelanguages.
recognized by a FSA with a stack memory.
Context Sensitive and R.E.
i^
l^
bl
l
Recursively Enumerable languages canbe recognized by a Turing Machine.
that a modern “real” computer can.
“Every function which would naturally beregarded as computable, can becomputed by a Turing machine”
Turing Machine
for memory.
current symbol on the tape, the TuringMachine can write a new symbol, movethe tape left or right and change the stateof the FSAof the FSA.
Non-Computable
t d
computed.
for which there cannot be a computersolution.
Halting Problem
i^
th
d
f^
d t ll
in the source code of any program and tellif that program will get caught in an infiniteloop.
infinite loops in many programs, but not allinfinite loops in many programs, but not allprograms.
Post Correspondence Problem
each have a binary number on the top andeach have a binary number on the top andbottom.
numbers on the top and bottom are thesame? You can use each domino as often
lik
as you like.
Solution to Simple Problem
Dominos
Solution
1001100100100