SlideShare a Scribd company logo
1 of 8
Register Transfer and Micro-operations 1 Lecture 10
CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT
Overview
 Register Transfer Language
 Register Transfer
 Bus and Memory Transfers
 Arithmetic Micro-operations
 Logic Micro-operations
 Shift Micro-operations
 Arithmetic Logic Shift Unit
Register Transfer and Micro-operations 2 Lecture 10
CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT
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
Serial
input
• A right shift operation
• A left shift operation
Serial
input
Register Transfer and Micro-operations 3 Lecture 10
CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT
Logical Shift
• In a logical shift the serial input to the shift is a 0.
• A right logical shift operation:
• A left logical shift operation:
• In a Register Transfer Language, the following notation is used
– shl for a logical shift left
– shr for a logical shift right
– Examples:
• R2  shr R2
• R3  shl R3
0
0
Register Transfer and Micro-operations 4 Lecture 10
CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT
Circular Shift
• In a circular shift the serial input is the bit that is shifted out of the other
end of the register.
• A right circular shift operation:
• A left circular shift operation:
• In a RTL, the following notation is used
– cil for a circular shift left
– cir for a circular shift right
– Examples:
• R2  cir R2
• R3  cil R3
Register Transfer and Micro-operations 5 Lecture 10
CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT
Arithmetic Shift
• An arithmetic shift is meant for signed binary numbers (integer)
• An arithmetic left shift multiplies a signed number by two
• An arithmetic right shift divides a signed number by two
• The main distinction of an arithmetic shift is that it must keep the sign of
the number the same as it performs the multiplication or division
• A right arithmetic shift operation:
• A left arithmetic shift operation:
0
sign
bit
sign
bit
Register Transfer and Micro-operations 6 Lecture 10
CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT
Arithmetic Shift
• An left arithmetic shift operation must be checked for the overflow
0
V
Before the shift, if the leftmost two
bits differ, the shift will result in an
overflow
• In a RTL, the following notation is used
– ashl for an arithmetic shift left
– ashr for an arithmetic shift right
– Examples:
» R2  ashr R2
» R3  ashl R3
sign
bit
Register Transfer and Micro-operations 7 Lecture 10
CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT
Hardware Implementation of Shift Microoperation
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)
Register Transfer and Micro-operations 8 Lecture 10
CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT
Arithmetic Logic and Shift Unit
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
S3 S2 S1 S0 Cin Operation
0 0 0 0 0 F = A
0 0 0 0 1 F = A + 1
0 0 0 1 0 F = A + B
0 0 0 1 1 F = A + B + 1
0 0 1 0 0 F = A + B’
0 0 1 0 1 F = A + B’+ 1
0 0 1 1 0 F = A - 1
0 0 1 1 1 F = A
0 1 0 0 X F = A  B
0 1 0 1 X F = A B
0 1 1 0 X F = A  B
0 1 1 1 X F = A’
1 0 X X X F = shr A
1 1 X X X F = shl A

More Related Content

What's hot

What's hot (18)

Register transfer language & its micro operations
Register transfer language & its micro operationsRegister transfer language & its micro operations
Register transfer language & its micro operations
 
RTL
RTLRTL
RTL
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
RTL
 RTL RTL
RTL
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtl
 
REGISTER TRANSFER AND MICRO OPERATIONS
REGISTER TRANSFER AND MICRO OPERATIONSREGISTER TRANSFER AND MICRO OPERATIONS
REGISTER TRANSFER AND MICRO OPERATIONS
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
RTL-Design for beginners
RTL-Design  for beginnersRTL-Design  for beginners
RTL-Design for beginners
 
Registers in coa
Registers in coaRegisters in coa
Registers in coa
 
Register transfer language
Register  transfer languageRegister  transfer language
Register transfer language
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
ALU project(segma team)
ALU project(segma team)ALU project(segma team)
ALU project(segma team)
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Micro operations
Micro operationsMicro operations
Micro operations
 
Lect2 organization 2
Lect2 organization 2Lect2 organization 2
Lect2 organization 2
 
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 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
 

Viewers also liked

Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4
Umang Gupta
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
GIKI
 
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
IIUM
 

Viewers also liked (12)

Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Ch4
Ch4Ch4
Ch4
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
 
arithmetic logic unit
arithmetic logic unitarithmetic logic unit
arithmetic logic unit
 
Logical and shift micro operations
Logical and shift micro operationsLogical and shift micro operations
Logical and shift micro operations
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 
Computer Architecture – An Introduction
Computer Architecture – An IntroductionComputer Architecture – An Introduction
Computer Architecture – An Introduction
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
 
Lecture10
Lecture10Lecture10
Lecture10
 

Similar to Lecture 10

ARM Architecture Instruction Set
ARM Architecture Instruction SetARM Architecture Instruction Set
ARM Architecture Instruction Set
Dwight Sabio
 
computer-system-architecture-morris-mano-220720124304-fefd641d.pdf
computer-system-architecture-morris-mano-220720124304-fefd641d.pdfcomputer-system-architecture-morris-mano-220720124304-fefd641d.pdf
computer-system-architecture-morris-mano-220720124304-fefd641d.pdf
KunalSahu180994
 

Similar to Lecture 10 (20)

Logic Micro Operation
Logic Micro OperationLogic Micro Operation
Logic Micro Operation
 
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
 
Arithmetic micro Operations
Arithmetic micro OperationsArithmetic micro Operations
Arithmetic micro Operations
 
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
 
Lecture 22
Lecture 22Lecture 22
Lecture 22
 
Lect4 organization
Lect4 organizationLect4 organization
Lect4 organization
 
Instruction types
Instruction typesInstruction types
Instruction types
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085
 
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 ...
 
Microoperations
MicrooperationsMicrooperations
Microoperations
 
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...
 
Chapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 InstructionsChapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 Instructions
 
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptxCS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
ARM Architecture Instruction Set
ARM Architecture Instruction SetARM Architecture Instruction Set
ARM Architecture Instruction Set
 
Computer arithmetics (computer organisation & arithmetics) ppt
Computer arithmetics (computer organisation & arithmetics) pptComputer arithmetics (computer organisation & arithmetics) ppt
Computer arithmetics (computer organisation & arithmetics) ppt
 
mano.ppt
mano.pptmano.ppt
mano.ppt
 
computer-system-architecture-morris-mano-220720124304-fefd641d.pdf
computer-system-architecture-morris-mano-220720124304-fefd641d.pdfcomputer-system-architecture-morris-mano-220720124304-fefd641d.pdf
computer-system-architecture-morris-mano-220720124304-fefd641d.pdf
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 
Admission in india 2015
Admission in india 2015Admission in india 2015
Admission in india 2015
 

More from RahulRathi94 (20)

Lecture 47
Lecture 47Lecture 47
Lecture 47
 
Lecture 46
Lecture 46Lecture 46
Lecture 46
 
Lecture 44
Lecture 44Lecture 44
Lecture 44
 
Lecture 43
Lecture 43Lecture 43
Lecture 43
 
Lecture 42
Lecture 42Lecture 42
Lecture 42
 
Lecture 41
Lecture 41Lecture 41
Lecture 41
 
Lecture 40
Lecture 40Lecture 40
Lecture 40
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
 
Lecture 38
Lecture 38Lecture 38
Lecture 38
 
Lecture 37
Lecture 37Lecture 37
Lecture 37
 
Lecture 36
Lecture 36Lecture 36
Lecture 36
 
Lecture 35
Lecture 35Lecture 35
Lecture 35
 
Lecture 34
Lecture 34Lecture 34
Lecture 34
 
Lecture 28
Lecture 28Lecture 28
Lecture 28
 
Lecture 27
Lecture 27Lecture 27
Lecture 27
 
Lecture 26
Lecture 26Lecture 26
Lecture 26
 
Lecture 25
Lecture 25Lecture 25
Lecture 25
 
Lecture 24
Lecture 24Lecture 24
Lecture 24
 
Lecture 23
Lecture 23Lecture 23
Lecture 23
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 

Lecture 10

  • 1. Register Transfer and Micro-operations 1 Lecture 10 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT Overview  Register Transfer Language  Register Transfer  Bus and Memory Transfers  Arithmetic Micro-operations  Logic Micro-operations  Shift Micro-operations  Arithmetic Logic Shift Unit
  • 2. Register Transfer and Micro-operations 2 Lecture 10 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT 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 Serial input • A right shift operation • A left shift operation Serial input
  • 3. Register Transfer and Micro-operations 3 Lecture 10 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT Logical Shift • In a logical shift the serial input to the shift is a 0. • A right logical shift operation: • A left logical shift operation: • In a Register Transfer Language, the following notation is used – shl for a logical shift left – shr for a logical shift right – Examples: • R2  shr R2 • R3  shl R3 0 0
  • 4. Register Transfer and Micro-operations 4 Lecture 10 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT Circular Shift • In a circular shift the serial input is the bit that is shifted out of the other end of the register. • A right circular shift operation: • A left circular shift operation: • In a RTL, the following notation is used – cil for a circular shift left – cir for a circular shift right – Examples: • R2  cir R2 • R3  cil R3
  • 5. Register Transfer and Micro-operations 5 Lecture 10 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT Arithmetic Shift • An arithmetic shift is meant for signed binary numbers (integer) • An arithmetic left shift multiplies a signed number by two • An arithmetic right shift divides a signed number by two • The main distinction of an arithmetic shift is that it must keep the sign of the number the same as it performs the multiplication or division • A right arithmetic shift operation: • A left arithmetic shift operation: 0 sign bit sign bit
  • 6. Register Transfer and Micro-operations 6 Lecture 10 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT Arithmetic Shift • An left arithmetic shift operation must be checked for the overflow 0 V Before the shift, if the leftmost two bits differ, the shift will result in an overflow • In a RTL, the following notation is used – ashl for an arithmetic shift left – ashr for an arithmetic shift right – Examples: » R2  ashr R2 » R3  ashl R3 sign bit
  • 7. Register Transfer and Micro-operations 7 Lecture 10 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT Hardware Implementation of Shift Microoperation 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)
  • 8. Register Transfer and Micro-operations 8 Lecture 10 CSE 211, Computer Organization and Architecture Harjeet Kaur, CSE/IT Arithmetic Logic and Shift Unit 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 S3 S2 S1 S0 Cin Operation 0 0 0 0 0 F = A 0 0 0 0 1 F = A + 1 0 0 0 1 0 F = A + B 0 0 0 1 1 F = A + B + 1 0 0 1 0 0 F = A + B’ 0 0 1 0 1 F = A + B’+ 1 0 0 1 1 0 F = A - 1 0 0 1 1 1 F = A 0 1 0 0 X F = A  B 0 1 0 1 X F = A B 0 1 1 0 X F = A  B 0 1 1 1 X F = A’ 1 0 X X X F = shr A 1 1 X X X F = shl A