SlideShare a Scribd company logo
1 of 17
1Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
REGISTER TRANSFER AND MICROOPERATIONS
β€’ Register Transfer Language
β€’ Register Transfer
β€’ Bus and Memory Transfers
β€’ Arithmetic Microoperations
β€’ Logic Microoperations
β€’ Shift Microoperations
β€’ Arithmetic Logic Shift Unit
2Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
MICROOPERATION
An elementary operation performed during
one clock pulse, on the information stored
in one or more registers
R ← f(R, R)
f: shift, count, clear, load, add,...
ALU
(f)
Registers
(R)
1 clock cycle
Register Transfer Language
3Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
REGISTER TRANSFER LANGUAGE
- Set of registers and their functions
- Microoperations Set
Set of allowable microoperations provided
by the organization of the computer
- Control signals that initiate the sequence of
microoperations
----> Register transfer language
- A symbolic language
- A convenient tool for describing the
internal organization of digital computers
- Can also be used to facilitate the design
process of digital systems.
Definition of the (internal) organization of a computer
For any function of the computer, a sequence of
microoperations is used to describe it
Register Transfer Language
4Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
REGISTER TRANSFER
R1
Register
Numbering of bits
Showing individual bits
Subfields
PC(H) PC(L)
15 8 7 0
- a register
- portion of a register
- a bit of a register
Common ways of drawing the block diagram of a register
A simultaneous transfer of all bits from the
source to the destination register, during one clock pulse
R2 ← R1
A binary condition(p=1) which determines when the transfer
is to occur
If (p=1) then (R2 ← R1)
P: R2 ← R1
7 6 5 4 3 2 1 0
R2
15 0
Designation of a register
Representation of a transfer(parallel)
Representation of a controlled(conditional) transfer
Register Transfer
5Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
HARDWARE IMPLEMENTATION OF CONTROLLED TRANSFERS
Basic Symbols for Register Transfers
Implementation of controlled transfer
P: R2 ← R1
Block diagram
Timing diagram
Clock
Capital letters Denotes a register MAR, R2
and numerals
Parentheses ( ) Denotes a part of a register R2(0-7), R2(L)
Arrow ← Denotes transfer of information R2 ← R1
Colon : Denotes termination of control function P:
Comma , Separates two micro-operations A ← B, B ← A
Symbols Description Meaning
Register Transfer
Transfer occurs here
R2
R1
Control
Circuit
LoadP
n
Clock
Load
t t+1
6Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
BUS AND MEMORY TRANSFER
Bus is a path(of a group of wires) over which information is transferred,
from any of several sources to any of several destinations.
From a register to bus: BUS <- R
1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4
Register A Register B Register C Register D
B C D1 1 1
4 x1
MUX
B C D2 2 2
4 x1
MUX
B C D3 3 3
4 x1
MUX
B C D4 4 4
4 x1
MUX
4-line bus
x
y
select
0 0 0 0
Register A Register B Register C Register D
Bus lines
Bus and Memory Transfers
7Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
TRANSFER FROM BUS TO A DESTINATION REGISTER
Three-State Bus Buffers
Bus line with three-state buffers
Reg. R0 Reg. R1 Reg. R2 Reg. R3
Bus lines
2 x 4
Decoder
Load
D0 D1 D2 D3z
w
Select E (enable)
Output Y=A if C=1
High-impedence if C=0
Normal input A
Control input C
Select
Enable
0
1
2
3
S0
S1
A0
B0
C0
D0
Bus line for bit 0
Bus and Memory Transfers
8Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
MEMORY TRANSFERS
Summary of Register Transfer Microoperations
AR Memory
unit
Read
Write
DR
Memory read micro-op: DR ← M ( DR ← M[AR] )
Memory write micro-op: M ← DR ( M[AR] ← DR )
Bus and Memory Transfers
A ← B Transfer content of reg. B into reg. A
AR ← DR(AD) Transfer content of AD portion of reg. DR into reg. AR
A ← constant Transfer a binary constant into reg. A
ABUS ← R1, Transfer content of R1 into bus A and, at the same time,
R2 ← ABUS transfer content of bus A into R2
AR Address register
DR Data register
M[R] Memory word specified by reg. R
M Equivalent to M[AR]
DR ← M Memory read operation: transfers content of
memory word specified by AR into DR
M ← DR Memory write operation: transfers content of
DR into memory word specified by AR
9Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
ARITHMETIC MICROOPERATIONS
* Summary of Arithmetic Micro-Operations
Four types of microoperations
- Register transfer microoperations
- Arithmetic microoperations
- Logic microoperations
- Shift microoperations
Arithmetic Microoperations
R3 ← R1 + R2 Contents of R1 plus R2 transferred to R3
R3 ← R1 - R2 Contents of R1 minus R2 transferred to R3
R2 ← R2’ Complement the contents of R2
R2 ← R2’+ 1 2's complement the contents of R2 (negate)
R3 ← R1 + R2’+ 1 subtraction
R1 ← R1 + 1 Increment
R1 ← R1 - 1 Decrement
10Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
BINARY ADDER
FA
B0 A0
S0
C0FA
B1 A1
S1
C1FA
B2 A2
S2
C2FA
B3 A3
S3
C3
C4
Binary Adder-Subtractor
FA
B0 A0
S0
C0C1
FA
B1 A1
S1
C2
FA
B2 A2
S2
C3
FA
B3 A3
S3C4
M
Binary Incrementer
HA
x y
C S
A0 1
S0
HA
x y
C S
A1
S1
HA
x y
C S
A2
S2
HA
x y
C S
A3
S3C4
Binary Adder
Arithmetic Microoperations
11Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
ARITHMETIC CIRCUIT
S1
S0
0
1
2
3
4x1
MUX
X0
Y0
C0
C1
D0
FA
S1
S0
0
1
2
3
4x1
MUX
X1
Y1
C1
C2
D1FA
S1
S0
0
1
2
3
4x1
MUX
X2
Y2
C2
C3
D2FA
S1
S0
0
1
2
3
4x1
MUX
X3
Y3
C3
C4
D3
FA
Cout
A0
B0
A1
B1
A2
B2
A3
B3
0 1
S0
S1
Cin
S1 S0 Cin Y Output Microoperation
0 0 0 B D = A + B Add
0 0 1 B D = A + B + 1 Add with carry
0 1 0 B’ D = A + B’ Subtract with borrow
0 1 1 B’ D = A + B’+ 1 Subtract
1 0 0 0 D = A Transfer A
1 0 1 0 D = A + 1 Increment A
1 1 0 1 D = A - 1 Decrement A
1 1 1 1 D = A Transfer A
Arithmetic Microoperations
12Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
LOGIC MICROOPERATIONS
Specify binary operations on the strings of bits in registers.
- useful for bit manipulations on binary data
AND: Mask out certain group of bits
OR : Merge binary or character data
- useful for making logical decisions based on the bit value
Logic Microoperations
Applications
Manipulating individual bits or a field(portion) of
a word in a register
- Selective-set A + B
- Selective-complement A βŠ• B
- Selective-clear A β€’ B
- Mask (Delete) A β€’ B
- Insert (A β€’ B) + C
- Compare A βŠ• B
- Packing (A β€’ B) + C
- Unpacking A β€’ B
13Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
LIST OF LOGIC MICROOPERATIONS
β€’ List of Logic Micro-Operations
- 16 different logic operations with 2 binary vars.
- n binary vars -> functions2 2
n
β€’ Truth tables for 16 functions of 2 variables and the
corresponding 16 logic micro-operations
Boolean
Function
Micro-
Operations
Name
x 0 0 1 1
y 0 1 0 1
Logic Microoperations
0 0 0 0 F0 = 0 F <βˆ’ 0 Clear
0 0 0 1 F1 = xy F <βˆ’ A ∧ B AND
0 0 1 0 F2 = xy' F <βˆ’ A ∧ B’
0 0 1 1 F3 = x F <βˆ’ A Transfer A
0 1 0 0 F4 = x'y F <βˆ’ Aβ€™βˆ§ B
0 1 0 1 F5 = y F <βˆ’ B Transfer B
0 1 1 0 F6 = x βŠ• y F <βˆ’ A βŠ• B Exclusive-OR
0 1 1 1 F7 = x + y F <βˆ’ A ∨ B OR
1 0 0 0 F8 = (x + y)' F <βˆ’ (A ∨ B)’ NOR
1 0 0 1 F9 = (x βŠ• y)' F <βˆ’ (A βŠ• B)’ Exclusive-NOR
1 0 1 0 F10 = y' F <βˆ’ B’ Complement B
1 0 1 1 F11 = x + y' F <βˆ’ A ∨ B
1 1 0 0 F12 = x' F <βˆ’ A’ Complement A
1 1 0 1 F13 = x' + y F <βˆ’ Aβ€™βˆ¨ B
1 1 1 0 F14 = (xy)' F <βˆ’ (A ∧ B)’ NAND
1 1 1 1 F15 = 1 F <βˆ’ all 1's Set to all 1's
14Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
HARDWARE IMPLEMENTATION OF LOGIC MICROOPERATIONS
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
Function table
Logic Microoperations
B
A
S
S
F
1
0
i
i
i
0
1
2
3
4 X 1
MUX
Select
15Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
SHIFT MICROOPERATIONS
- Logical shift : shift in a 0 into the extreme flip-flop
- Circular shift : circulates the bits of the register around the two ends
- Arithmetic shift : shifts a signed number (shift with sign extension)
Left shift -> multiplied by 2
Right shift -> divided by 2
Arithmetic shifts for signed binary numbers
Shift Micro-Operations
- Arithmetic shift-left Overflow V = Rn-1 β‰  Rn-2
- Arithmetic shift-right
Shift Microoperations
Symbol Description
R ← shl R Shift-left register R
R ← shr R Shift-right register R
R ← cil R Circular shift-left register R
R ← cir R Circular right-shift register R
R ← ashl R Arithmetic shift-left register R
R ← ashr R Arithmetic shift-right register R
Shifts
Rn-1 Rn-2 R1 R0
Sign
bit
16Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
HARDWARE IMPLEMENTATION OF SHIFT MICROOPERATIONS
Shift Microoperations
S
0
1
H0MUX
S
0
1
H1MUX
S
0
1
H2MUX
S
0
1
H3MUX
Select
0 for shift right (down)
1 for shift left (up)Serial
input (IR)
A0
A1
A2
A3
Serial
input (IL)
17Register Transfer & Β΅-operations
Computer Organization Computer Architectures Lab
ARITHMETIC LOGIC SHIFT UNIT
S3 S2 S1 S0 Cin Operation Function
0 0 0 0 0 F = A Transfer A
0 0 0 0 1 F = A + 1 Increment A
0 0 0 1 0 F = A + B Addition
0 0 0 1 1 F = A + B + 1 Add with carry
0 0 1 0 0 F = A + B’ Subtract with borrow
0 0 1 0 1 F = A + B’+ 1 Subtraction
0 0 1 1 0 F = A - 1 Decrement A
0 0 1 1 1 F = A TransferA
0 1 0 0 X F = A ∧ B AND
0 1 0 1 X F = A ∨ B OR
0 1 1 0 X F = A βŠ• B XOR
0 1 1 1 X F = A’ Complement A
1 0 X X X F = shr A Shift right A into F
1 1 X X X F = shl A Shift left A into F
Shift Microoperations
Arithmetic
Circuit
Logic
Circuit
C
C 4 x 1
MUX
Select
0
1
2
3
F
S3
S2
S1
S0
B
A
i
A
D
A
E
shr
shl
i+1 i
i
i
i+1
i-1
i
i

More Related Content

What's hot

Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
Β 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)Sandesh Jonchhe
Β 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and ArchitectureVinit Raut
Β 
Microoperations
MicrooperationsMicrooperations
MicrooperationsRakesh Pillai
Β 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interruptsShubham Jain
Β 
Major Function of i/o module
Major Function of i/o moduleMajor Function of i/o module
Major Function of i/o moduleDelowar Hossain
Β 
Input output organization
Input output organizationInput output organization
Input output organizationabdulugc
Β 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formatsMazin Alwaaly
Β 
Processor organization &amp; register organization
Processor organization &amp; register organizationProcessor organization &amp; register organization
Processor organization &amp; register organizationGhanshyam Patel
Β 
Register Transfer Language,Bus and Memory Transfer
Register Transfer Language,Bus and Memory TransferRegister Transfer Language,Bus and Memory Transfer
Register Transfer Language,Bus and Memory Transferlavanya marichamy
Β 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
Β 
Input output accessing
Input output accessingInput output accessing
Input output accessingankitraosingh
Β 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operationNikhil Pandit
Β 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationSanjeev Patel
Β 
Coa module1
Coa module1Coa module1
Coa module1cs19club
Β 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set ArchitectureDilum Bandara
Β 
Arithmetic micro operations
Arithmetic micro operationsArithmetic micro operations
Arithmetic micro operationsNitesh Bichwani
Β 
Instruction set and instruction execution cycle
Instruction set and instruction execution cycleInstruction set and instruction execution cycle
Instruction set and instruction execution cycleMkaur01
Β 

What's hot (20)

Register transfer language
Register transfer languageRegister transfer language
Register transfer language
Β 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
Β 
Processor Organization and Architecture
Processor Organization and ArchitectureProcessor Organization and Architecture
Processor Organization and Architecture
Β 
Microoperations
MicrooperationsMicrooperations
Microoperations
Β 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
Β 
Major Function of i/o module
Major Function of i/o moduleMajor Function of i/o module
Major Function of i/o module
Β 
Input output organization
Input output organizationInput output organization
Input output organization
Β 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
Β 
Processor organization &amp; register organization
Processor organization &amp; register organizationProcessor organization &amp; register organization
Processor organization &amp; register organization
Β 
Register Transfer Language,Bus and Memory Transfer
Register Transfer Language,Bus and Memory TransferRegister Transfer Language,Bus and Memory Transfer
Register Transfer Language,Bus and Memory Transfer
Β 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
Β 
Input output accessing
Input output accessingInput output accessing
Input output accessing
Β 
pipelining
pipeliningpipelining
pipelining
Β 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
Β 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
Β 
Coa module1
Coa module1Coa module1
Coa module1
Β 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
Β 
Arithmetic micro operations
Arithmetic micro operationsArithmetic micro operations
Arithmetic micro operations
Β 
Instruction set and instruction execution cycle
Instruction set and instruction execution cycleInstruction set and instruction execution cycle
Instruction set and instruction execution cycle
Β 
Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
Β 

Viewers also liked

Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4Umang Gupta
Β 
Lecture 1
Lecture 1Lecture 1
Lecture 1GIKI
Β 
Ch8 (1) morris mano
Ch8 (1) morris manoCh8 (1) morris mano
Ch8 (1) morris manoKIRTI89
Β 
overview of register transfer, micro operations and basic computer organizati...
overview of register transfer, micro operations and basic computer organizati...overview of register transfer, micro operations and basic computer organizati...
overview of register transfer, micro operations and basic computer organizati...Rai University
Β 
Data representation
Data representationData representation
Data representationChew Hoong
Β 
Register transfer language
Register  transfer languageRegister  transfer language
Register transfer languagehamza munir
Β 
Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation designSanjeev Patel
Β 
Lecture 2
Lecture 2Lecture 2
Lecture 2GIKI
Β 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycleKumar
Β 
Logic microoperations
Logic microoperationsLogic microoperations
Logic microoperationsNitesh Singh
Β 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operationsSanjeev Patel
Β 
Register transfer and micro operation
Register transfer and micro operationRegister transfer and micro operation
Register transfer and micro operationKamal Acharya
Β 
Computer Architecture and organization
Computer Architecture and organizationComputer Architecture and organization
Computer Architecture and organizationBadrinath Kadam
Β 

Viewers also liked (17)

Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4
Β 
Lecture 1
Lecture 1Lecture 1
Lecture 1
Β 
Ch8 (1) morris mano
Ch8 (1) morris manoCh8 (1) morris mano
Ch8 (1) morris mano
Β 
overview of register transfer, micro operations and basic computer organizati...
overview of register transfer, micro operations and basic computer organizati...overview of register transfer, micro operations and basic computer organizati...
overview of register transfer, micro operations and basic computer organizati...
Β 
Data representation
Data representationData representation
Data representation
Β 
Lecture 7
Lecture 7Lecture 7
Lecture 7
Β 
Lecture 10
Lecture 10Lecture 10
Lecture 10
Β 
Register transfer language
Register  transfer languageRegister  transfer language
Register transfer language
Β 
Coa
CoaCoa
Coa
Β 
Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation design
Β 
Lecture 2
Lecture 2Lecture 2
Lecture 2
Β 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
Β 
Logic microoperations
Logic microoperationsLogic microoperations
Logic microoperations
Β 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
Β 
Register transfer and micro operation
Register transfer and micro operationRegister transfer and micro operation
Register transfer and micro operation
Β 
Computer Architecture and organization
Computer Architecture and organizationComputer Architecture and organization
Computer Architecture and organization
Β 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
Β 

Similar to Register transfer &amp; microoperations moris mano ch 04

REGISTER TRANSFER AND MICROOPERATIONS2017-3-5.ppt
REGISTER  TRANSFER  AND  MICROOPERATIONS2017-3-5.pptREGISTER  TRANSFER  AND  MICROOPERATIONS2017-3-5.ppt
REGISTER TRANSFER AND MICROOPERATIONS2017-3-5.pptNARENDRAKUMARCHAURAS1
Β 
Mca i-u-2-overview of register transfer, micro operations and basic computer ...
Mca i-u-2-overview of register transfer, micro operations and basic computer ...Mca i-u-2-overview of register transfer, micro operations and basic computer ...
Mca i-u-2-overview of register transfer, micro operations and basic computer ...Rai University
Β 
B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic co...B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic co...Rai University
Β 
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...Rai University
Β 
Register reference
Register referenceRegister reference
Register referenceNitesh Singh
Β 
unit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architectureunit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and ArchitectureSwapnitaSrivastava1
Β 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-pptjemimajerome
Β 
PPT in register and micro operations in electronic
PPT in register and micro operations in electronicPPT in register and micro operations in electronic
PPT in register and micro operations in electronicaaravjamela
Β 
LEC 2-register transfer and register transfer language.ppt
LEC 2-register transfer and register transfer language.pptLEC 2-register transfer and register transfer language.ppt
LEC 2-register transfer and register transfer language.pptmailmynew202
Β 
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER  TRANSFER  AND  MICROOPERATIONSREGISTER  TRANSFER  AND  MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONSDr. Ajay Kumar Singh
Β 
Module 5 part1
Module 5 part1Module 5 part1
Module 5 part1cs19club
Β 
Microprocessor Part 3
Microprocessor    Part  3Microprocessor    Part  3
Microprocessor Part 3Sajan Agrawal
Β 
LCDF3_Chap_10_P1.ppt
LCDF3_Chap_10_P1.pptLCDF3_Chap_10_P1.ppt
LCDF3_Chap_10_P1.pptbrainxMagic
Β 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperationsmahesh kumar prajapat
Β 

Similar to Register transfer &amp; microoperations moris mano ch 04 (20)

REGISTER TRANSFER AND MICROOPERATIONS2017-3-5.ppt
REGISTER  TRANSFER  AND  MICROOPERATIONS2017-3-5.pptREGISTER  TRANSFER  AND  MICROOPERATIONS2017-3-5.ppt
REGISTER TRANSFER AND MICROOPERATIONS2017-3-5.ppt
Β 
Mca i-u-2-overview of register transfer, micro operations and basic computer ...
Mca i-u-2-overview of register transfer, micro operations and basic computer ...Mca i-u-2-overview of register transfer, micro operations and basic computer ...
Mca i-u-2-overview of register transfer, micro operations and basic computer ...
Β 
B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic co...B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.1-overview of register transfer, micro operations and basic co...
Β 
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Β 
Register reference
Register referenceRegister reference
Register reference
Β 
Micro operations
Micro operationsMicro operations
Micro operations
Β 
Instruction types
Instruction typesInstruction types
Instruction types
Β 
unit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architectureunit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architecture
Β 
Chapter 4
Chapter 4Chapter 4
Chapter 4
Β 
Chapter4.ppt
Chapter4.pptChapter4.ppt
Chapter4.ppt
Β 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
Β 
PPT in register and micro operations in electronic
PPT in register and micro operations in electronicPPT in register and micro operations in electronic
PPT in register and micro operations in electronic
Β 
LEC 2-register transfer and register transfer language.ppt
LEC 2-register transfer and register transfer language.pptLEC 2-register transfer and register transfer language.ppt
LEC 2-register transfer and register transfer language.ppt
Β 
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER  TRANSFER  AND  MICROOPERATIONSREGISTER  TRANSFER  AND  MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONS
Β 
Arithmetic micro Operations
Arithmetic micro OperationsArithmetic micro Operations
Arithmetic micro Operations
Β 
Module 5 part1
Module 5 part1Module 5 part1
Module 5 part1
Β 
Register Transfer Language
Register Transfer LanguageRegister Transfer Language
Register Transfer Language
Β 
Microprocessor Part 3
Microprocessor    Part  3Microprocessor    Part  3
Microprocessor Part 3
Β 
LCDF3_Chap_10_P1.ppt
LCDF3_Chap_10_P1.pptLCDF3_Chap_10_P1.ppt
LCDF3_Chap_10_P1.ppt
Β 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperations
Β 

Recently uploaded

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
Β 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
Β 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
Β 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
Β 
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”soniya singh
Β 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
Β 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
Β 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
Β 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
Β 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
Β 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
Β 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
Β 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
Β 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
Β 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
Β 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
Β 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
Β 

Recently uploaded (20)

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
Β 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
Β 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
Β 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Β 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
Β 
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Model Call Girl in Narela Delhi reach out to us at πŸ”8264348440πŸ”
Β 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
Β 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
Β 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
Β 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
Β 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
Β 
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCRβ˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
β˜… CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
Β 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
Β 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
Β 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
Β 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
Β 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
Β 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Β 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
Β 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
Β 

Register transfer &amp; microoperations moris mano ch 04

  • 1. 1Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab REGISTER TRANSFER AND MICROOPERATIONS β€’ Register Transfer Language β€’ Register Transfer β€’ Bus and Memory Transfers β€’ Arithmetic Microoperations β€’ Logic Microoperations β€’ Shift Microoperations β€’ Arithmetic Logic Shift Unit
  • 2. 2Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab MICROOPERATION An elementary operation performed during one clock pulse, on the information stored in one or more registers R ← f(R, R) f: shift, count, clear, load, add,... ALU (f) Registers (R) 1 clock cycle Register Transfer Language
  • 3. 3Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab REGISTER TRANSFER LANGUAGE - Set of registers and their functions - Microoperations Set Set of allowable microoperations provided by the organization of the computer - Control signals that initiate the sequence of microoperations ----> Register transfer language - A symbolic language - A convenient tool for describing the internal organization of digital computers - Can also be used to facilitate the design process of digital systems. Definition of the (internal) organization of a computer For any function of the computer, a sequence of microoperations is used to describe it Register Transfer Language
  • 4. 4Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab REGISTER TRANSFER R1 Register Numbering of bits Showing individual bits Subfields PC(H) PC(L) 15 8 7 0 - a register - portion of a register - a bit of a register Common ways of drawing the block diagram of a register A simultaneous transfer of all bits from the source to the destination register, during one clock pulse R2 ← R1 A binary condition(p=1) which determines when the transfer is to occur If (p=1) then (R2 ← R1) P: R2 ← R1 7 6 5 4 3 2 1 0 R2 15 0 Designation of a register Representation of a transfer(parallel) Representation of a controlled(conditional) transfer Register Transfer
  • 5. 5Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab HARDWARE IMPLEMENTATION OF CONTROLLED TRANSFERS Basic Symbols for Register Transfers Implementation of controlled transfer P: R2 ← R1 Block diagram Timing diagram Clock Capital letters Denotes a register MAR, R2 and numerals Parentheses ( ) Denotes a part of a register R2(0-7), R2(L) Arrow ← Denotes transfer of information R2 ← R1 Colon : Denotes termination of control function P: Comma , Separates two micro-operations A ← B, B ← A Symbols Description Meaning Register Transfer Transfer occurs here R2 R1 Control Circuit LoadP n Clock Load t t+1
  • 6. 6Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab BUS AND MEMORY TRANSFER Bus is a path(of a group of wires) over which information is transferred, from any of several sources to any of several destinations. From a register to bus: BUS <- R 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 Register A Register B Register C Register D B C D1 1 1 4 x1 MUX B C D2 2 2 4 x1 MUX B C D3 3 3 4 x1 MUX B C D4 4 4 4 x1 MUX 4-line bus x y select 0 0 0 0 Register A Register B Register C Register D Bus lines Bus and Memory Transfers
  • 7. 7Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab TRANSFER FROM BUS TO A DESTINATION REGISTER Three-State Bus Buffers Bus line with three-state buffers Reg. R0 Reg. R1 Reg. R2 Reg. R3 Bus lines 2 x 4 Decoder Load D0 D1 D2 D3z w Select E (enable) Output Y=A if C=1 High-impedence if C=0 Normal input A Control input C Select Enable 0 1 2 3 S0 S1 A0 B0 C0 D0 Bus line for bit 0 Bus and Memory Transfers
  • 8. 8Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab MEMORY TRANSFERS Summary of Register Transfer Microoperations AR Memory unit Read Write DR Memory read micro-op: DR ← M ( DR ← M[AR] ) Memory write micro-op: M ← DR ( M[AR] ← DR ) Bus and Memory Transfers A ← B Transfer content of reg. B into reg. A AR ← DR(AD) Transfer content of AD portion of reg. DR into reg. AR A ← constant Transfer a binary constant into reg. A ABUS ← R1, Transfer content of R1 into bus A and, at the same time, R2 ← ABUS transfer content of bus A into R2 AR Address register DR Data register M[R] Memory word specified by reg. R M Equivalent to M[AR] DR ← M Memory read operation: transfers content of memory word specified by AR into DR M ← DR Memory write operation: transfers content of DR into memory word specified by AR
  • 9. 9Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab ARITHMETIC MICROOPERATIONS * Summary of Arithmetic Micro-Operations Four types of microoperations - Register transfer microoperations - Arithmetic microoperations - Logic microoperations - Shift microoperations Arithmetic Microoperations R3 ← R1 + R2 Contents of R1 plus R2 transferred to R3 R3 ← R1 - R2 Contents of R1 minus R2 transferred to R3 R2 ← R2’ Complement the contents of R2 R2 ← R2’+ 1 2's complement the contents of R2 (negate) R3 ← R1 + R2’+ 1 subtraction R1 ← R1 + 1 Increment R1 ← R1 - 1 Decrement
  • 10. 10Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab BINARY ADDER FA B0 A0 S0 C0FA B1 A1 S1 C1FA B2 A2 S2 C2FA B3 A3 S3 C3 C4 Binary Adder-Subtractor FA B0 A0 S0 C0C1 FA B1 A1 S1 C2 FA B2 A2 S2 C3 FA B3 A3 S3C4 M Binary Incrementer HA x y C S A0 1 S0 HA x y C S A1 S1 HA x y C S A2 S2 HA x y C S A3 S3C4 Binary Adder Arithmetic Microoperations
  • 11. 11Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab ARITHMETIC CIRCUIT S1 S0 0 1 2 3 4x1 MUX X0 Y0 C0 C1 D0 FA S1 S0 0 1 2 3 4x1 MUX X1 Y1 C1 C2 D1FA S1 S0 0 1 2 3 4x1 MUX X2 Y2 C2 C3 D2FA S1 S0 0 1 2 3 4x1 MUX X3 Y3 C3 C4 D3 FA Cout A0 B0 A1 B1 A2 B2 A3 B3 0 1 S0 S1 Cin S1 S0 Cin Y Output Microoperation 0 0 0 B D = A + B Add 0 0 1 B D = A + B + 1 Add with carry 0 1 0 B’ D = A + B’ Subtract with borrow 0 1 1 B’ D = A + B’+ 1 Subtract 1 0 0 0 D = A Transfer A 1 0 1 0 D = A + 1 Increment A 1 1 0 1 D = A - 1 Decrement A 1 1 1 1 D = A Transfer A Arithmetic Microoperations
  • 12. 12Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab LOGIC MICROOPERATIONS Specify binary operations on the strings of bits in registers. - useful for bit manipulations on binary data AND: Mask out certain group of bits OR : Merge binary or character data - useful for making logical decisions based on the bit value Logic Microoperations Applications Manipulating individual bits or a field(portion) of a word in a register - Selective-set A + B - Selective-complement A βŠ• B - Selective-clear A β€’ B - Mask (Delete) A β€’ B - Insert (A β€’ B) + C - Compare A βŠ• B - Packing (A β€’ B) + C - Unpacking A β€’ B
  • 13. 13Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab LIST OF LOGIC MICROOPERATIONS β€’ List of Logic Micro-Operations - 16 different logic operations with 2 binary vars. - n binary vars -> functions2 2 n β€’ Truth tables for 16 functions of 2 variables and the corresponding 16 logic micro-operations Boolean Function Micro- Operations Name x 0 0 1 1 y 0 1 0 1 Logic Microoperations 0 0 0 0 F0 = 0 F <βˆ’ 0 Clear 0 0 0 1 F1 = xy F <βˆ’ A ∧ B AND 0 0 1 0 F2 = xy' F <βˆ’ A ∧ B’ 0 0 1 1 F3 = x F <βˆ’ A Transfer A 0 1 0 0 F4 = x'y F <βˆ’ Aβ€™βˆ§ B 0 1 0 1 F5 = y F <βˆ’ B Transfer B 0 1 1 0 F6 = x βŠ• y F <βˆ’ A βŠ• B Exclusive-OR 0 1 1 1 F7 = x + y F <βˆ’ A ∨ B OR 1 0 0 0 F8 = (x + y)' F <βˆ’ (A ∨ B)’ NOR 1 0 0 1 F9 = (x βŠ• y)' F <βˆ’ (A βŠ• B)’ Exclusive-NOR 1 0 1 0 F10 = y' F <βˆ’ B’ Complement B 1 0 1 1 F11 = x + y' F <βˆ’ A ∨ B 1 1 0 0 F12 = x' F <βˆ’ A’ Complement A 1 1 0 1 F13 = x' + y F <βˆ’ Aβ€™βˆ¨ B 1 1 1 0 F14 = (xy)' F <βˆ’ (A ∧ B)’ NAND 1 1 1 1 F15 = 1 F <βˆ’ all 1's Set to all 1's
  • 14. 14Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab HARDWARE IMPLEMENTATION OF LOGIC MICROOPERATIONS 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 Function table Logic Microoperations B A S S F 1 0 i i i 0 1 2 3 4 X 1 MUX Select
  • 15. 15Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab SHIFT MICROOPERATIONS - Logical shift : shift in a 0 into the extreme flip-flop - Circular shift : circulates the bits of the register around the two ends - Arithmetic shift : shifts a signed number (shift with sign extension) Left shift -> multiplied by 2 Right shift -> divided by 2 Arithmetic shifts for signed binary numbers Shift Micro-Operations - Arithmetic shift-left Overflow V = Rn-1 β‰  Rn-2 - Arithmetic shift-right Shift Microoperations Symbol Description R ← shl R Shift-left register R R ← shr R Shift-right register R R ← cil R Circular shift-left register R R ← cir R Circular right-shift register R R ← ashl R Arithmetic shift-left register R R ← ashr R Arithmetic shift-right register R Shifts Rn-1 Rn-2 R1 R0 Sign bit
  • 16. 16Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab HARDWARE IMPLEMENTATION OF SHIFT MICROOPERATIONS Shift Microoperations S 0 1 H0MUX S 0 1 H1MUX S 0 1 H2MUX S 0 1 H3MUX Select 0 for shift right (down) 1 for shift left (up)Serial input (IR) A0 A1 A2 A3 Serial input (IL)
  • 17. 17Register Transfer & Β΅-operations Computer Organization Computer Architectures Lab ARITHMETIC LOGIC SHIFT UNIT S3 S2 S1 S0 Cin Operation Function 0 0 0 0 0 F = A Transfer A 0 0 0 0 1 F = A + 1 Increment A 0 0 0 1 0 F = A + B Addition 0 0 0 1 1 F = A + B + 1 Add with carry 0 0 1 0 0 F = A + B’ Subtract with borrow 0 0 1 0 1 F = A + B’+ 1 Subtraction 0 0 1 1 0 F = A - 1 Decrement A 0 0 1 1 1 F = A TransferA 0 1 0 0 X F = A ∧ B AND 0 1 0 1 X F = A ∨ B OR 0 1 1 0 X F = A βŠ• B XOR 0 1 1 1 X F = A’ Complement A 1 0 X X X F = shr A Shift right A into F 1 1 X X X F = shl A Shift left A into F Shift Microoperations Arithmetic Circuit Logic Circuit C C 4 x 1 MUX Select 0 1 2 3 F S3 S2 S1 S0 B A i A D A E shr shl i+1 i i i i+1 i-1 i i