ECE 545 Digital System Design with VHDL Lecture 1B. Digital Logic Refresher Part B Sequential Logic Building Blocks

Similar documents
ECE 545 Digital System Design with VHDL Lecture 2. Digital Logic Refresher Part B Sequential Logic Building Blocks

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part B Sequential Logic Building Blocks

Read Only Memory (ROM)

Flip-flop and Registers

Engr354: Digital Logic Circuits

Introduction to Digital Logic Missouri S&T University CPE 2210 Flip-Flops

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Logic Design. Flip Flops, Registers and Counters

Flip-Flops and Sequential Circuit Design

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Digital Circuits ECS 371

Learning Outcomes. Unit 13. Sequential Logic BISTABLES, LATCHES, AND FLIP- FLOPS. I understand the difference between levelsensitive

EET2411 DIGITAL ELECTRONICS

Experiment 8 Introduction to Latches and Flip-Flops and registers

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

CHAPTER1: Digital Logic Circuits

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Unit 11. Latches and Flip-Flops

Introduction to Sequential Circuits

LATCHES & FLIP-FLOP. Chapter 7

ELCT201: DIGITAL LOGIC DESIGN

ECE 3401 Lecture 11. Sequential Circuits

Other Flip-Flops. Lecture 27 1

CMSC 313 Preview Slides

Rangkaian Sekuensial. Flip-flop

CHAPTER 6 COUNTERS & REGISTERS

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

Universal Asynchronous Receiver- Transmitter (UART)

ELCT201: DIGITAL LOGIC DESIGN

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

D Latch (Transparent Latch)

CSE140: Components and Design Techniques for Digital Systems. More D-Flip-Flops. Tajana Simunic Rosing. Sources: TSR, Katz, Boriello & Vahid

Synchronous Sequential Logic

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Review of digital electronics. Storage units Sequential circuits Counters Shifters

ECE 263 Digital Systems, Fall 2015

Registers and Counters

Combinational vs Sequential

Sequential Circuits: Latches & Flip-Flops

Digital Circuit And Logic Design I. Lecture 8

Digital Circuit And Logic Design I

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

Chapter 2. Digital Circuits

Sequential Design Basics

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

LSN 12 Shift Registers

CprE 281: Digital Logic

Digital Fundamentals: A Systems Approach

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

EKT 121/4 ELEKTRONIK DIGIT 1

Chapter 11 Latches and Flip-Flops

Sequential Logic Counters and Registers

Lecture 8: Sequential Logic

Counters

CSE Latches and Flip-flops Dr. Izadi. NOR gate property: A B Z Cross coupled NOR gates: S M S R Q M

Registers and Counters

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Digital Design Datapath Components: Parallel Load Register

ECE 341. Lecture # 2

EE 109 Homework 6 State Machine Design Name: Score:

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Chapter 7 Counters and Registers

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Serial In/Serial Left/Serial Out Operation

UNIT-3: SEQUENTIAL LOGIC CIRCUITS

Sequential Logic Design CS 64: Computer Organization and Design Logic Lecture #14

RS flip-flop using NOR gate

INC 253 Digital and electronics laboratory I

COE 202: Digital Logic Design Sequential Circuits Part 1. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

Agenda. EE 260: Introduction to Digital Design Counters and Registers. Asynchronous (Ripple) Counters. Asynchronous (Ripple) Counters

Final Exam review: chapter 4 and 5. Supplement 3 and 4

ASYNCHRONOUS COUNTER CIRCUITS

Chapter 5 Flip-Flops and Related Devices

Chapter 5 Sequential Systems. Introduction

Administrative issues. Sequential logic

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

CprE 281: Digital Logic

CHAPTER 4: Logic Circuits

L5 Sequential Circuit Design

Flip-Flops and Registers

Chapter 5 Synchronous Sequential Logic

CHAPTER 4: Logic Circuits

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

Read-only memory (ROM) Digital logic: ALUs Sequential logic circuits. Don't cares. Bus

MC9211 Computer Organization

Chapter 3 Unit Combinational

ECE 3401 Lecture 12. Sequential Circuits (II)

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

EEE2135 Digital Logic Design Chapter 6. Latches/Flip-Flops and Registers/Counters 서강대학교 전자공학과

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

Digital Fundamentals

11. Sequential Elements

hochschule fu r angewandte wissenschaften hamburg Prof. Dr. B. Schwarz FB Elektrotechnik/Informatik

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

Transcription:

ECE 545 igital System esign with VHL Lecture B igital Logic Refresher Part B Sequential Logic Building Blocks

Lecture Roadmap Sequential Logic Sequential Logic Building Blocks Flip-Flops, Latches Registers, Shift Registers Counters RAM 2

Textbook References Sequential Logic Review Stephen Brown and Zvonko Vranesic, Fundamentals of igital Logic with VHL esign, 2 nd or 3 rd Edition Chapter 7 Flip-flops, Registers, Counters, and a Simple Processors (7.3-7.4, 7.8-7. only) OR your undergraduate digital logic textbook (chapters on sequential logic) 3

Sequential Logic Building Blocks some slides modified from: Brown and Vranesic, Fundamentals of igital Logic with VHL esign, 2 nd Edition S. andamudi, Fundamentals of Computer Organization and esign 4

Introduction to Sequential Logic Output depends on the current input and the internal state Past inputs effects the internal state Sequential circuits consist typically of Storage elements (flip-flop, latch, register, RAM, etc.) Combinational logic 5

Introduction (cont d) Main components of a typical synchronous sequential circuit (synchronous = uses a clock to keep circuits in lock step) INPUT PRESENT STATE S(t) COMBINATIONAL LOGIC STATE-HOLING STORAGE ELEMENTS (e.g. FLIP-FLOPS) OUTPUT NEXT STATE S(t+) CLOCK 6

State-Holding Memory Elements Latch versus Flip Flop Latches are level-sensitive: whenever clock is high, latch is transparent Flip-flops are edge-sensitive: data passes through (i.e. data is sampled) only on a rising (or falling) edge of the clock Latches cheaper to implement than flip-flops Flip-flops are easier to design with than latches In this course, primarily use flip-flops 7

Latch vs. Flip-Flop CLK CLK Latch transparent when clock is high CLK CLK Samples on rising edge of clock 8

latch Graphical symbol Clock Truth table Clock (t+) (t) Timing diagram Clock t t 2 t 3 t 4 Time 9

flip-flop Graphical symbol Clock Truth table Clk (t+) (t) (t) Timing diagram Clock t t 2 t 3 t 4 Time

Flip-Flop with Asynchronous Set and Reset Set Reset Bubble on the symbol means active-low When Set =, set to When Set =, do nothing When Reset =, set to When Reset =, do nothing Set and Reset also known as Preset and Clear respectively In this circuit, Set and Reset are asynchronous changes immediately when preset or clear are active, regardless of clock

Flip-Flop with Synchronous Reset Reset Clear Clock CLK Reset (asynchronous Reset) (synchronous Reset) Asynchronous active-low Reset: immediately clears to Synchronous active-low Reset: clears to on rising-edge of clock 2

Register (3) (3) CLK (2) (2) 4 4 CLK () () CLK () () CLK Clock In typical nomenclature, a register is a name for a collection of flip-flops used to hold a bus All flip-flops of a register share the same clock and control signals 3

Shift Register Sin 3 2 Sout Clk (a) Circuit Clk Sin SHIFT REGISTER Sout t Sin 3 2 Sout= t t 2 t 3 t 4 t 5 t 6 t 7 4

4-bit Shift Registers: symbols a) b) Enable 4 Enable 4 Sin Sout Load Sin Clock Clock

Shift Register with Serial Input and Serial Output Sin (3) (2) () Sout=() Clock En En En En Enable 6

Shift Register with Parallel Load and Parallel Output Load (3) Sin (2) () () Clock Enable (3) (2) () () 7

Synchronous Up Counter enable load 2 3 carry 2 3 clock Enable (synchronous): when high enables the counter, when low counter holds its value Load (synchronous) : when load =, load the desired value into the counter Output carry: indicates when the counter rolls over 3 downto, 3 downto is how to interpret MSB to LSB 8

Random Access Memory (RAM) More efficient than registers for storing large amounts of data Can read and write to RAM Addressable memory RAM dimensions are: (number of words) x (bits per word) Address is m bits, data is n bits 2 m x n-bit RAM Example: address is 5 bits, data is 8 bits 32 x 8 RAM Write Enable (WE) When set, writing takes place at the next rising edge of the clock n m IN AR WE CLK RAM OUT n 9

Block RAM Waveforms REA_FIRST mode 2

Block RAM Waveforms WRITE_FIRST mode 2

Block RAM Waveforms NO_CHANGE mode 22

ual-port RAM Two sets of input ports {INA, ARA, WEA} {INB, ARB, WEB} n INA OUTA n Two corresponding outputs OUTA OUTB m ARA WEA One memory matrix n INB RAM OUTB n Possible operations: Read from two memory locations Write to two different memory locations Read from a memory location and write to a memory location (different or the same) m ARB WEB CLK 23