Lecture 17 Logistics Last lecture Today HW5 due on Wednesday

Slides:



Advertisements
Similar presentations
ENGIN112 L23: Finite State Machine Design Procedure October 27, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 23 Finite State Machine.
Advertisements

TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
Give qualifications of instructors: DAP
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
Give qualifications of instructors: DAP
11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Sequential Circuit Introduction to Counter
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Lecture 21 Overview Counters Sequential logic design.
1 Lecture 15 Registers Counters Finite State Machine (FSM) design.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
1 CSE370, Lecture 19 Lecture 19 u Logistics n Lab 8 this week to be done in pairs íFind a partner before your lab period íOtherwise you will have to wait.
1 CSE370, Lecture 15 Lecture 15 u Logistics n HW5 due this Friday n HW6 out today, due Friday Feb 20 n I will be away Friday, so no office hour n Bruce.
1 CSE370, Lecture 17 Lecture 17 u Logistics n Lab 7 this week n HW6 is due Friday n Office Hours íMine: Friday 10:00-11:00 as usual íSara: Thursday 2:30-3:20.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Latches & Flip-Flops.
Abdullah Said Alkalbani University of Buraimi
1 CSE370, Lecture 18 Lecture 20 u Logistics n HW6 due Wednesday n Lab 7 this week (Tuesday exception) n Midterm 2 Friday (covers material up to simple.
DLD Lecture 26 Finite State Machine Design Procedure.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
1 CSE370, Lecture 24 Lecture 26 u Logistics n HW8 due Friday n Ant extra credit due Friday n Final exam a week from today, 12/8 8:30am-10:20am here n Review.
Digital Design: Sequential Logic Blocks
EET 1131 Unit 12 Shift Registers
Class Exercise 1B.
Chapter #6: Sequential Logic Design
© Copyright 2004, Gaetano Borriello and Randy H. Katz
Digital Fundamentals Abdul Hameed
Lecture 26 Logistics Last lecture Today HW8 due Friday
EKT 221 : Digital 2 COUNTERS.
COMP541 Sequential Logic – 2: Finite State Machines
Sequential Logic Counters and Registers
Sequential Circuit: Counter
Typical Timing Specifications
ECE 301 – Digital Electronics
Malik Najmus Siraj Digital Logic Design Malik Najmus Siraj
Jeremy R. Johnson Mon. Apr. 3, 2000
Digital Logic & Design Dr. Waseem Ikram Lecture No. 34.
Lecture 13: Sequential Circuits, FSM
Instructor: Alexander Stoytchev
Lecture 21 Logistics Today
Digital Logic & Design Dr. Waseem Ikram Lecture No. 31.
CSE 370 – Winter Sequential Logic-2 - 1
CSE 370 – Winter Sequential Logic - 1
Lecture 15 Logistics Last lecture Today HW4 is due today
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Instructor: Alexander Stoytchev
Introduction to Sequential Circuits
CSE 370 – Winter Sequential Logic-2 - 1
Guest Lecture by David Johnston
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
14 Digital Systems.
Lecture 20 Logistics Last lecture Today HW6 due Wednesday
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 18 Logistics Last Lecture Today HW6 due today Midterm 2
Lecture 18 Logistics Last lecture Today HW5 due today (with extra 10%)
Lecture 22 Logistics Last lecture Today HW7 is due on Friday
EGR 2131 Unit 12 Synchronous Sequential Circuits
Lecture 22 Logistics Last lecture Today HW7 is due on Friday
Announcements Assignment 7 due now or tommorrow Assignment 8 posted
CSE 370 – Winter Sequential Logic-2 - 1
Instructor: Michael Greenbaum
Presentation transcript:

Lecture 17 Logistics Last lecture Today HW5 due on Wednesday HW6 will be out on Wednesday, due in one week Lab6 this week Last lecture Memory storage elements State diagrams Today Registers Counters Start of Finite State Machine (FSM) 17

The “WHY” slide Registers and Counters Finite State Machine Registers and counters are very simple yet powerful examples of how you can use the basic memory elements to conduct productive behavior. They are used everywhere in a computer. Finite State Machine This is what we have been waiting for in this class. Using combinational and sequential logics, now you can design a lot of clever digital logic circuits for functional products. We will learn different steps you take to go from word problems to logic circuits in the next few lectures. 17

Registers Group of storage elements read/written as a unit. Store related values (e.g. a binary word) Collection of flip-flops with common control Share clock, reset, set lines Example: Storage registers Shift registers Counters 17

Storage registers Basic storage registers uses flip flops Example: 4 bit storage register OUT1 OUT2 OUT3 OUT4 "0" R S R S R S R S D Q D Q D Q D Q CLK IN1 IN2 IN3 IN4 17

Shift registers Hold successively sampled input values Delays values in time Example: 4-bit shift register Stores 4 input values in sequence D Q IN OUT1 OUT2 OUT3 OUT4 CLK 17

Shift-register applications Parallel-to-serial conversion for signal transmission Pattern recognition (circuit recognizes 1001) parallel inputs parallel outputs serial transmission CLK D Q IN CLK OUT 17

Counters Ring counter: Sequence is 1000, 0100, 0010, 0001 Assuming one of these patterns is the starting state Johnson counter: Sequence is 1000, 1100, 1110, 1111, 0111, 0011, 0001, 0000 D Q IN OUT1 OUT2 OUT3 OUT4 CLK D Q IN OUT1 OUT2 OUT3 OUT4 CLK 17

A binary counter Has logic between flip-flops D Q OUT1 OUT2 OUT3 OUT4 CLK "1” D1 D2 D3 D4 17

“States” for finite state machines are kept in the storage elements Combinational logic and storage elements Localized feedback loops Choice of storage elements alters the logic Combinational Logic Inputs Outputs State Inputs State Outputs Storage Elements 17

Finite-state machines (FSMs) States: Possible storage-element values Transitions: Changes in state Clock synchronizes the state changes Sequential logic Sequences through a series of states Based on inputs and present state In = 0 In = 1 100 010 110 111 001 17

Drawing state diagrams Show input values on transition arcs Show output values in state nodes D Q IN OUT1 OUT2 OUT3 CLK 100 110 111 011 101 010 000 001 1 17

Counters revisited Great simple examples of state machines Output is the counter’s state Next state is well defined Does not depend on input (no inputs) 010 100 110 011 001 000 101 111 3-bit up-counter 17

FSM design procedure (using counters) 1. Draw a state diagram 2. Draw a state-transition table 3. Encode the next-state functions Minimize the logic using k-maps Implement the design We will use a ‘3-bit up counter’ as an example 17

1. Draw a state diagram 010 100 110 011 001 000 101 111 3-bit up-counter 17

2. Draw a state-transition table Like a truth-table State encoding is easy for counters  Use count value current state next state 0 000 001 1 1 001 010 2 2 010 011 3 3 011 100 4 4 100 101 5 5 101 110 6 6 110 111 7 7 111 000 0 17

3. Encode the next state functions Assume D flip-flops as state elements 1 1 1 1 0 0 0 0 C2 C3 C1 N1 0 1 1 0 1 0 0 1 C2 C3 C1 N2 C3 C2 C1 N3 N2 N1 0 0 0 0 0 1 0 0 1 0 1 0 0 1 0 0 1 1 0 1 1 1 0 0 1 0 0 1 0 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 0 0 0 0 1 1 0 1 0 1 C2 C3 C1 N3 N1 := C1' N2 := C1C2' + C1'C2 := C1 xor C2 N3 := C1C2C3' + C1'C3 + C2'C3 := C1C2C3' + (C1' + C2')C3 := (C1C2) xor C3 17

4. Implement the design 3 flip-flops hold state Counter is synchronously clocked Minimized logic computes next state D Q OUT1 OUT2 OUT3 CLK "1" 17