Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory.

Slides:



Advertisements
Similar presentations
Digital Logical Structures
Advertisements

Give qualifications of instructors: DAP
Computer Science 210 Computer Organization Clocks and Memory Elements.
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
CS 151 Digital Systems Design Lecture 19 Sequential Circuits: Latches.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /23/2013 Lecture 7: Computer Clock & Memory Elements Instructor: Ashraf Yaseen DEPARTMENT OF MATH &
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
Chapter 3 Digital Logic Structures. 3-2 Transistor: Building Block of Computers Microprocessors contain millions of transistors Intel Pentium 4 (2000):
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
EECC341 - Shaaban #1 Lec # 13 Winter Sequential Logic Circuits Unlike combinational logic circuits, the output of sequential logic circuits.
Allocating Space for Variables Global data section –All global variables stored here (actually all static variables) –R4 points to beginning Run-time stack.
Overview Finite State Machines - Sequential circuits with inputs and outputs State Diagrams - An abstraction tool to visualize and analyze sequential circuits.
Overview Memory definitions Random Access Memory (RAM)
1 Chapter 4 Combinational and Sequential Circuit.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Sequential Logic Flip Flops Registers Memory Timing State Machines.
Overview Recall Combinational Logic Sequential Logic Storage Devices
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Hao Ji.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Timing Sequential Logic Flip Flops Registers Memory State Machines.
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic CMOS logic elements Combinational logic elements and design.
Computer Science 210 s1 Computer Systems Semester 1 Lecture Notes James Goodman (revised by Robert Sheehan) Credits: Slides prepared by Gregory.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
Registers and Counters
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
COE 202: Digital Logic Design Sequential Circuits Part 1
Flip_Flops  Logic circuits are classified ito two groups  1. The combinational logic circuits,using the basic gates AND,OR and NOT.  2. Sequential.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Basic Logic Gates.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Combinational vs.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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.
Chapter 3 Digital Logic Structures
PART 3 Digital Logic 1.Logic Gates 2.Logic Circuits 3.Memory 4.Sequential Circuits 5.LC-3 Data Path.
Introduction to Computer Engineering CS/ECE 252, Spring 2012 Prof. Karu Sankaralingam Computer Sciences Department University of Wisconsin – Madison.
Instructor:Po-Yu Kuo 教師:郭柏佑
Introduction to Computer Engineering CS/ECE 252, Fall 2007 Prof. David A. Wood Computer Sciences Department University of Wisconsin – Madison.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
Instructor : Po-Yu Kuo 教師:郭柏佑 Ch. 3 Digital Logic Structures EL 1009 計算機概論 ( 電子一 B) Introduction to Computer Science.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Introduction to Computing Systems and Programming Digital Logic Structures.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
 Flip-flops are digital logic circuits that can be in one of two states.  Flip-flops maintain their state indefinitely until an input pulse called a.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
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 Structures. Transistor: The Digital Building Block Microprocessors contain LOTS of transistors –Intel Pentium 4 (2000): 48 million –IBM.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
ECE Fall G. Byrd1 Register A register stores a multi-bit value. We use a collection of D-latches, all controlled by a common WE. When WE=1,
Computer Science 210 Computer Organization
Instructor:Po-Yu Kuo 教師:郭柏佑
Computer Architecture & Operations I
Instructor:Po-Yu Kuo 教師:郭柏佑
Morgan Kaufmann Publishers
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Introduction to Computer Engineering
Flip Flop.
Computer Science 210 Computer Organization
Chapter 11 Sequential Circuits.
Yee-Wing Hsieh Steve Jacobs
Chapter 3 Digital Logic Structures
Computer Science 210 Computer Organization
Chapter 3 Digital Logic Structures
Instructor:Po-Yu Kuo 教師:郭柏佑
FLIP-FLOPS.
Sequential Logic.
Sequential Digital Circuits
Presentation transcript:

Overview Logic Combinational Logic Sequential Logic Storage Devices SR Flip-Flops D Flip Flops JK Flip Flops Registers Addressing Computer Memory

Logical Completeness Can implement ANY truth table with AND, OR, NOT. ABCD AND combinations that yield a "1" in the truth table. 2. OR the results of the AND gates.

Combinational vs. Sequential Combinational Circuit –always gives the same output for a given set of inputs ex: adder always generates sum and carry, regardless of previous inputs Sequential Circuit –stores information –output depends on stored information (state) plus input so a given input might produce different outputs, depending on the stored information –example: ticket counter advances when you push the button output depends on previous state –useful for building “memory” elements and “state machines”

R-S : Simple Storage Element R is used to “reset” or “clear” the element – set it to zero. S is used to “set” the element – set it to one. If both R and S are one, out could be either zero or one. –“quiescent” state -- holds its previous value –note: if a is 1, b is 0, and vice versa Out is usually called “Q”, and the other output call “ Q’ ”

Clearing the R-S Suppose we start with output = 1, then change R to zero. Output changes to zero. Then set R=1 to “store” value in quiescent state

Setting the R-S Suppose we start with output = 0, then change S to zero. Output changes to one. Then set S=1 to “store” value in quiescent state

Basic SR Flip Flop Nor Gates: Nand Gates:

Clocked SR Flip Flop

D Flip Flop (D Latch)

D-Latch Two inputs: D (data) and WE (write enable) –when WE = 1, latch is set to value of D S = NOT(D), R = D –when WE = 0, latch holds previous value S = R = 1

Trigger Flip Flop

Master Slave Flip Flop

Master-Slave D-Latch Flip flop A pair of gated D-latches, to isolate next state from current state. During 1 st phase (clock=1), previously-computed state becomes current state and is sent to the logic circuit. During 2 nd phase (clock=0), next state, computed by logic circuit, is stored in Latch A.

Positive Edge Triggered Flip Flop

JK Flip Flop

JK as a Universal Flip Flop JK as an SR – use set and pre inputs JK as a Toggle – connect J and K JK as a D – connect NOT J to K

Logic Spec Sheets Texas Instruments: UW:

Register A register stores a multi-bit value. –We use a collection of D-latches, all controlled by a common WE. –When WE=1, n-bit value D is written to register.

Recall: Representing Multi-bit Values Number bits from right (0) to left (n-1) –just a convention -- could be left to right, but must be consistent Use brackets to denote range: D[l:r] denotes bit l to bit r, from left to right May also see A, especially in hardware block diagrams. A = A[2:0] = 101 A[14:9] =

Memory Now that we know how to store bits, we can build a memory – a logical k × m array of stored bits. k = 2 n locations m bits Address Space: number of locations (usually a power of 2) Addressability: (Word Length) number of bits per location (e.g., byte-addressable)

1K X 4 SRAM (Part Number 2114N)

Memory Design – 1K x 4 A[00:09]   D[03:00] Addr Block Select 

Memory Design – 1K x 8 A[00:09]    D[07:04] A[00:09]    D[03:00] Addr Block Select => D[07:04] D[03:00]

Memory Design - 2k x 8 D[07:04] D[03:00] Block 00 Block 01

Memory Design - 4k x 8 D[07:04] D[03:00] Block 00 Block 01 Block 10 Block 11

2 2 x 3 Memory address decoder word selectword WE address write enable input bits output bits

More Memory Details Two basic kinds of RAM (Random Access Memory) Static RAM (SRAM) –fast, maintains data as long as power applied Dynamic RAM (DRAM) –slower but denser, bit storage decays – must be periodically refreshed Also, non-volatile memories: ROM, PROM, flash, …