Download presentation
Presentation is loading. Please wait.
Published byBritton Walton Modified over 6 years ago
1
Overview Register Transfer Language Register Transfer
Register Transfer and Micro-operations Lecture 9 Overview Register Transfer Language Register Transfer Bus and Memory Transfers Arithmetic Micro-operations Logic Micro-operations Shift Micro-operations Arithmetic Logic Shift Unit CSE 211, Computer Organization and Architecture
2
Arithmetic Circuits Register Transfer and Micro-operations 2 Lecture 9
1 2 3 4x1 MUX X0 Y0 C0 C1 D0 FA X1 Y1 C2 D1 X2 Y2 C3 D2 X3 Y3 C4 D3 Cout A0 B0 A1 B1 A2 B2 A3 B3 S1 S0Cin Y O/P B D = A + B B D = A + B + 1 B’ D = A + B’ B’ D = A + B’+ 1 D = A D = A + 1 D = A – 1 D = A CSE 211, Computer Organization and Architecture
3
Logic Micro operations
Register Transfer and Micro-operations Lecture 9 Logic Micro operations - 16 different logic operations with 2 binary vars. - n binary vars → n functions Truth tables for 16 functions of 2 variables and the corresponding 16 logic micro-operations Boolean Function Micro- Operations Name X y F0 = F Clear F1 = xy F A B AND F2 = xy' F A B’ F3 = x F A Transfer A F4 = x'y F A’ B F5 = y F B Transfer B F6 = x y F A B Exclusive-OR F7 = x + y F A B OR F8 = (x + y)' F A B)’ NOR F9 = (x y)' F (A B)’ Exclusive-NOR F10 = y' F B’ Complement B F11 = x + y' F A B F12 = x' F A’ Complement A F13 = x' + y F A’ B F14 = (xy)' F (A B)’ NAND F15 = F all 1's Set to all 1's CSE 211, Computer Organization and Architecture
4
Hardware Implementation
Register Transfer and Micro-operations Lecture 9 Hardware Implementation F = A B AND F = AB OR F = A B XOR F = A’ Complement S1 S0 Output -operation Function table B A S F 1 i 2 3 4 X 1 MUX Select CSE 211, Computer Organization and Architecture
5
Applications of Logic Microoperations
Register Transfer and Micro-operations Lecture 9 Applications of Logic Microoperations Logic micro operations specify binary operations for Strings of bits stored in Registers. Logic micro operations can be used to manipulate individual bits or a portions of a word in a register Consider the data in a register A. In another register, B, is bit data that will be used to modify the contents of A Selective-set A A + B Selective-complement A A B Selective-clear A A • B’ Mask (Delete) A A • B Clear (same bits) A A B Insert A (A • B) + C CSE 211, Computer Organization and Architecture
6
Applications of Logic Microoperations
Register Transfer and Micro-operations Lecture 9 Applications of Logic Microoperations 1. In a selective set operation, the bit pattern in B is used to set certain bits in A At B At+1 (A A + B) If a bit in B is set to 1, that same position in A gets set to 1, otherwise that bit in A keeps its previous value 2. In a selective complement operation, the bit pattern in B is used to complement certain bits in A At B At+1 (A A B) If a bit in B is set to 1, that same position in A gets complemented from its original value, otherwise it is unchanged CSE 211, Computer Organization and Architecture
7
Applications of Logic Microoperations
Register Transfer and Micro-operations Lecture 9 Applications of Logic Microoperations 3. In a selective clear operation, the bit pattern in B is used to clear certain bits in A At B At+1 (A A B’) If a bit in B is set to 1, that same position in A gets set to 0, otherwise it is unchanged 4. In a mask operation, the bit pattern in B is used to clear certain bits in A At B At+1 (A A B) If a bit in B is set to 0, that same position in A gets set to 0, otherwise it is unchanged CSE 211, Computer Organization and Architecture
8
Applications of Logic Microoperations
Register Transfer and Micro-operations Lecture 9 Applications of Logic Microoperations 5. In a clear operation, if the bits in the same position in A and B are the same, they are cleared in A, otherwise they are set in A At B At+1 (A A B) CSE 211, Computer Organization and Architecture
9
Applications of Logic Microoperations
Register Transfer and Micro-operations Lecture 9 Applications of Logic Microoperations 6. An insert operation is used to introduce a specific bit pattern into A register, leaving the other bit positions unchanged This is done as A mask operation to clear the desired bit positions, followed by An OR operation to introduce the new bits into the desired positions Example Suppose you wanted to introduce 1010 into the low order four bits of A: A (Original) A (Desired) A (Original) Mask A (Intermediate) Added bits A (Desired) CSE 211, Computer Organization and Architecture
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.