Sequential Logic.

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

Chapter 5 Internal Memory
5-1 Memory System. Logical Memory Map. Each location size is one byte (Byte Addressable) Logical Memory Map. Each location size is one byte (Byte Addressable)
1 Introduction Sequential circuit –Output depends not just on present inputs (as in combinational circuit), but on past sequence of inputs Stores bits,
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
Sequential Logic Computer Organization Ellen Walker Hiram College Figures from Computer Organization and Design 3ed, D.A. Patterson & J.L. Hennessey, Morgan.
Digital Logic Circuits (Part 2) Computer Architecture Computer Architecture.
Lecture 22: Sequential Circuits Today’s topic –Clocks and sequential circuits –Finite state machines 1.
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
1 The Basic Memory Element - The Flip-Flop Up until know we have looked upon memory elements as black boxes. The basic memory element is called the flip-flop.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Sequential Circuits.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Sequential Logic Flip Flops Registers Memory Timing State Machines.
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
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
Fall 2007 L16: Memory Elements LECTURE 16: Clocks Sequential circuit design The basic memory element: a latch Flip Flops.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Sequential Logic. Logic Styles Combinational circuits – Output determined solely by inputs – Can draw solely with left-to-right signal paths.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Computer Organization & Programming Chapter 5 Synchronous Components.
Chapter 3 Digital Logic Structures. 3-2 Combinational vs. Sequential Combinational Circuit always gives the same output for a given set of inputs  ex:
SEQUENTIAL LOGIC By Tom Fitch. Types of Circuits Combinational: Gates Combinational: Gates Sequential: Flip-Flops Sequential: Flip-Flops.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /3/2013 Lecture 9: Memory Unit Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER SCIENCE CENTRAL.
Feb. 26, 2001Systems Architecture I1 Systems Architecture I (CS ) Lecture 12: State Elements, Registers, and Memory * Jeremy R. Johnson Mon. Feb.
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.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
July 2, 2001Systems Architecture I1 Systems Architecture II (CS 282) Lab 3: State Elements, Registers, and Memory * Jeremy R. Johnson Monday July 2, 2001.
Sequential Logic Flip-Flop Circuits By Dylan Smeder.
Latches, Flip Flops, and Memory ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison.
DIGITAL LOGIC CIRCUITS 조수경 DIGITAL LOGIC CIRCUITS.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Appendix C Basics of Logic Design. Appendix C — Logic Basic — 2 Logic Design Basics §4.2 Logic Design Conventions Objective: To understand how to build.
Sequential Logic Design
Computer Science 210 Computer Organization
Digital Design - Sequential Logic Design
Computer Architecture & Operations I
Computer Architecture & Operations I
Memories.
Class Exercise 1B.
LATCHED, FLIP-FLOPS,AND TIMERS
Digital Logic & Design Dr. Waseem Ikram Lecture 39.
Clocks A clock is a free-running signal with a cycle time.
Computer Architecture & Operations I
Morgan Kaufmann Publishers
Clock in Digital Systems
Flip Flops.
Appendix B The Basics of Logic Design
Basics of digital systems
Overview Introduction Logic Gates Flip Flops Registers Counters
Flip Flops.
Computer Science 210 Computer Organization
Computer Architecture & Operations I
Introduction to Sequential Logic Design
Chapter 11 Sequential Circuits.
Latches and Flip-flops
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential Circuits: Latches
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
Computer Science 210 Computer Organization
Elec 2607 Digital Switching Circuits
COE 202: Digital Logic Design Sequential Circuits Part 4
Digital Logic & Design Dr. Waseem Ikram Lecture 40.
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Sequential Circuits: Latches
Reference: Chapter 5 Sequential Circuits Moris Mano 4th Ediditon
Systems Architecture I
Levels in Processor Design
Presentation transcript:

Sequential Logic

AB Circuit Need to consider hidden input: A B Last Out Out 1 x 1 x Need to consider hidden input: x = don’t care : 0/1

Logic Styles Combinational circuits Output determined solely by inputs Can draw solely with left-to-right signal paths

Logic Styles Sequential circuits Output determined by inputs AND previous outputs Feedback loop

AB Circuit If A = 1 output must be 1 A B O 1

AB Circuit If A = 0 and B = 1 output must be 0 A B O 1

AB Circuit If A = 0 and B = 0 output may be 1 or 0 A B O 0/1?? 1

AB Circuit Describe next output Ot+1 in terms of current output Ot A B Ot 1

SR Circuit Set Reset circuit Q : Output state Q' : Opposite of output Qt+1 Qt 1 illegal

Clocks and Triggers

State Elements State elements Memory to preserve state until next clock tick

Clocks Crystal Oscillators Vibrate at known frequency when current applied Used to generate clock signal:

Clocks Timing can be Level-triggered : change can happen when clock high Edge-triggered : change can happen on edge

Logisim Clock Clock alternates between high and low Push to cycle Or turn it on

Level Triggered Level triggered elements change on high clock

D Latch D Latch : Stores single bit of Data Level triggered D : 1 sets S 1 D : 0 sets R 1 D Qt+1 1

Edge Triggered Edge triggered change on rising or falling edge

D Flip Flop D Flip Flop : Stores single bit of Data Edge triggered D Qt+1 1

Memory Systems

Memory's Atom Basic building block of processor memory Registers Static RAM (SRAM)

Registers Register : Write requires clock and write signal

Registers Register Array of D Flip Flops Shared Write Enable bit

Register File Register file Hardware for all registers Supports Read Up to two registers Write One register at a time

Register Read Four registers Two bits to select One mux for each read select

Register Write Write needs: Register to modify Data to store Write enable signal

RAM RAM Memory 2 bits wide

RAM Decoder to select active memory address

RAM Implemented

Memory's Atom DRAM – (Memory sticks) Dynamic RAM Capacitor based Slower Smaller/Cheaper

Scaling Up 4-MB memory from 8 4-Mbit modules 22 bit address 12 bits to pick 4096 rows of memory 10 bits to pick 1 of 1024 columns from module

Counting & Control

Counting Binary count 0000 0001 0010 0011 0100 0101 … 0000 0001 0010 0011 0100 0101 … Green Flips every step When green flips to 0, flip yellow When yellow flips to 0, flip orange

Counter Counter : count ticks in binary Bit N turning off is clock signal for Bit N+1 Q’ wired to each bit’s D – Inverts each clock tick

Timer Binary clock into decoder = timing signals