ECE 545—Digital System Design with VHDL Lecture 1

Slides:



Advertisements
Similar presentations
Tutorial 2 Sequential Logic. Registers A register is basically a D Flip-Flop A D Flip Flop has 3 basic ports. D, Q, and Clock.
Advertisements

1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Give qualifications of instructors: DAP
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
ECE 331 – Digital System Design Latches and Flip-Flops (Lecture #17) The slides included herein were taken from the materials accompanying Fundamentals.
Flip-Flops, Registers, Counters, and a Simple Processor
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.
Circuits require memory to store intermediate data
EKT 124 / 3 DIGITAL ELEKTRONIC 1
ECE 331 – Digital System Design Flip-Flops and Registers (Lecture #18) The slides included herein were taken from the materials accompanying Fundamentals.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory.
Overview Recall Combinational Logic Sequential Logic Storage Devices
Kazi Fall 2006 EEGN 4941 EEGN-494 HDL Design Principles for VLSI/FPGAs Khurram Kazi Some of the slides were taken from K Gaj’s lecture slides from GMU’s.
Logic and Computer Design Fundamentals Registers and Counters
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
ECE 331 – Digital System Design Counters (Lecture #18)
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
1 CSE370, Lecture 14 Lecture 14 u Logistics n Midterm 1: Average 90/100. Well done! n Midterm solutions online n HW5 due date delayed until this Friday.
Sequential Logic - An Overview
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
COE 202: Digital Logic Design Sequential Circuits Part 1
Rabie A. Ramadan Lecture 3
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
ECE 545—Digital System Design with VHDL Lecture 3
1 Sequential Logic Lecture #7. 모바일컴퓨팅특강 2 강의순서 Latch FlipFlop Shift Register Counter.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
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.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits II.
Computer Organization & Programming Chapter 5 Synchronous Components.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
CS 352 : Computer Organization and Design University of Wisconsin-Eau Claire Dan Ernst Latches & Flip-Flops.
Introduction to Sequential Logic
Lecture 7: Sequential Networks CSE 140: Components and Design Techniques for Digital Systems Fall 2014 CK Cheng Dept. of Computer Science and Engineering.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
1 ECE 545—Digital System Design with VHDL Lecture 1 Digital Logic Refresher Part A – Combinational Logic Building Blocks.
Chapter 6 – Digital Electronics – Part 1 1.D (Data) Flip Flops 2.RS (Set-Reset) Flip Flops 3.T Flip Flops 4.JK Flip Flops 5.JKMS Flip Flops Information.
George Mason University Behavioral Modeling of Sequential-Circuit Building Blocks ECE 545 Lecture 8.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
ECE 331 – Digital System Design Introduction to Sequential Circuits and Latches (Lecture #16)
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.
Dept. of Electrical Engineering
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Sequential Logic An Overview
Class Exercise 1B.
Chapter #6: Sequential Logic Design
Sequential Logic Counters and Registers
Flip-FLops and Latches
Flip-FLops and Latches
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Flip-FLops and Latches
Flip-FLops and Latches
Flip-FLops and Latches
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
ECE 545—Digital System Design with VHDL Lecture 1
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Flip-Flops.
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Flip-FLops and Latches
SEQUENTIAL CIRCUITS __________________________________________________
Sequntial-Circuit Building Blocks
(Sequential-Circuit Building Blocks)
Presentation transcript:

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

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

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

Sequential Logic Building Blocks some slides modified from: Brown and Vranesic, “Fundamentals of Digital Logic with VHDL Design, 2nd Edition” S. Dandamudi, “Fundamentals of Computer Organization and Design”

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

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

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 D flip-flops

D Latch vs. D Flip-Flop D CLK Q D CLK Q Latch transparent when clock is high D CLK D Q CLK Q “Samples” D on rising edge of clock

D latch Graphical symbol Truth table Q(t+1) Clock D Q(t) – 1 1 1 1 – 1 1 1 1 Timing diagram t t t t 1 2 3 4 Clock D Q Time

D flip-flop Graphical symbol Truth table Q(t+1) Clk D   1 1 – Q(t) 1 Clock   1 1 – Q(t) 1 – Q(t) Timing diagram t t t t 1 2 3 4 Clock D Q Time

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

D Flip-Flop with Synchronous Reset CLK Reset Q (asynchronous Reset) Q (synchronous Reset) Asynchronous active-low Reset: Q immediately clears to 0 Synchronous active-low Reset: Q clears to 0 on rising-edge of clock

Register D(3) Q(3) D Q CLK D(2) Clock 4 D Q Q(2) D Q CLK D(1) Q(1) D Q CLK D(0) Q(0) D Q CLK 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

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

b) with Enable and Parallel Load 4-bit Shift Registers: symbols a) with Enable b) with Enable and Parallel Load Q Enable Clock 4 D Sin Q Enable Clock 4 D Load Sin

Shift Register with Enable: internal structure Q(3) Q(2) Q(1) Q(0) Sin D Q D Q D Q D Q Clock Enable

Shift Register with Parallel Load: internal structure Sin D Q D Q D Q D Q Clock Enable Q(3) Q(2) Q(1) Q(0)

Synchronous Up Counter enable load carry D0 Q0 D1 Q1 D2 Q2 D3 Q3 clock Enable (synchronous): when high enables the counter, when low counter holds its value Load (synchronous) : when load = 1, load the desired value into the counter Output carry: indicates when the counter “rolls over” D3 downto D0, Q3 downto Q0 is how to interpret MSB to LSB

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 2m 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 RAM DIN DOUT n n ADDR m WE CLK

Dual-Port RAM RAM Two sets of input ports {DINA, ADDRA, WEA} {DINB, ADDRB, WEB} Two corresponding outputs DOUTA DOUTB One memory matrix 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) RAM DINA DOUTA n n ADDRA m WEA DINB DOUTB n n ADDRB m WEB CLK