Digital Logic Circuits (Part 2) Computer Architecture Computer Architecture.

Slides:



Advertisements
Similar presentations
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Advertisements

Introduction to Sequential Logic Design Latches. 2 Terminology A bistable memory device is the generic term for the elements we are studying. Latches.
Sequential Digital Circuits Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
1 Lecture 14 Memory storage elements  Latches  Flip-flops State Diagrams.
Flip-Flops Computer Organization I 1 June 2010 © McQuain, Feng & Ribbens A clock is a free-running signal with a cycle time. A clock may be.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
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.
Digital Logic Chapter 5 Presented by Prof Tim Johnson
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Fall 2004EE 3563 Digital Systems Design EE 3563 Sequential Logic Design Principles  A sequential logic circuit is one whose outputs depend not only on.
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
EET 1131 Unit 10 Flip-Flops and Registers
Lecture 22: Sequential Circuits Today’s topic –Clocks and sequential circuits –Finite state machines 1.
Digital Logic Design Brief introduction to Sequential Circuits and Latches.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
1 Lecture 28 Timing Analysis. 2 Overview °Circuits do not respond instantaneously to input changes °Predictable delay in transferring inputs to outputs.
Sequential Logic Flip-Flops and Related Devices Dr. Rebhi S. Baraka Logic Design (CSCI 2301) Department of Computer Science Faculty.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
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.
11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
CS 151 Digital Systems Design Lecture 28 Timing Analysis.
Electronic Counters.
Test #2 Combinational Circuits – MUX Sequential Circuits – Latches – Flip-flops – Clocked Sequential Circuits – Registers/Shift Register – Counters – Memory.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
COE 202: Digital Logic Design Sequential Circuits Part 1
Basic Sequential Components CT101 – Computing Systems Organization.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Company LOGO DKT 122/3 DIGITAL SYSTEM 1 WEEK #12 LATCHES & FLIP-FLOPS.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Sequential Logic Combinatorial components: the output values are computed only from their present input values. Sequential components: their output values.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Computer Organization & Programming Chapter 5 Synchronous Components.
Hamming Code,Decoders and D,T-flip flops Prof. Sin-Min Lee Department of Computer Science.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
CEC 220 Digital Circuit Design Latches and Flip-Flops Monday, March 03 CEC 220 Digital Circuit Design Slide 1 of 19.
Sequential Logic Computer Organization II 1 © McQuain A clock is a free-running signal with a cycle time. A clock may be either high or.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
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.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 22 Memory Definitions Memory ─ A collection of storage cells together with the necessary.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
COMBINATIONAL AND SEQUENTIAL CIRCUITS Guided By: Prof. P. B. Swadas Prepared By: BIRLA VISHVAKARMA MAHAVDYALAYA.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
7. Latches and Flip-Flops Digital Computer Logic.
Sequential Logic Design
Computer Science 210 Computer Organization
Computer Architecture & Operations I
Class Exercise 1B.
Clocks A clock is a free-running signal with a cycle time.
Computer Organization
ECE 3130 – Digital Electronics and Design
ECE 4110–5110 Digital System Design
Overview Introduction Logic Gates Flip Flops Registers Counters
Computer Science 210 Computer Organization
Latches and Flip-flops
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CPE/EE 422/522 Advanced Logic Design L02
Boolean Algebra and Digital Logic
Computer Science 210 Computer Organization
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Lecture 16 Logistics Last lecture Today HW5 out, due next wednesday
Sequential Logic.
Sequential Digital Circuits
Presentation transcript:

Digital Logic Circuits (Part 2) Computer Architecture Computer Architecture

Implementing DeMux in MultiSIM MultiSIM does not include a classical DeMux –It includes a generic decoder ( DCD_2TO4, DCD_3TO8, and DCD_4TO16 ) that can be adapted to operate as a DEMUX as shown below: Basically need to invert the input and the outputs to/from DCD_2TO4

Timing Gates take time to work –Outputs don’t stabilize for some time Stabilization time is usually in nanoseconds Gate delays compound in circuits –Final output is not ready until all gates are stable Propagation delay –Time taken for changes at the input to propagate to output –Typically, the longest path from input to output This is often called the “critical path” in a circuit

Example A B AB C D CD ABCD 2ns Total delay = 4ns

Timing Diagrams Illustrate change in inputs & outputs in a circuit with respect to time –In the form of a graph Time on X-axis Selected inputs / outputs on the Y-axis

Timing Diagram Example A B AB C ABC 2ns 4ns6ns8ns A B C A.B.C A.B

Mind Bender What is the output from this circuit when –Input C transitions from 1→0 –Input C transitions from 0→1 2ns 1ns C This is an Edge detection logic circuit

Clocks Delays require careful timing Otherwise results will be incorrect or garbled –Particularly when multiple inputs are to be processed I/O is synchronized using a Clock –Clock is a alternating sequence of 1 and 0 With a given periodicity or frequency –Frequency = 1/Period Frequency is determined by the gate delays and circuit complexity 1 0

Clock Example Clocked I/O –Minimum clock period = 4ns –Maximum Frequency = 1/4ns = 250 MHz A 2ns Clock B 2ns ABC 4 ns

Triggering Clocks transitions are used in different ways –Level triggering When clock is in a given state –Edge triggering Raising edge triggered –When the clock is in transition from 0 → 1 Falling edge triggered –When the clock is in transition from 1 → 0 Rising edge Falling edge Clock

Latches Latches maintain state –Can be set to a specific value –Output of latches does not change even after Inputs change to 0! Fundamental units for storage –Building blocks for memory Latches always store data when the clock is at a fixed level –Hence they are also called as level triggered device

Set-Reset (SR) Latch S Q R Q Unstable No change00 QRS

Clocked S-R Latch Latch stores (or changes) value only when clock is high –Clock must be at logic level 1 to store data in the latch. –Data can be read at any time S Q R Q Clock / Enable

D-Latch Advantages over S-R Latch –Single input to store 1 or 0 –Avoid spurious input of S=1 and R=1 D Q Q Clock / Enable

D-Flip Flop An edge triggered D-Latch is a D-Flip Flop D Q Q Clock Stores data only on raising edge –Changes at input at other times is ignored Suitable clock frequency permits data to be stored only after inputs have settled Data can be read at any time!

Abstract Representations D Q CK D Q D Q D Q D-Latch (Positive Level Triggered) D-Latch (Negative Level Triggered) D-Flip Flop (Rising Edge Triggered) D-Flip Flop (Falling Edge Triggered)

Representations in MultiSIM Positive Edge Triggered D-Latch. Clock must be tied to EN input. Positive Edge Triggered D-Flip Flop. Clock input is labeled CLK.

Asserted: Terminology Flip Flops use positive or negative logic –Same concept applies to other devices –In order to ease discussion the term “asserted” is used Positive logic –A “1” triggers the working of the device Negative logic –A “0” triggers the working of the device

Involve one or more memory elements –Output depends on value in memory element Typically based on earlier computations or history –Opposite of combinatory logic circuits –Also known as Combinatorial logic circuits –Circuits we have been dealing with so far Does not include a memory element Outputs depend purely on primary inputs Sequential Logic Circuits

Typical Sequential Circuits Clocks control timings –Ensure values are not stored when they are transient Have to wait for the signals to stabilize –State elements store values between computations Memory Elements Combinational Logic Memory Elements Combinational Logic

Circuit to read a Bit D Q CK Given 4 Flip Flops, develop a logic circuit to select and read a given Flip Flop. D Q CK D Q D Q Output Select Lines 4 X 1 Multiplexer

Circuit to write a Bit D Q CK Given 4 Flip Flops, develop a logic circuit to select and change data in a given Flip Flop. D Q CK D Q D Q Select Lines Input 1X4 De- Mux Clock to trigger one of the D FFs to store the input bit

Word A fixed number of D-Flip Flops –Usually powers of 2 (2, 4, 8, 16, 32, 64) –Operate as a single unit Store/Read n-bits at a time D Q CK D Q D Q D Q D0D1D2D3 Q3 Q2Q1 Q0

Reading & Writing Words A fixed number of D-Flip Flops I1 I2 I3 DFF Mux #1Mux #2Mux #3 O1 O2 O3 S0 DeMux CLK RD (1=Read, O=Write)

Random Access Memory (RAM) RAM is the common form of main memory that is used to store data and programs in modern computers. –It is typically designed as a collection of flip flops as shown in the previous slide However fabrication technology is different to reduce cost and improve transistor densities –Terminology: Lines that carry input or output data are referred to as data lines or data bus The select lines associated with the Mux and DeMux are called the address bus –The selection data is called address –In programming terminology it is called a pointer or a reference.