KU College of Engineering Elec 204: Digital Systems Design

Slides:



Advertisements
Similar presentations
Processor Data Path and Control Diana Palsetia UPenn
Advertisements

Logic Gates Flip-Flops Registers Adders
©2004 Brooks/Cole FIGURES FOR CHAPTER 12 REGISTERS AND COUNTERS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
EKT 221 : Digital 2 MUX-based Transfer
Computer Architecture CS 215
CPEN Digital System Design
Digital System Design Using Verilog
Princess Sumaya University
Propagation Delay: capacitances introduce delay
REGISTER TRANSFER LANGUAGE (RTL)
Chapter 4 Register Transfer and Microoperations
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Chapter 7 Henry Hexmoor Registers and RTL
1 Register Transfer &  -operations Computer Organization Computer Architectures Lab REGISTER TRANSFER AND MICROOPERATIONS Register Transfer Language Register.
8085 processor. Bus system in microprocessor.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
Chapter 7. Register Transfer and Computer Operations
Logic and Computer Design Fundamentals Registers and Counters
CPEN Digital System Design Chapter 9 – Computer Design
Chapter 7 - Part 2 1 CPEN Digital System Design Chapter 7 – Registers and Register Transfers Part 2 – Counters, Register Cells, Buses, & Serial Operations.
Logic and Computer Design Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
Chapter 7 – Registers and Register Transfers Part 1 – Registers, Microoperations and Implementations Logic and Computer Design Fundamentals.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Chapter 4 Register Transfer and Microoperations
Computer System Configuration and Function Computer Architecture and Design Lecture 6.
Digital 2 : EKT 221. Today’s Outline RTL Arithmetic Operations Conditional Register Transfer RTL Logical Operations RTL Shift Operations.
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part2.
Chapter 4 Register Transfer and Micro -operations
DIGITAL 2 : EKT 221. Today’s Outline Register Transfer Clock Gating Load Control Feedback Register Transfer Language Type of Registers Basic Symbols Mathematical.
REGISTER TRANSFER AND MICROOPERATIONS
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
EKT221 ELECTRONICS DIGITAL II CHAPTER 4: Computer Design Basics
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
Chapter 4 Computer Design Basics. Chapter Overview Part 1 – Datapaths  Introduction  Datapath Example  Arithmetic Logic Unit (ALU)  Shifter  Datapath.
Register and Register Transfers
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use ECE/CS 352: Digital Systems.
EKT 221 : Chapter 4 Computer Design Basics
1 Outline Bus Transfer Memory Transfer Microoperations.
1 Chapter 7 Henry Hexmoor Registers and RTL. REGISTER TRANSFER AND MICROOPERATIONS Register Transfer Language Register Transfer Bus and Memory Transfers.
Register Transfer Languages (RTL)
Chapter 4 Register Transfer and Microoperations Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010.
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 23 Introduction Computer Specification –Instruction Set Architecture (ISA) - the specification.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
1 Register Transfer and Microoperations Acknowledgment: Most of the slides are adapted from Prof. Hyunsoo Yoon’s slides.
1 REGISTER TRANSFER & MICROOPERATIONS. 2 OUTLINES Register Transfer Language Register Transfer Bus and Memory Transfers Arithmetic Microoperations Logic.
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER TRANSFER LANGUAGE (RTL)
Overview Register Transfer Language Register Transfer
REGISTER TRANSFER AND MICROOPERATIONS
Chapter 4 Register Transfer and Microoperations
Chap 7. Register Transfers and Datapaths
KU College of Engineering Elec 204: Digital Systems Design
Chapter 7 – Registers and Register Transfers
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
Register Transfer and Microoperations
REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT
Computer Organization and Design
Control Unit.
REGISTER TRANSFER LANGUAGE
Computer Architecture and Design Lecture 6
Chapter 1_5 register Cell Design
Overview Part 1 - Registers, Microoperations and Implementations
Overview Part 1 - Registers, Microoperations and Implementations
KU College of Engineering Elec 204: Digital Systems Design
CHAPTER-3 REGISTER TRANSFER LANGUAGE AND MICROOPERATIONS
Presentation transcript:

KU College of Engineering Elec 204: Digital Systems Design Registers Register – a collection of binary storage elements In theory, a register is sequential logic which can be defined by a state table More often think of a register as storing a vector of binary values Frequently used to perform simple data storage and data movement and processing operations KU College of Engineering Elec 204: Digital Systems Design

Example: 2-bit Register How many states are there? How many input combinations? Output combinations What is the output function? What is the next state function? Moore or Mealy? What are the the quantities above for an n-bit register? C D Q CP In0 In1 A1 A0 Y1 Y0 Current State A1 A0 Next State A1(t+ 1 ) A0(t+ ) For I1 I0 = 00 01 10 11 Output (=A1 A0) Y1 Y0 0 0 0 1 1 0 1 1 States: 22 = 4 Input Combinations: 22 = 4 Output Combinations: 22 = 4 Y = A A(t+1) = IN Moore States = 2n Input Combinations = 2n Output Combinations = 2n KU College of Engineering Elec 204: Digital Systems Design

Register Design Models Due to the large numbers of states and input combinations as n becomes large, the state diagram/state table model is not feasible! What are methods we can use to design registers? Add predefined combinational circuits to registers Example: To count up, connect the register flip-flops to an incrementer Design individual cells using the state diagram/state table model and combine them into a register A 1-bit cell has just two states Output is usually the state variable KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Register Storage Expectations: A register can store information for multiple clock cycles To “store” or “load” information should be controlled by a signal Reality: A D flip-flop register loads information on every clock cycle Realizing expectations: Use a signal to block the clock to the register, Use a signal to control feedback of the output of the register back to its inputs, or Use other SR or JK flip-flops which for (0,0) applied store their state Load is a frequent name for the signal that controls register storage and loading Load = 1: Load the values on the data inputs Load = 0: Store the values in the register KU College of Engineering Elec 204: Digital Systems Design

Registers with Clock Gating Load signal is used to enable the clock signal to pass through if 1 and prevent the clock signal from passing through if 0. Example: For Positive Edge-Triggered or Negative Pulse Master-Slave Flip-flop: What logic is needed for gating? What is the problem? Clock Load Gated Clock to FF Gated Clock = Clock + Load Clock Skew of gated clocks with respect to clock or each other KU College of Engineering Elec 204: Digital Systems Design

Registers with Load-Controlled Feedback A more reliable way to selectively load a register: Run the clock continuously, and Selectively use a load control to change the register contents. Example: 2-bit register with Load Control: For Load = 0, loads register contents (hold current values) For Load = 1, loads input values (load new values) Hardware more complex than clock gating, but free of timing problems 2-to-1 Multiplexers A1 Y1 D Q Load In1 C A0 D Q Y0 C In0 Clock KU College of Engineering Elec 204: Digital Systems Design

Register Transfer Operations Register Transfer Operations – The movement and processing of data stored in registers Three basic components: set of registers operations control of operations Elementary Operations -- load, count, shift, add, bitwise "OR", etc. Elementary operations called microoperations KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Register Notation R 7 6 5 4 3 2 1 0 15 8 7 0 15 0 PC(H) PC(L) R2 Letters and numbers – denotes a register (ex. R2, PC, IR) Parentheses ( ) – denotes a range of register bits (ex. R1(1), PC(7:0), AR(L)) Arrow () – denotes data transfer (ex. R1  R2, PC(L)  R0) Comma – separates parallel operations Brackets [ ] – Specifies a memory address (ex. R0  M[AR], R3 M[PC] ) KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Conditional Transfer R1 R2 K 1 Clock Load n K1 Transfer Occurs Here No Transfers Occur Here If (K1 =1) then (R2  R1) is shortened to K1: (R2  R1) where K1 is a control variable specifying a conditional execution of the microoperation.   KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Microoperations Logical Groupings: Transfer - move data from one set of registers to another Arithmetic - perform arithmetic on data in registers Logic - manipulate data or use bitwise logical operations Shift - shift data in registers Arithmetic operations + Addition – Subtraction * Multiplication / Division Logical operations  Logical OR  Logical AND  Logical Exclusive OR  Not KU College of Engineering Elec 204: Digital Systems Design

Example Microoperations Add the content of R1 to the content of R2 and place the result in R1. R1 R1 + R2 Multiply the content of R1 by the content of R6 and place the result in PC. PC  R1 * R6 Exclusive OR the content of R1 with the content of R2 and place the result in R1. R1  R1  R2 KU College of Engineering Elec 204: Digital Systems Design

Example Microoperations (Continued) Take the 1's Complement of the contents of R2 and place it in the PC. PC  R2 On condition K1 OR K2, the content of R1 is Logic bitwise Ored with the content of R3 and the result placed in R1. (K1 + K2): R1  R1  R3 NOTE: "+" (as in K1 + K2) and means “OR.” In R1  R1 + R3, + means “plus.” KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Control Expressions Example: X K1 : R1  R1 + R2 X K1 : R1  R1 + R2 + 1 Variable K1 enables the add or subtract operation. If X =0, then X =1 so X K1 = 1, activating the addition of R1 and R2. If X = 1, then X K1 = 1, activating the addition of R1 and the two's complement of R2 (subtract). The control expression for an operation appears to the left of the operation and is separated from it by a colon Control expressions specify the logical condition for the operation to occur Control expression values of: Logic "1" -- the operation occurs. Logic "0" -- the operation does not occur. KU College of Engineering Elec 204: Digital Systems Design

Arithmetic Microoperations Symbolic Designation Description R0 ¬ R1 + R2 Addition From Table 7-3: Note that any register may be specified for source 1, source 2, or destination. These simple microoperations operate on the whole word R0 ¬ R1 Ones Complement R0 ¬ R1 + 1 Two's Complement R0 ¬ R2 + R1 + 1 R2 minus R1 (2's Comp) R1 ¬ R1 + 1 Increment (count up) R1 ¬ R1 – 1 Decrement (count down) KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Ex: X’K1: R1  R1 + R2 X K1: R1  R1 + R2’ + 1 K1: activates operation X : picks add or subtr KU College of Engineering Elec 204: Digital Systems Design

Logical Microoperations From Table 7-4: Symbolic Description Designation R0 ¬ R1 Bitwise NOT R0 ¬ R1 Ú R2 Bitwise OR (sets bits) R0 ¬ R1 Ù R2 Bitwise AND (clears bits) R0 ¬ R1 Å R2 Bitwise EXOR (complements bits) KU College of Engineering Elec 204: Digital Systems Design

Logical Microoperations (continued) Let R1 = 10101010, and R2 = 11110000 Then after the operation, R0 becomes: KU College of Engineering Elec 204: Digital Systems Design

Shift Microoperations Symbolic Designation Description R1 ¬ sl R2 Shift Left sr R2 Shift Right From Table 7-5: Let R2 = 11001001 Then after the operation, R1 becomes: R1 Operation 10010010 ¬ sl R2 01100100 sr R2 Note: These shifts "zero fill". Sometimes a separate flip-flop is used to provide the data shifted in, or to “catch” the data shifted out. Other shifts are possible (rotates, arithmetic). KU College of Engineering Elec 204: Digital Systems Design

Register Transfer Structures Multiplexer-Based Transfers - Multiple inputs are selected by a multiplexer dedicated to the register Bus-Based Transfers - Multiple inputs are selected by a shared multiplexer driving a bus that feeds inputs to multiple registers Three-State Bus - Multiple inputs are selected by 3-state drivers with outputs connected to a bus that feeds multiple registers Other Transfer Structures - Use multiple multiplexers, multiple buses, and combinations of all the above KU College of Engineering Elec 204: Digital Systems Design

Multiplexer-Based Transfers Multiplexers connected to register inputs produce flexible transfer structures (Note: Clocks are omitted for clarity) The transfers are: K1: R0  R1 K2 K1: R0  R2 Load R0 n MUX S K 2 1 R2 R1 KU College of Engineering Elec 204: Digital Systems Design

Multiplexer and Bus-Based Transfers for Multiple Registers Multiplexer dedicated to each register Shared transfer paths for registers A shared transfer object is a called a bus (Plural: buses) Bus implementation using: multiplexers three-state nodes and drivers In most cases, the number of bits is the length of the receiving register KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Multiplexer Approach Uses an n-input multiplexer with a variety of transfer sources and functions KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Multiplexer Approach Load enable by OR of control signals K0, K1, … Kn-1 - assumes no load for 00…0 Use: Encoder + Multiplexer (shown) or n x 2 AND-OR to select sources and/or transfer functions KU College of Engineering Elec 204: Digital Systems Design

Dedicated MUX-Based Transfers L0 L1 L2 n MUX S 1 R0 Load R1 R2 Multiplexer connected to each register input produces a very flexible transfer structure => Characterize the simultaneous transfers possible with this structure. There can be three distinct registers as source, so can simultaneously do any three register transfers - totally flexible. KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Multiplexer Bus n MUX S1 S0 1 2 S0 S1 L1 L2 R0 Load R1 R2 L0 A single bus driven by a multiplexer lowers cost, but limits the available transfers => Characterize the simultaneous transfers possible with this structure. Characterize the cost savings compared to dedicated multiplexers Can have only one register as a source at a time. Thus a set of simultaneous transfers can have only one register source. Could require up to three clock cycles if three different sources needed. Costs: Dedicated 18 gate inputs per bit plus 3 shared inverters with total of 3 inputs Bus: 9 gate inputs per bit + shared decoder with 8 inputs Bus clearly less costly. KU College of Engineering Elec 204: Digital Systems Design

KU College of Engineering Elec 204: Digital Systems Design Three-State Bus n L0 L1 L2 R0 Load R1 R2 E2 E1 E0 The 3-input MUX can be replaced by a 3-state node (bus) and 3-state buffers. Cost is further reduced, but transfers are limited Characterize the simultaneous transfers possible with this structure. Characterize the cost savings and compare Other advantages? Same simultaneous transfer capability as multiplexer bus Cost: 3 gate inputs per three state driver = 9 gate inputs If decoder desired, 8 shared gate inputs. Clearly least costly. The “bus” is unique in that it is “bidirectional.” This is a significant advantage since it cuts connections between chips for bus paths to 1/2. KU College of Engineering Elec 204: Digital Systems Design