Sequential circuits part 2: implementation, analysis & design All illustrations  2009-2010, Jones & Bartlett Publishers LLC, (www.jbpub.com)

Slides:



Advertisements
Similar presentations
Chapter 5 Internal Memory
Advertisements

Computer Organization and Architecture
Sequential circuits Part 1: flip flops All illustrations  , Jones & Bartlett Publishers LLC, (
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Circuits require memory to store intermediate data
Overview Memory definitions Random Access Memory (RAM)
MEMORY DEVICES Week 13.
Registers –Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
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
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Chapter 5 Internal Memory
Memory Devices Wen-Hung Liao, Ph.D..
Revision Mid 2 Prof. Sin-Min Lee Department of Computer Science.
Memory Key component of a computer system is its memory system to store programs and data. ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides12.ppt.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
MEMORY.
Logic Device and Memory. Tri-state Devices Tri-state logic devices have three states: logic 1, logic 0, and high impedance. A tri-state device has three.
Digital Logic Design CHAPTER 5 Sequential Logic. 2 Sequential Circuits Combinational circuits – The outputs are entirely dependent on the current inputs.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Lecture 10 Topics: Sequential circuits Basic concepts Clocks
EKT 221 Digital Electronics II
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
Memory Hierarchy.
Digital Computer Design Fundamental
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
COE 202: Digital Logic Design Sequential Circuits Part 1
INSTRUCTION PIPELINING. What is pipelining? The greater performance of the cpu is achieved by instruction pipelining microprocesor has two blocks.
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
EKT 221 : Digital 2 Memory Basics
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Chap 4. Sequential Circuits
Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
Lecture 30 Read Only Memory (ROM)
Memory and Storage Dr. Rebhi S. Baraka
Digital Design: Principles and Practices
Digital Logic Design Instructor: Kasım Sinan YILDIRIM
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 Memory Design EE 208 – Logic Design Chapter 7 Sohaib Majzoub.
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Memory and Register. Memory terminology read/write operation volotile/non volatile determine the capacity from input and output timing requirements of.
Chapter 3 Digital Logic Structures. 3-2 Combinational vs. Sequential Combinational Circuit always gives the same output for a given set of inputs  ex:
Department of Computer and IT Engineering University of Kurdistan Computer Architecture (Review of Digital Design) By: Dr. Alireza Abdollahpouri.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 22 Memory Definitions Memory ─ A collection of storage cells together with the necessary.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Latches, Flip Flops, and Memory ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison.
DIGITAL SYSTEMS Read Only– and Random Access Memory ( ROM – RAM) Rudolf Tracht and A.J. Han Vinck.
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #3 Flip-Flops, Registers, Shift registers, Counters, Memory 3/3/2005.
Memory and Programmable Logic
Chapter #6: Sequential Logic Design
Digital Logic & Design Dr. Waseem Ikram Lecture 39.
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Electronics Technology
ECE 434 Advanced Digital System L03
Chapter 11 Sequential Circuits.
Interfacing Memory Interfacing.
CPE/EE 422/522 Advanced Logic Design L02
Subject Name: Embedded system Design Subject Code: 10EC74
William Stallings Computer Organization and Architecture 7th Edition
part 2: implementation, analysis & design
FLIP-FLOPS.
Digital Electronics and Logic Design
Presentation transcript:

Sequential circuits part 2: implementation, analysis & design All illustrations  , Jones & Bartlett Publishers LLC, (

More summer fashion SR is one of 4 basic flip flops common in computer design Others can all be constructed from SR; they are: – JK (don’t know why it’s called that) – D (data) – T (toggle)

JK flip flop Resolves undefined transition in SR – J input acts like S (sets device) – K acts like R (resets) When JK = 11, have toggle condition: switch from one state to other

Implementation of JK flip flop

JK flip flop implementation If JK = 00, SR = 00 because of AND – so SR won’t change state when clocked

JK flip flop implementation If JK = 10, R must be 0: – if Q=0, Q’=1, so SR=10, the set condition: flip flop will change state (to Q=1) – if Q=1, Q’=0, SR=00 (stable condition) so flip flop stays in Q=1

JK flip flop implementation If JK = 01, final state is Q=0 (analogous to JK=10)

JK flip flop implementation If JK=11, Q connects directly to R, Q’ to S – so if Q=0, SR=10, so Q=1 – if Q=1, SR=01, so Q=0

D flip flop D: data; one input + CP – Q(t+1) independent of Q(t) – depends only on value of D at time t – D flip flop holds data until next pulse

Constructing registers Can use D flip flops to construct individual bits of registers – one signal sent to each bit Setting/resetting flip flop requires a 1 signal on exactly one of its input lines – CP restricts incoming signal to appropriate time so device remains in sync D is split in 2, with one half inverted – so always 1 true, 1 false on data line Since CP usually false, both inputs normally 0 (no change in flip flop) When clock goes high, one of 2 lines (S or R) delivers 1

Device select signal Used in combination with CP & D signals to determine if register should send or receive data When one register is to send to another, 3 simultaneous signals sent to each register: – clock – device select – send or receive All 3 ANDed together to indicate that specific register should send or receive at specific time

T flip flop T stands for Toggle – like D, has one input + CP – acts like control line that specifies selective toggle – if T=0, flip flop doesn’t change; if T=1, toggles

Implementation of T flip flop Identical to JK, with J=K

General sequential network Sequential circuit: interconnection of gates & flip flops All gates can be grouped conceptually as combinational network, all flip flops as group of state registers Between clock pulses, combinational part produces output; amount of time needed depends on number of gates in net

General sequential network Arrows: one or more connecting lines I/O lines: connections to external environment Arrow between boxes: input lines to flip flops Clock line assumed but not shown

Hardware analysis vs. design Analysis: determine output given input and sequential network Design: input and output are known; need to determine makeup of sequential network General approach: – construct state transition table and transition diagram – determine output stream for given input stream

Excitation table The excitation table is a design tool for constructing circuits from a given type of flip- flop Given the desired transition from Q(t) to Q(t +1), what inputs are necessary to make the transition happen?

Characteristic table vs. Excitation table for SR flip flop Tells what next state is, given current input and current state Tells what current input must be given current state

Sequential analysis Step 1: List all possible combinations of current state and current input in an analysis table Step 2: For each combination, compute the output and the current inputs to the state registers Step 3: From the characteristic table, determine the next state and construct the state transition table and diagram

Example problem State registers: FFA & FFB (T flip flops) Combinational circuit – inputs: X1 AND B (TA) X2 OR A (TB) TA & TB are inputs to FFA & FFB – output: B’ AND X1 (Y)

Example problem 2 flip flops, so 4 possible states: AB inputs, so 4 possible input combinations: X1X

Example problem Given a state (AB) and an input (X1X2): – what is output? – what will be the state after CP? 16 possible answers, as shown on next slide

Analysis table for sample problem circuit 1 st 4 columns list possible combinations of initial state & initial input By the logic diagram, we know: – Y(t)=X1(t) AND B’(t) – TA(t)=X1(t) AND B(t) – TB(t)=X2(t) OR A(t) Compute next 3 columns given above Compute last 2 from: – characteristic table for T flip flop – initial state of flip flop – flip flop’s initial input

State transition table Table shows simple rearrangement of selected columns from table on previous slide For given initial state A(t)B(t) and input X1(t)X2(t), lists next state (A+1)(t)(B+1)(t) and initial output Y(t) States listed as ordered pairs – next state followed by initial output

State transition diagram Easier to visualize circuit behavior Transitions listed as ordered pairs of input followed by initial output, with slash separator

Asynchronous inputs An asynchronous input changes state of a flip-flop immediately without regard to CP – Preset sets Q to 1 – Clear clears Q to 0 Used to initialize the state of a machine Normal operation: both lines 0

Sequential design Given the state transition diagram, the output, and the type of flip-flop to be used, design the combinational circuit Any unused input combinations or unused states are don’t care conditions 2 n states are possible with n flip-flops

Design steps Step 1: In a design table, list the initial state, input, and output, and from the transition diagram list the next state Step 2: Use the excitation table for the given type of flip-flop to determine the input required for the state registers Step 3: Use Karnaugh maps to design a minimized two-level circuit for each flip-flop input

Sample problem

Design table for sample problem

Sequential design & K-maps Each flip flop in the problem can be considered a function of four variables: – initial state (AB) – input (X1X2) To design the combinational circuit we need a 4-variable K-map for each flip flop input

K-maps for sample problem Figures a and b below show K-maps for S & R inputs to FFA – Row values are AB, columns are X1X2 – X1X2 = 00 is a don’t care condition for both inputs, so first column of both tables is X

K-maps for sample problem Figures c and d show inputs to FFB Note that we can take advantage of don’t care conditions to minimize circuit

Resulting circuit with original spec

K-map & circuit for output Y

Another look at the register Basic building block of instruction set architecture – array of D flip flops; each is bit in register – common clock line connected to all flip flops; # of flip flops doesn’t affect speed of load operation because all receive clock signal simultaneously

Memory Conceptually, main memory is just a big array of registers Input: address lines, control lines, data lines Data lines are bidirectional (output also) Control signals: – CS: Chip select, to enable or select the memory chip – WE: Write enable, to write or store a memory word to the chip – OE: Output enable, to enable the output buffer to read a word from the chip

Memory chips Storage capacity of each is identical (512 bits); left uses 8-bit word, right uses 1 Generally, chip with 2 n words has n address lines

Memory access To store a word (memory write) – Select chip by setting CS to 1 – Put data and address on the bus and set WE to 1 To retrieve a word (memory read) – Select chip by setting CS to 1 – Put address on the bus, set OE to 1, and read the data on the bus

4 x 2 memory chip 2 address lines (A0, A1) & 2 data lines (D0, D1) Stores 4 2-bit words – each bit is D flip flop Address lines drive 2 x 4 decoder – 1 output is 1, other 3 0 – line with 1 signal selects row of D flip flops that make up word accessed by chip

Closer look Diagram below shows implementation of “Read enable” box Alphabet soup: WE: write enable CS: chip select OE: output enable MMV: monostable multivibrator (CP)

Read Enable Three normal modes: – CS=0 (chip not selected) – CS=1, WE=1, OE=0 (chip selected for write) – CS=1, WE=0, OE=1 (chip selected for read) WE & OE not permitted to be 1 at same time

Memory types: volatile SRAM: Static random access memory – most closely resembles model we’ve seen – advantage: fast – disadvantage: large – several transistors required for each bit cell DRAM: Dynamic RAM – overcomes size problem of SRAM: one transistor, one capacitor per cell – advantage: high capacity – disadvantage: relatively slow because requires refresh operation

Memory types: non-volatile ROM: Read-only memory – Simplest type, ROM, is prewritten to spec by manufacturer – can’t be overwritten – PROM: Programmable ROM: user can write once (by blowing embedded fuses) – can’t be overwritten – EPROM: Erasable PROM: can be wiped out & reprogrammed (requires removal from computer)

Memory types: non-volatile EEPROM: Electrically erasable PROM – Like EPROM, but doesn’t require removal to reprogram – Can reprogram individual cell (doesn’t have to be whole chip) Flash memory: A type of EEPROM – flash card is array of flash chips – flash drive has interface circuitry to mimic hard drive