REGISTER TRANSFER LANGUAGE

Slides:



Advertisements
Similar presentations
Register Transfer and Microoperations Part2
Advertisements

Computer Architecture CS 215
CPEN Digital System Design
KU College of Engineering Elec 204: Digital Systems Design
Propagation Delay: capacitances introduce delay
REGISTER TRANSFER LANGUAGE (RTL)
Chapter 4 Register Transfer and Microoperations
Chapter 7 Henry Hexmoor Registers and RTL
7-5 Microoperation An elementary operations performed on data stored in registers or in memory. Transfer Arithmetic Logic: perform bit manipulation on.
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.
Overview Part 1 – Datapaths Part 2 – A Simple Computer
Chapter 7. Register Transfer and Computer Operations
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #4 Register Transfer and Microoperations 23/2/2006 Chapter 4:
Logic and Computer Design Fundamentals Registers and Counters
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.
Shift Micro operations
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.
MICRO OPERATIONS Department of Computer Engineering, M.S.P.V.L. Polytechnic College, Pavoorchatram.
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
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-1 Chap. 4 Register Transfer.
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.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
REGISTER TRANSFER LANGUAGE MICROOPERATIONS. TODAY OUTLINES Logic Microoperations Shift Microoperations.
Shift Registers pp Shift Registers Capability to shift bits ♦ In one or both directions Why? ♦ Part of standard CPU instruction set ♦ Cheap.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
Micro Operation. MICROOPERATIONS Computer system microoperations are of four types: - Register transfer microoperations - Arithmetic microoperations -
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.
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
EKT 221 : Chapter 4 Computer Design Basics
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)
Lecture 5: Register Transfer & Micro-OpsOverview1.
CSC321 Homework Due Due Tuesday after spring break Turn in –Design information State diagram State table K-map simplifications and expressions for flip-flop.
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.
Bit Manipulation in 'C' 'C' bit operators
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 AND MICROOPERATIONS
Chapter 4 Register Transfer and Microoperations
Chap 7. Register Transfers and Datapaths
KU College of Engineering Elec 204: Digital Systems Design
DIGITAL 2 : EKT 221 RTL : Microoperations on a Single Register
Overview Register Transfer Language Register Transfer
Register Transfer and Microoperations
REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT
Computer Organization and Design
به نام یگانه مهندس هستی معماری کامپیوتر مهدی قدیری
Overview Part 1 – Datapaths Part 2 – A Simple Computer Introduction
Computer Architecture and Design Lecture 6
Computer Organization and Design
CSC 220: Computer Organization
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
Overview Part 1 - Registers, Microoperations and Implementations
CSC 220: Computer Organization
Overview Part 1 - Registers, Microoperations and Implementations
CHAPTER-3 REGISTER TRANSFER LANGUAGE AND MICROOPERATIONS
Bit Manipulations CS212.
Presentation transcript:

REGISTER TRANSFER LANGUAGE MICROOPERATIONS

• Logic Microoperations • Shift Microoperations TODAY OUTLINES • Logic Microoperations • Shift Microoperations

LOGIC MICROOPERATIONS

LOGIC MICROOPERATIONS Specify binary operations on the strings of bits in registers Logic microoperations are bit-wise operations, i.e., they work on the individual bits of data useful for bit manipulations on binary data useful for making logical decisions based on the bit value The symbols for the four basic logic operations are: OR (), AND (), XOR (), Complement/NOT

LOGIC MICROOPERATIONS v OR (SETS Bits) ^ AND (CLEARS Bits)  XOR (Complement Bits, 2 Sources) NOT (Complement Bits, 1 Source) Example: R3 R4 v R6 Example: R2 DR ^ R1 Example: PC PC  DR Example: R6 R1

LOGIC MICROOPERATIONS Example: Let R1 = 10101010 and R2 = 11110000 After the operations, R0 becomes:

HARDWARE IMPLEMENTATION OF LOGIC MICROOPERATIONS B i 1 4 X 1 F i MUX 2 3 Select S 1 S Function table 0 0 F = A  B AND 0 1 F = AB OR 1 0 F = A  B XOR 1 1 F = A’ Complement S1 S0 Output -operation

APPLICATIONS OF LOGIC MICROOPERATIONS Logic microoperations can be used to manipulate individual bits or a portions of a word in a register Logic microoperations can change bit values, clear a group of bits, or insert new bit values into a register.

AND microoperation Used for clearing one or more bits in a register to 0. Boolean equations: X • 0 = 0 When ANDed with 0, binary variable X produces 0. X • 1 = X When ANDed with 1, binary variable X remains unchanged.

AND microoperation X • 0 = 0 X • 1 = X Example: 10101101 10101011 R1 (data) 00000000 11111111 R2 (mask) 00000000 10101011 R1  R1 ^ R2 AND operation: Selectively clear bits of a register Masking out the bits X • 1 = X R1 : High-order byte = Clear Low-order byte = Unchanged

OR microoperation Used to set one or more bits in a register. Boolean equations: X + 1 = 1 When ORed with 1, binary variable X produces a 1. X + 0 = X When ORed with 0, binary variable X remains unchanged.

OR microoperation X + 1 = 1 X + 0 = X Example: 10101101 10101011 R1 (data) 11111111 00000000 R2 (mask) 11111111 10101011 R1  R1 v R2 OR operation: Selectively set bits of a register R1: High-order byte = Set to 1’s Low-order byte = Unchanged

XOR microoperation Used to complement one or more bits in a register. Boolean equations: X  1 = X When XORed with 1, binary variable X complemented. X  0 = X When XORed with 0, binary variable X remains unchanged.

XOR microoperation X  1 = X X  0 = X Example: 10101101 10101011 R1 (data) 11111111 00000000 R2 (mask) 01010010 10101011 R1  R1  R2 XOR operation: Selectively complement bits of a register R1: High-order byte = Complemented Low-order byte = Unchanged

SHIFT MICROOPERATIONS

SHIFT MICROOPERATIONS Shift microoperations are used for: Lateral movement of data. Serial transfer of data. Manipulating the contents of registers in arithmetic, logical, and control operations. Left shift : toward the MSB Right shift : toward the LSB MSB 7 6 5 4 3 2 1 LSB

SHIFT MICROOPERATIONS There are three types of shifts Logical shift Circular shift Arithmetic shift What differentiates them is the information that goes into the serial input/incoming bit A right shift operation A left shift operation LSB Serial input Serial input MSB

SHIFT MICROOPERATIONS A right shift operation A left shift operation LSB Serial input MSB Serial input

SHIFT MICROOPERATIONS In RTL, string of letters are used to specify 1-bit shift operations: Shift left : sl Shift right : sr

Shift Microoperations LOGICAL SHIFT Assume the serial input/incoming bit to the shift is a 0. A right shift operation: A left shift operation: Example of Shifts: Type Symbolic Source R2 After Shift: Designation Destination R1 Shift Left R1 sl R2 10011110 00111100 Shift Right R1 sr R2 11100101 01110010

SHIFT MICROOPERATIONS Example 1: Let R2 = 11001001 After the Shift operation, R1 becomes: 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.