Subject Name: Computer Architecture Department of Information Technology Created By: Ms. Snehlata

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

Subject Name: Computer Architecture

Department of Information Technology


Created By: Ms. Snehlata

Jagannath International Management School


Vasant Kunj, New Delhi - 110070
(Affiliated to Guru Gobind Singh Indraprastha University, New Delhi)
Recognized u/s 2(f) by UGC & Accredited with ‘A’ Grade by NAAC
Participant of UNGC & UNPRME, New York
ISO 9001:2015 Quality Certified
Programme : BCA
Semester : III
Subject Code : BCA-203
Subject : Computer Architecture
Topic : Shift Micro Operations
Lecture No. : 10
Faculty : Ms. Snehlata

By: Ms. Snehlata


List of Topics to be covered

 Introduction
 Types of Mircooperations
 Hardware Implementation

By: Ms. Snehlata


Introduction

• Shift operations represents shifting of bits, either in left direction or in right direction

• There are three types of shifts


– Logical shift
– Circular shift
– Arithmetic shift

• What differentiates them is the information that goes into the serial input

By: Ms. Snehlata


Logical Shift Operations

Logical Shift Left Operation:

Logical Shift Right Operation:

By: Ms. Snehlata


Circular Shift Operations

• In a circular shift the serial input is the bit that is shifted out of the other end of the register.

• Circular Left Shift:

• Circular Right Shift:

By: Ms. Snehlata


Arithmetic Shift Operations

• An arithmetic shift is meant for signed binary numbers (integer)


• 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

By: Ms. Snehlata


Shift Operations

• In a RTL, Logical Shift:


– shl for a logical shift left
– shr for a logical shift right
– Examples:
• R1  shr R1
• R5  shl R5

• Circular Shift:
– cil for a circular shift left
– cir for a circular shift right
– Examples:
• R1  cir R1
• R5  cil R5

• Arithmetic Shift:
– ashl for an arithmetic shift left
– ashr for an arithmetic shift right
– Examples:
» R2  ashr R2
» R3  ashl R3
By: Ms. Snehlata
Source: M. Morris Mano, Computer System Architecture, 3 rd
Edition, Pearson

Thank You !!

By: Ms. Snehlata

You might also like