ECE U322 Digital Logic Design - PowerPoint PPT Presentation

1 / 21
About This Presentation
Title:

ECE U322 Digital Logic Design

Description:

A = 00, B = 01, C = 10. 7. Equations for 01 String Recognizer. D1 = D0 = Z = 8 ... C. 1/0. D. 0/0. 11. State Diagram for 1101 string recognizer: Moore version ... – PowerPoint PPT presentation

Number of Views:39
Avg rating:3.0/5.0
Slides: 22
Provided by: jenni98
Category:
Tags: ece | design | digital | logic | string | u322

less

Transcript and Presenter's Notes

Title: ECE U322 Digital Logic Design


1
ECE U322Digital Logic Design
Nov. 7, 2005
  • Lecture 25
  • Sequential Circuit Design
  • Second Midterm Wednesday, Nov. 16.

2
Announcements
  • Midterm in class on Wed, Nov 16
  • Homework 7 due this Thursday
  • Practice MidtermII
  • We will go over solutions Nov. 14 in class.

3
Moore Machine
  • Any Mealy machine can be turned into a Moore
    machine, and vice versa
  • A Moore machine has the same number of states or
    more states than a Mealy machine
  • Output timing is different between a Moore
    machine and a Mealy Machine
  • Moore outputs change on clock edge
  • Mealy machine output changes whenever inputs
    change

4
01 Sequence Recognizer
Mealy machine
Moore machine
5
State Table for 01 Recognizer
Output State A State B State C
6
State Table for 01 Recognizer
  • A 00, B 01, C 10

7
Equations for 01 String Recognizer
  • D1
  • D0
  • Z

8
Circuit for 01 String Recognizer Moore version
9
Timing Diagram for 01 string recognizer Moore
version
10
State Diagram for 1101 string recognizer Mealy
version
11
State Diagram for 1101 string recognizer Moore
version
  • outputs marked on
    states for Moore model
  • Arcs show only
    state transitions
  • Add a new state E to
    produce the output 1
  • The new state, E produces the same behavior
    in the future
    as state B. But it gives a different output at
    the present time. The timing of the Moore and the
    Mealy machines are different.

12
Implement 01 sequence recognizer with J-K
Flipflops
  • One extra design step determine J-K inputs
  • We will do the Mealy version
  • two states, one flip-flop A 0 B 1

13
State Table for 01 recognizer
Output is the same as before
14
Equations for 01 state recognizer
  • J
  • K
  • Z

15
Circuit Diagram for 01 recognizer with JK
flipflops
16
Timing Diagram 01 recognizer with JK flipflops
17
State Machine Implementations
  • D or J-K flip-flops
  • same number of states
  • same number of flip-flops
  • same timing
  • Mealy or Moore machine
  • Moore may have more states
  • Timing is different
  • output changes with state for Moore machine

18
Candy machine example
Let us design a control unit for a simple
coin-operated candy machine. Candy costs 20
cents, and the machine accepts nickels and dimes.
Change should be returned if more than 20 cents
is deposited. No more than 25 cents can be
deposited on a single purchase therefore, the
maximum change is one nickel.
19
(No Transcript)
20
State Diagram
21
State Table
Write a Comment
User Comments (0)
About PowerShow.com