Digital Design: Sequential Logic Blocks

Slides:



Advertisements
Similar presentations
COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
Advertisements

Announcements Assignment 7 posted, due Friday 18 th All project components ordered Dates –Thursday 12/1 review lecture –Tuesday 12/6 project demonstrations.
Ch 8. Sequential logic design practices 1. Documentation standards ▶ general requirements : signal name, logic symbol, schematic logic - state machine.
1 Digital Design: State Machines Timing Behavior Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals.
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.1, 7.2 Counters.
11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.
Shift Registers and Shift Register Counters
David Culler Electrical Engineering and Computer Sciences
Sequential PLD timing Registers Counters Shift registers
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
ECE C03 Lecture 91 Lecture 9 Registers, Counters and Shifters Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
CS 140L Lecture 4 Professor CK Cheng 10/22/02. 1)F-F 2)Shift register 3)Counter (Asynchronous) 4)Counter (Synchronous)
Sequential Circuit Introduction to Counter
Lab 5 :JK Flip Flop and Counter Fundamentals:
1 Digital Design: Sequential Logic Blocks Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals.
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.
Registers and Counters
Registers and Counters
ECE2030 Introduction to Computer Engineering Lecture 15: Registers, Toggle Cells, Counters Prof. Hsien-Hsin Sean Lee School of Electrical and Computer.
Registers and Counters
© The McGraw-Hill Companies, Inc McGraw-Hill 1 PRINCIPLES AND APPLICATIONS OF ELECTRICAL ENGINEERING THIRD EDITION G I O R G I O R I Z Z O N I 14.
Registers & Counters M. Önder Efe
Rabie A. Ramadan Lecture 3
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
EE365 Adv. Digital Circuit Design Clarkson University Lecture #12 Registers and Counters.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Abdullah Said Alkalbani University of Buraimi
Sequential logic circuits
EE121 John Wakerly Lecture #9
Counters.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
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.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Shift Register Counters
Digital Design: Sequential Logic Principles
© Copyright 2004, Gaetano Borriello and Randy H. Katz
Class Exercise 1B.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Registers and Counters
Registers and Counters
Electronics Technology
Sequential Logic Combinational logic:
Digital Fundamentals Abdul Hameed
Sequential Logic.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Typical Timing Specifications
Sequential Circuit - Counter -
Digital System Design Review.
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
CSE 370 – Winter Sequential Logic-2 - 1
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Registers and Counters
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on 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 17 Logistics Last lecture Today HW5 due on Wednesday
Outline Registers Counters 5/11/2019.
Presentation transcript:

Digital Design: Sequential Logic Blocks Credits: Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals of Logic Design, 5/e, Thomson, 2004 R.H. Katz, G. Borriello, Contemporary Logic Design, 2/e, Prentice-Hall, 2005

Registers A collection of 2 or more D flip flops with a common clock Registers are often used to store a collection of related bits (e.g. a byte of data in a computer) Clr D Q OUT1 OUT2 OUT3 CLK IN1 IN2 IN3 IN4 Clear OUT4

A “standard” 4-bit register IC

A “standard” 8-bit register IC

Registers with 3-state outputs (a) Symbol (b) Functional Diagram

A “standard” 8-bit register with 3-state outputs

Registers with clock enable D Q CK 1 In0 CE ClrN In7 Clk In1 Out0 Out1 Out7 8 Q D CE Load Clk In Out Clr ClrN (a) Symbol

A standard 8 bit register with clock enable (= “gated” clock)

Registers application: Data Transfers

Shift Registers It is a register that stores input values in sequence. At each clock tick the values stored are shifted from one flip flop to the adjacent block diagram

Cascading Flip Flops tFF1 < Tclock – Tsu2 + tskew Setup Constraint: Hold Constraint: tFF1 > Th2 + tskew If flip flops were ideal (tFF = 0) shift registers would not work ! The hold time constraint would not be satisfied !! For long shift registers, skew can easily become an issue and cause hold time constraint to be violated

Shift Registers (cont’d)

Shift Registers (cont’d)

Shift registers (cont’d)

Universal shift register serial or parallel inputs serial or parallel outputs permits shift left or right shift in new values from left or right clear sets the register contents and output to 0 s1 and s0 determine the shift function s0 s1 function 0 0 hold state 0 1 shift right 1 0 shift left 1 1 load new input clear output input s0 s1 clock Universal Shift Register right_out left_in left_out right_in

Shift register application Parallel-to-serial conversion for serial transmission parallel outputs parallel inputs Parallel-to-serial conversion Serial-to-parallel conversion serial transmission

Shift register application (cont’d) Pattern Recognizer in this case, recognizing the pattern 1001 D Q IN OUT1 OUT2 OUT3 OUT4 OUT CLR CLK

Shift register application (cont’d) Ring Counter counters are systems that sequences through a fixed set of patterns in this case the sequence is 1000, 0100, 0010, 0001 provided that one of the given patterns is forced as initial state (by loading or set/reset) NOTE: with 4 FF we make only 4 patterns D Q IN OUT1 OUT2 OUT3 OUT4 CLK START S R

Shift register application (cont’d) Johnson (= Moebius = Twisted-ring) Counter D Q IN OUT1 OUT2 OUT3 OUT4 CLK How does this counter work? Counts through the sequence: 1000, 1100, 1110, 1111, 0111, 0011, 0001, 0000 NOTE: with 4 FF we make 8 patterns. Adjacent patterns have distance one (glitch free decoding) we can use 0000 or 1111 as reset state

Ring and Johnson counter Timings

Binary Counters A counter is a clocked sequential circuit that sequences through a fixed set of patterns A counter with m-states is called a modulo-m-counter, or sometimes a divide-by-m counter The most commonly used counter type is an n-bit binary counter (each of the states is encoded as the corresponding n-bit binary integer)

Binary Counters (cont’d) Ripple counters Don’t use them !!! The output of the flip-flops are fed into the clock pin causing skew. As a result reliability becomes an issue (especially for high speed applications). Synchronous counters The operation of the flip flops is synchronized by a common clock.

Synchronous Binary Counters

Synchronous Binary Counters (cont’d)

Sync. Binary Counters with T-FF QA toggles always (every clock tick) QB toggles every time QA = 1 QC toggles every time QA AND QB are both 1

Sync. Binary Counters with D-FF XOR decides when bit should be toggled The toggling rule is as follows: always for low-order bit; only when first bit is true for second bit; only when first and second bit are true for third bit; and so on D Q OUT1 OUT2 OUT3 OUT4 CLK "1"

Example: Binary Up/Down Counter

Binary Up/Down Counter (cont’d)