COMP2611: Computer Organization. Introduction to Digital Logic

Similar documents
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

LATCHES & FLIP-FLOP. Chapter 7

Where Are We Now? e.g., ADD $S0 $S1 $S2?? Computed by digital circuit. CSCI 402: Computer Architectures. Some basics of Logic Design (Appendix B)

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

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Sequential Logic Notes

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

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

Combinational vs Sequential

CHAPTER 4: Logic Circuits

CS 261 Fall Mike Lam, Professor. Sequential Circuits

A clock is a free-running signal with a cycle time. A clock may be either high or low, and alternates between the two states.

CHAPTER 4: Logic Circuits

Logic. Andrew Mark Allen March 4, 2012

ELCT201: DIGITAL LOGIC DESIGN

Lecture 8: Sequential Logic

Unit 11. Latches and Flip-Flops

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

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

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

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

Computer Systems Architecture

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Chapter 5 Sequential Circuits

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

Chapter 8 Sequential Circuits

Last time, we saw how latches can be used as memory in a circuit

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Slide Set 7. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

TEST-3 (DIGITAL ELECTRONICS)-(EECTRONIC)

Experiment 8 Introduction to Latches and Flip-Flops and registers

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

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

Clocks. Sequential Logic. A clock is a free-running signal with a cycle time.

ELCT201: DIGITAL LOGIC DESIGN

Engr354: Digital Logic Circuits

CS 61C: Great Ideas in Computer Architecture

Flip-Flops and Sequential Circuit Design

Contents Circuits... 1

The word digital implies information in computers is represented by variables that take a limited number of discrete values.

1. Convert the decimal number to binary, octal, and hexadecimal.

MC9211 Computer Organization

EKT 121/4 ELEKTRONIK DIGIT 1

Sequential Logic and Clocked Circuits

DIGITAL CIRCUIT COMBINATORIAL LOGIC

Logic Design. Flip Flops, Registers and Counters

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

MODULE 3. Combinational & Sequential logic

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

Sequential Logic. Analysis and Synthesis. Joseph Cavahagh Santa Clara University. r & Francis. TaylonSi Francis Group. , Boca.Raton London New York \

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

Introduction to Sequential Circuits

Chapter. Synchronous Sequential Circuits

Chapter 4. Logic Design

Microprocessor Design

Logic Design ( Part 3) Sequential Logic (Chapter 3)

COMP2611: Computer Organization Building Sequential Logics with Logisim

11. Sequential Elements

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

CS3350B Computer Architecture Winter 2015

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

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

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

Sequential Circuit Design: Part 1

Combinational / Sequential Logic

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

EKT 121/4 ELEKTRONIK DIGIT 1

Introduction to Microprocessor & Digital Logic

CPSC 121: Models of Computation Lab #5: Flip-Flops and Frequency Division

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

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

WINTER 15 EXAMINATION Model Answer

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

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

COE328 Course Outline. Fall 2007

Sequential Logic. Introduction to Computer Yung-Yu Chuang

CS8803: Advanced Digital Design for Embedded Hardware

AIM: To study and verify the truth table of logic gates

Sequential Circuit Design: Part 1

WINTER 14 EXAMINATION

Spring 2017 EE 3613: Computer Organization Chapter 5: The Processor: Datapath & Control - 1

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

EE292: Fundamentals of ECE

D Latch (Transparent Latch)

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

COMP12111: Fundamentals of Computer Engineering

EXPERIMENT #6 DIGITAL BASICS

Principles of Computer Architecture. Appendix A: Digital Logic

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

Using minterms, m-notation / decimal notation Sum = Cout = Using maxterms, M-notation Sum = Cout =

Sequential Circuits: Latches & Flip-Flops

Logic Design II (17.342) Spring Lecture Outline

Asynchronous (Ripple) Counters

CPS311 Lecture: Sequential Circuits

DIGITAL ELECTRONICS MCQs

Midterm Examination II

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Transcription:

1 COMP2611: Computer Organization Sequential Logic

Time 2 Till now, we have essentially ignored the issue of time. We assume digital circuits: Perform their computations instantaneously Stateless: once you present a new input, they forget everything about previous inputs In reality, time is an important issue: Logic gate induces a small amount of delay (on the order of a few nanoseconds) We want our circuit to have some form of memory Logisim

Clocks 3 A microprocessor is composed of many different circuits that are operating simultaneously if each circuit X takes in inputs at time T in, takes time T exe to execute the logic, and produces outputs at time T out, imagine the complications in coordinating the tasks of every circuit Solution: all circuits on the chip share a clock signal (a square wave) that tells every circuit when to accept inputs, how much time they have to execute the logic, and when they must produce outputs

Clock Terminology 4 A clock is a free-running signal with a fixed cycle time (called clock period) or, equivalently, a fixed clock frequency (i.e., inverse of the cycle time). Edge-triggered clocking: Design methodology for sequential logic circuits in which all state changes occur on a clock edge (rising edge or falling edge). Falling edge Clock period Rising edge Example 4 GHZ = clock speed = 1 = 1 cycle time 250 ps

Sequential Logic Circuits 5 Clocked systems are also called synchronous systems. Sequential logic circuits are circuits whose output depends on both the current input and the value stored in the memory of the circuit (called state) Sequential logic circuits often depend on a clock to determine when the memory or state element of the circuit is updated. COMP2611 Spring

Sequential Circuit Features 6 Consists of combinational circuit and a storage elements The rising/falling edge causes the state storage to store some updated values This state will not change for an entire cycle (until next rising/falling edge) The combinational circuit has some time to accept the value of state and inputs and produce outputs Some of the outputs (i.e. the value of the next state ) may feed back and they re only seen in the next cycle Example: counter, register COMP2611 Spring 2014

S-R Latch 7 S-R latches (set-reset latches): Unclocked memory element built from a pair of cross-coupled NOR gates (i.e., OR gates with inverted outputs). R S Q _ Q Inputs Outputs R S Q Not Q 0 0 Latch 1 0 0 1 0 1 1 0 1 1 Invalid Input Operation: When Set is asserted (high), a 1 is stored When Reset is asserted, a 0 is stored When both are de-asserted (low), the previous state is preserved When both are high, the output is unstable,- this set of input is therefore not allowed

D Latch 8 D latches are clocked (i.e., state changes are triggered by a clock). Operation: the value of the input D signal (data) is stored only when the clock signal C is asserted the previous state is preserved when the clock is deasserted. C D Q _ Q Inputs Outputs C D Q Not Q 0 0 Latch 0 1 Latch 1 0 0 1 1 1 1 0

Timing Diagram 9 Digital timing diagram A representation of a set of signals in the time domain Can contain many rows, usually one of them being the clock Example: timing diagram of D latch

D Flip-Flop 10 D flip-flops, like D latches, are clocked. Terminology: Latch: outputs can change any time the clock is asserted (high) Flip-flop: outputs can change only on a clock edge Falling-edge-triggered master-slave D flip-flop: Operation: When the clock input C changes from asserted to de-asserted, the Q output stores the value of the D input. D C Q Value Changed to D

Flip-Flops and Memory elements 11 D-Latches and flip-flops can be used to build memory elements used by digital computers to hold data temporarily. register file is a structure in the datapath consisting of a set of registers that can be read and written by supplying a register number to be accessed. These represent the hardware variables Static random access memories (SRAMs): relatively small memories used for cache and built with flip-flops Block diagram of RAM chip

Example: a 4 x 2 SRAM 12 Operation Stores 4 words of data each word has 2 bits Reads the content of one word at a time by supplying its address on 2 bits (i.e., word 00, or 01, or 10, or 11) Write data to one word by supplying 2 bits of Data and the 2-bit address of the word to be written D i n [ 1 ] 11 D i n [ 0 ] W r i t e e n a b l e 1 0 2 - t o - 4 d e c o d e r 1 A d d r e s s 01 2 3 D o u t [ 1 ] D o u t [ 0 ]

Summary 13 Computers use two reference levels of voltage to represent data as binary digits Boolean Algebra to express any operation on bits as a logic equation or a equivalently a truth table Three basic operations: AND, OR, and NOT Basic rules of Boolean Algebra The transistor (an electronic switch) is the basis for building logic gates Logic Gates are basic building blocks of more complex logic circuits

Summary 14 Two types of logic circuits: Combinational circuits: process the inputs to produce the output Multiplexers Decoders Arithmetic and logic operations Sequential circuits: process the input and the state element (memory) of the circuit to produce the output Memory, registers Not possible to access (read) and update (write) the state element simultaneously, therefore a clock is necessary to control when operations are done Edge-triggered clocks are more efficient and more accurate, than level-based clocks Latches, Flip-flops