SlideServe
Menu
Préférences
© SlideServe · v2026

Counter state machine

Anita avatar
6 diapositives · 315 Views · May 17, 2013

Counter state machine. A counter counts Number of elements in counter determines how many different states we need For example, an eight-state counter can count eight steps. X= Y= Z=. Another counter. Counter need not have always number of states that is equal to a power of 2

Counter state machine - slide 1
01 / 6Counter state machine
1 / 17

Télécharger la présentation

Counter state machine
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Counter state machine • A counter counts • Number of elements in counter determines how many different states we need • For example, an eight-state counter can count eight steps X= Y= Z=

  2. Another counter • Counter need not have always number of states that is equal to a power of 2 • Here is a five state counter • Is it simpler? X= Y= Z=

  3. And what about output • Output in a state may depend on state or state and input • Mealy machine: Output depends on both current state and current input • Moore machine: Output depends on current state • Thus we have two different circuits to implement • 1. Decides what is the next state • 2. Decides what is the output • Both circuits are combinational • States are remembered by memory elements • Latches and Flips-flops are used to remember states

  4. O U T P U T S I N P U T S Next State Logic Output Logic Overall structure of a State machine • The two sets of circuits are shown • Next state logic determines next step based on current state and next input • Output logic determines the output based on current state • Mealy machine will have slight different structure

  5. Example • Design a state machine that will repeatedly display in binary values 1, 3, 5, and 7 • Solutions: • How many states we need? • What is the state transition diagram? • What is the output in each state? • What is the next state logic? • Construct the truth table with state variables • Derive the output logic • Draw the circuit

  6. S0 S1 S2 S3 Example (contd.) • We need four states, S0, S1, S2, S3 • State transitions diagram is • State transition table, implementation level state transition table, output table, and implementation level output tables are • And the logic equations are L2 = XY’+XY = X X := X’Y+XY’ L1 = X’Y+XY = Y Y := X’Y’+XY’ = Y’ L0 = X’Y’+X’Y+XY’+XY = X’+X = 1