SlideShare a Scribd company logo
1 of 20
REGISTER TRANSFER
AND
MICROOPERATIONS
PART 1
Dr. Prasenjit Dey
Contents
DR. PRASENJIT DEY 2
 What is Register Transfer Language
 How Register Transfer happens
 How Bus transfer is implemented
 How Memory transfer is implemented
Introduction
Digital Module
 Consists of a set of registers and a set of instructions/operations
 Instructions are performed on the data stored in the registers
Digital System
 Digital modules interconnected with various data and control buses
to perform certain tasks on the data forms a digital system
DR. PRASENJIT DEY 3
Introduction cont.
The hardwires of a digital computer are:
1. The set of registers that contains the data
2. The sequence of microoperations that perform on the binary
information stored in the registers
3. The control unit that initiates the sequence of microoperations
Digital System = Registers + Microoperations + Control circuit
DR. PRASENJIT DEY 4
Introduction cont.
Micro-instructions/Micro-operations
 Instructions executed on the binary data stored in the registers
 Any digital computer operation consists of a set of micro-instructions
also called micro-operations
Example
 1-bit left shift the content of a register R
 SHL R,1 (R << 1)
DR. PRASENJIT DEY 5
101101110011 1011011100110
1-bit Left Shift Operation
Register Transfer Language (RTL)
Register Transfer Language (RTL)
 A symbolic notation to describe the sequence of microoperations which are
used to manipulate or transfer data from a register to another register
 LW R1,M[x04] [load the content of memory location (x04) into register R1 ]
Computer registers are denoted by capital letters sometimes followed
by numerals, e.g.,
 R1: Register 1 (In MIPS there are 32 registers)
 MAR: Memory Address Register (holds a memory address location)
 PC: Program Counter (holds memory address of the next executable instruction)
 IR: Instruction Register (holds the instruction which is going to be executed)
 SR: Status Register (holds the status information of an operation)
DR. PRASENJIT DEY 6
Register Denotations
A computer register consists of a set of flip-flops
 An n-bit register contains n flip-flops (FFs), each capable of storing 1 bit of
information
 The FFs are numbered from right to left, the left most FF contains the most
significant bit (MSB) and right most FF contains the least significant bit
(LSB)
 A register can be represented in the following manners
DR. PRASENJIT DEY 7
R1 7 6 5 4 3 2 1 0
Register R1 Showing individual bits
MSB LSB
PC
Numbering of bits
15 0
Partitioned into two parts
PC(H) PC(L)
07815
Lower byteUpper byte
Register Transfer
R2 ← R1
It denotes a transfer of the content from register R1 into register R2
The transfer of all bits happens in one clock cycle. Data lines should
exist between R1 and R2 for parallel loading n-bits
The content of the R1 (source) does not change
The content of the R2 (destination) will overwritten by the content of
R1
DR. PRASENJIT DEY 8
Conditional Register Transfer
Conditional transfer occurs only under a control condition
Representation of a (conditional) transfer
P: R2 ← R1
Here a control signal p (P equals to 0 or 1) determines when the
transfer occurs
The content of R1 is transferred into R2 only if P is 1
DR. PRASENJIT DEY 9
Hardware implementation
DR. PRASENJIT DEY 10
n
Clock
R1
R2
Control
Circuit
Load
t t+1
Clock
Load
Transfer when positive edge triggered
Synchronized
with the clock
PBlock diagram:
Timing diagram
Register Transfer Representations
Basic Symbols for Register Transfers
Symbol Description Examples
Letters &
numerals
Denotes a register MAR, R2
Parenthesis ( ) Denotes a part of a
register
R2(0-4), R2(L)
Arrow ← Denotes transfer of
information
R2 ← R1
Comma , Separates two
microoperations
R2 ← R1, R1 ←
R2
DR. PRASENJIT DEY 11
Bus Transfer
DR. PRASENJIT DEY 12
A digital computer has many registers
If there exists a data and control paths between every pair to registers
then
 there will be nc2=n(n-1) paths for n registers and the complexity will be O(n2)
The Bus System
 A set of common lines, one for each bit of a register, through which binary
information is transferred one at a time is called bus
 A centralized bus, all registers are connected with a single data bus for data
transfer
 Control bus determines which register is selected as a source and which
register is selected as destination during each particular register transfer
R1 R3
Data Bus
R2
R(n-1)
R4 Rn
Hardware implementation: Multiplexer
DR. PRASENJIT DEY 13
3 2 1 0
Register D
D3 D2 D1 D0
3 2 1 0
Register C
C3 C2 C1 C0
3 2 1 0
Register B
B3 B2 B1 B0
3 2 1 0
Register A
A3 A2 A1 A0
D3 C3 B3 A3
S0
S1
MUX3
3 2 1 0
D2 C2 B2 A2
S0
S1
MUX2
3 2 1 0
D1 C1 B1 A1
S0
S1
MUX1
3 2 1 0
D0 C0 B0 A0
S0
S1
MUX0
3 2 1 0
4-Line Common Bus
Register A Register B Register C Register D
Bus lines
S0=0
S1=0
Input(n)
Selection
line (log2n)MUX
Output(1)
Question & Answer
Q1: How many selection lines are required to select a register among m
registers?
A: 𝑙𝑜𝑔2(𝑚)
Q2: How many multiplexers are needed if their exists n bits in each
register?
A: n
DR. PRASENJIT DEY 14
Bus Transfer cont.
The transfer of information from a bus into one of many
destination registers is done:
1. By connecting the bus lines to the inputs of all destination
registers and then:
2. activating the load control of the particular destination register
selected
R1 ← B
symbolize that the content of register B is loaded into the
register R1 using the common system bus
It is equivalent to: BUS ←B, (select B)
R1 ←BUS (Load R1)
DR. PRASENJIT DEY 15
Three State Bus Buffers
Three-state buffer gates are alternative of multiplexers for
implementing a bus system
A three-state buffer is a digital circuit that exhibits three states:
◦ logic-0, logic-1, and high-impedance (Hi-Z)
DR. PRASENJIT DEY 16
Normal input A
Control input C
Three-State Buffer
Output B
Three State Bus Buffers cont.
DR. PRASENJIT DEY 17
A
C=1
B A B
A
C=0
B A B
Buffer
Open Circuit
Hardware implementation: Three-State Bus
Buffers
DR. PRASENJIT DEY 18
2×4
Decoder
Select
Enable
0
1
2
3
S1
S0
E
Bus line for bit 1
A1
B1
C1
D1
Memory Transfer
Transfer from memory Memory read
Transfer to memory Memory write
The data content in the memory operation is called memory word (M)
A memory word is denoted by letter M followed by enclosing the
memory address in square brackets
 Example: M[ox0016] : the memory contents at address ox0016
DR. PRASENJIT DEY 19
data input lines
data output lines
n
n
k
address lines
Read
Write
Memory
unit
Memory Transfer cont.
The address of a memory unit is stored in a register called Memory Address
Register(MAR)
The data stored in a register called Data Register(DR)
 Read: DR ← M[MAR] Write: M[MAR] ← DR
Let, read the data from memory word ‘0x10’ into register R1
DR. PRASENJIT DEY 20
MAR
0x10
0x04
0x08
0x0C
0x10
0x14
23
36
17
61
99
R1←M[MAR]
R1
22
Memory
R1
2261

More Related Content

What's hot

Register transfer &amp; microoperations moris mano ch 04
Register transfer &amp; microoperations    moris mano ch 04Register transfer &amp; microoperations    moris mano ch 04
Register transfer &amp; microoperations moris mano ch 04thearticlenow
 
Register reference
Register referenceRegister reference
Register referenceNitesh Singh
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mpMSc CST
 
Register transfer and micro operation
Register transfer and micro operationRegister transfer and micro operation
Register transfer and micro operationKamal Acharya
 
Computer organization prashant odhavani- 160920107003
Computer organization   prashant odhavani- 160920107003Computer organization   prashant odhavani- 160920107003
Computer organization prashant odhavani- 160920107003Prashant odhavani
 
Arm organization and implementation
Arm organization and implementationArm organization and implementation
Arm organization and implementationShubham Singh
 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperationsmahesh kumar prajapat
 
Counters &amp; time delay
Counters &amp; time delayCounters &amp; time delay
Counters &amp; time delayHemant Chetwani
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptxISMT College
 
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
 

What's hot (20)

RTL
RTLRTL
RTL
 
Register transfer &amp; microoperations moris mano ch 04
Register transfer &amp; microoperations    moris mano ch 04Register transfer &amp; microoperations    moris mano ch 04
Register transfer &amp; microoperations moris mano ch 04
 
RTL
 RTL RTL
RTL
 
Register reference
Register referenceRegister reference
Register reference
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mp
 
Register transfer and micro operation
Register transfer and micro operationRegister transfer and micro operation
Register transfer and micro operation
 
Register Transfer Language
Register Transfer LanguageRegister Transfer Language
Register Transfer Language
 
Computer organization prashant odhavani- 160920107003
Computer organization   prashant odhavani- 160920107003Computer organization   prashant odhavani- 160920107003
Computer organization prashant odhavani- 160920107003
 
Arm organization and implementation
Arm organization and implementationArm organization and implementation
Arm organization and implementation
 
Bus system
Bus systemBus system
Bus system
 
Micro operations
Micro operationsMicro operations
Micro operations
 
Registers in coa
Registers in coaRegisters in coa
Registers in coa
 
Lect2 organization 2
Lect2 organization 2Lect2 organization 2
Lect2 organization 2
 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperations
 
Counters &amp; time delay
Counters &amp; time delayCounters &amp; time delay
Counters &amp; time delay
 
3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx3. Addressing Modes in 8085 microprocessor.pptx
3. Addressing Modes in 8085 microprocessor.pptx
 
ARM instruction set
ARM instruction  setARM instruction  set
ARM instruction set
 
Instruction.pdf
Instruction.pdfInstruction.pdf
Instruction.pdf
 
CO by Rakesh Roshan
CO by Rakesh RoshanCO by Rakesh Roshan
CO by Rakesh Roshan
 
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...
 

Similar to Register transfer and microoperations part 1

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
 
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
 
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER  TRANSFER  AND  MICROOPERATIONSREGISTER  TRANSFER  AND  MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONSDr. Ajay Kumar Singh
 
Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4Umang Gupta
 
jekdndnenejidjrjenenjejejejjejriririiriri
jekdndnenejidjrjenenjejejejjejriririiririjekdndnenejidjrjenenjejejejjejriririiriri
jekdndnenejidjrjenenjejejejjejriririiririMitShah72
 
unit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architectureunit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and ArchitectureSwapnitaSrivastava1
 
Register Transfer Language & Microoperations.ppt
Register Transfer Language & Microoperations.pptRegister Transfer Language & Microoperations.ppt
Register Transfer Language & Microoperations.pptAldrianSisican
 
CO UNIT I PART I NOTES (1).ppt
CO UNIT I PART I NOTES (1).pptCO UNIT I PART I NOTES (1).ppt
CO UNIT I PART I NOTES (1).pptAyushiBhatlaITA001
 
Regis&Microo_fgfhkgfvg microperation aee
Regis&Microo_fgfhkgfvg microperation aeeRegis&Microo_fgfhkgfvg microperation aee
Regis&Microo_fgfhkgfvg microperation aeeBala Anand
 
Commputer organization and assembly .ppt
Commputer organization and assembly .pptCommputer organization and assembly .ppt
Commputer organization and assembly .pptamanterefe99
 
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdftemp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdfBhureVedika
 
student important knowledge on computer data .pptx
student important knowledge on computer data .pptxstudent important knowledge on computer data .pptx
student important knowledge on computer data .pptxjainyshah20
 
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
 
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
 
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
 

Similar to Register transfer and microoperations part 1 (20)

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
 
coa
coacoa
coa
 
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
 
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER  TRANSFER  AND  MICROOPERATIONSREGISTER  TRANSFER  AND  MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONS
 
Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4
 
jekdndnenejidjrjenenjejejejjejriririiriri
jekdndnenejidjrjenenjejejejjejriririiririjekdndnenejidjrjenenjejejejjejriririiriri
jekdndnenejidjrjenenjejejejjejriririiriri
 
unit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architectureunit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architecture
 
Register Transfer Language & Microoperations.ppt
Register Transfer Language & Microoperations.pptRegister Transfer Language & Microoperations.ppt
Register Transfer Language & Microoperations.ppt
 
CO UNIT I PART I NOTES (1).ppt
CO UNIT I PART I NOTES (1).pptCO UNIT I PART I NOTES (1).ppt
CO UNIT I PART I NOTES (1).ppt
 
Regis&Microo_fgfhkgfvg microperation aee
Regis&Microo_fgfhkgfvg microperation aeeRegis&Microo_fgfhkgfvg microperation aee
Regis&Microo_fgfhkgfvg microperation aee
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
COA LESSON.ppt
COA LESSON.pptCOA LESSON.ppt
COA LESSON.ppt
 
Chapter4.ppt
Chapter4.pptChapter4.ppt
Chapter4.ppt
 
Commputer organization and assembly .ppt
Commputer organization and assembly .pptCommputer organization and assembly .ppt
Commputer organization and assembly .ppt
 
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdftemp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
temp-1e80a1dc-6041-493a-af5a-e9ac6efabc65.pdf
 
Bus and Memory transfer
Bus and Memory transferBus and Memory transfer
Bus and Memory transfer
 
student important knowledge on computer data .pptx
student important knowledge on computer data .pptxstudent important knowledge on computer data .pptx
student important knowledge on computer data .pptx
 
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 ...
 
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...
 
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...
 

More from Prasenjit Dey

Dynamic interconnection networks
Dynamic interconnection networksDynamic interconnection networks
Dynamic interconnection networksPrasenjit Dey
 
Machine Learning in Agriculture Module 6: classification
Machine Learning in Agriculture Module 6: classificationMachine Learning in Agriculture Module 6: classification
Machine Learning in Agriculture Module 6: classificationPrasenjit Dey
 
Machine Learning in Agriculture Module 3: linear regression
Machine Learning in Agriculture Module 3: linear regressionMachine Learning in Agriculture Module 3: linear regression
Machine Learning in Agriculture Module 3: linear regressionPrasenjit Dey
 
Machine learning in agriculture module 2
Machine learning in agriculture module 2Machine learning in agriculture module 2
Machine learning in agriculture module 2Prasenjit Dey
 
Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1Prasenjit Dey
 
Support vector machine
Support vector machineSupport vector machine
Support vector machinePrasenjit Dey
 
Numerical on general pipelines
Numerical on general pipelinesNumerical on general pipelines
Numerical on general pipelinesPrasenjit Dey
 
General pipeline concepts
General pipeline conceptsGeneral pipeline concepts
General pipeline conceptsPrasenjit Dey
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performancePrasenjit Dey
 
Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPSPrasenjit Dey
 
Page replacement and thrashing
Page replacement and thrashingPage replacement and thrashing
Page replacement and thrashingPrasenjit Dey
 
Register transfer and microoperations part 2
Register transfer and microoperations part 2Register transfer and microoperations part 2
Register transfer and microoperations part 2Prasenjit Dey
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Prasenjit Dey
 
Different types of memory and hardware designs of RAM and ROM
Different types of memory and hardware designs of RAM and ROMDifferent types of memory and hardware designs of RAM and ROM
Different types of memory and hardware designs of RAM and ROMPrasenjit Dey
 
Carry look ahead adder
Carry look ahead adder Carry look ahead adder
Carry look ahead adder Prasenjit Dey
 
Binary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithmBinary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithmPrasenjit Dey
 
Computer organization basics and number systems
Computer organization basics and number systemsComputer organization basics and number systems
Computer organization basics and number systemsPrasenjit Dey
 

More from Prasenjit Dey (20)

Dynamic interconnection networks
Dynamic interconnection networksDynamic interconnection networks
Dynamic interconnection networks
 
Machine Learning in Agriculture Module 6: classification
Machine Learning in Agriculture Module 6: classificationMachine Learning in Agriculture Module 6: classification
Machine Learning in Agriculture Module 6: classification
 
Machine Learning in Agriculture Module 3: linear regression
Machine Learning in Agriculture Module 3: linear regressionMachine Learning in Agriculture Module 3: linear regression
Machine Learning in Agriculture Module 3: linear regression
 
Machine learning in agriculture module 2
Machine learning in agriculture module 2Machine learning in agriculture module 2
Machine learning in agriculture module 2
 
Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1Machine Learning in Agriculture Module 1
Machine Learning in Agriculture Module 1
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Numerical on general pipelines
Numerical on general pipelinesNumerical on general pipelines
Numerical on general pipelines
 
General pipeline concepts
General pipeline conceptsGeneral pipeline concepts
General pipeline concepts
 
Evaluation of computer performance
Evaluation of computer performanceEvaluation of computer performance
Evaluation of computer performance
 
Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPS
 
Page replacement and thrashing
Page replacement and thrashingPage replacement and thrashing
Page replacement and thrashing
 
Addressing mode
Addressing modeAddressing mode
Addressing mode
 
Register transfer and microoperations part 2
Register transfer and microoperations part 2Register transfer and microoperations part 2
Register transfer and microoperations part 2
 
Instruction set (prasenjit dey)
Instruction set (prasenjit dey)Instruction set (prasenjit dey)
Instruction set (prasenjit dey)
 
Different types of memory and hardware designs of RAM and ROM
Different types of memory and hardware designs of RAM and ROMDifferent types of memory and hardware designs of RAM and ROM
Different types of memory and hardware designs of RAM and ROM
 
Cache memory
Cache  memoryCache  memory
Cache memory
 
Carry look ahead adder
Carry look ahead adder Carry look ahead adder
Carry look ahead adder
 
Binary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithmBinary division restoration and non restoration algorithm
Binary division restoration and non restoration algorithm
 
Booth's algorithm
Booth's algorithm Booth's algorithm
Booth's algorithm
 
Computer organization basics and number systems
Computer organization basics and number systemsComputer organization basics and number systems
Computer organization basics and number systems
 

Recently uploaded

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

Recently uploaded (20)

Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 

Register transfer and microoperations part 1

  • 2. Contents DR. PRASENJIT DEY 2  What is Register Transfer Language  How Register Transfer happens  How Bus transfer is implemented  How Memory transfer is implemented
  • 3. Introduction Digital Module  Consists of a set of registers and a set of instructions/operations  Instructions are performed on the data stored in the registers Digital System  Digital modules interconnected with various data and control buses to perform certain tasks on the data forms a digital system DR. PRASENJIT DEY 3
  • 4. Introduction cont. The hardwires of a digital computer are: 1. The set of registers that contains the data 2. The sequence of microoperations that perform on the binary information stored in the registers 3. The control unit that initiates the sequence of microoperations Digital System = Registers + Microoperations + Control circuit DR. PRASENJIT DEY 4
  • 5. Introduction cont. Micro-instructions/Micro-operations  Instructions executed on the binary data stored in the registers  Any digital computer operation consists of a set of micro-instructions also called micro-operations Example  1-bit left shift the content of a register R  SHL R,1 (R << 1) DR. PRASENJIT DEY 5 101101110011 1011011100110 1-bit Left Shift Operation
  • 6. Register Transfer Language (RTL) Register Transfer Language (RTL)  A symbolic notation to describe the sequence of microoperations which are used to manipulate or transfer data from a register to another register  LW R1,M[x04] [load the content of memory location (x04) into register R1 ] Computer registers are denoted by capital letters sometimes followed by numerals, e.g.,  R1: Register 1 (In MIPS there are 32 registers)  MAR: Memory Address Register (holds a memory address location)  PC: Program Counter (holds memory address of the next executable instruction)  IR: Instruction Register (holds the instruction which is going to be executed)  SR: Status Register (holds the status information of an operation) DR. PRASENJIT DEY 6
  • 7. Register Denotations A computer register consists of a set of flip-flops  An n-bit register contains n flip-flops (FFs), each capable of storing 1 bit of information  The FFs are numbered from right to left, the left most FF contains the most significant bit (MSB) and right most FF contains the least significant bit (LSB)  A register can be represented in the following manners DR. PRASENJIT DEY 7 R1 7 6 5 4 3 2 1 0 Register R1 Showing individual bits MSB LSB PC Numbering of bits 15 0 Partitioned into two parts PC(H) PC(L) 07815 Lower byteUpper byte
  • 8. Register Transfer R2 ← R1 It denotes a transfer of the content from register R1 into register R2 The transfer of all bits happens in one clock cycle. Data lines should exist between R1 and R2 for parallel loading n-bits The content of the R1 (source) does not change The content of the R2 (destination) will overwritten by the content of R1 DR. PRASENJIT DEY 8
  • 9. Conditional Register Transfer Conditional transfer occurs only under a control condition Representation of a (conditional) transfer P: R2 ← R1 Here a control signal p (P equals to 0 or 1) determines when the transfer occurs The content of R1 is transferred into R2 only if P is 1 DR. PRASENJIT DEY 9
  • 10. Hardware implementation DR. PRASENJIT DEY 10 n Clock R1 R2 Control Circuit Load t t+1 Clock Load Transfer when positive edge triggered Synchronized with the clock PBlock diagram: Timing diagram
  • 11. Register Transfer Representations Basic Symbols for Register Transfers Symbol Description Examples Letters & numerals Denotes a register MAR, R2 Parenthesis ( ) Denotes a part of a register R2(0-4), R2(L) Arrow ← Denotes transfer of information R2 ← R1 Comma , Separates two microoperations R2 ← R1, R1 ← R2 DR. PRASENJIT DEY 11
  • 12. Bus Transfer DR. PRASENJIT DEY 12 A digital computer has many registers If there exists a data and control paths between every pair to registers then  there will be nc2=n(n-1) paths for n registers and the complexity will be O(n2) The Bus System  A set of common lines, one for each bit of a register, through which binary information is transferred one at a time is called bus  A centralized bus, all registers are connected with a single data bus for data transfer  Control bus determines which register is selected as a source and which register is selected as destination during each particular register transfer R1 R3 Data Bus R2 R(n-1) R4 Rn
  • 13. Hardware implementation: Multiplexer DR. PRASENJIT DEY 13 3 2 1 0 Register D D3 D2 D1 D0 3 2 1 0 Register C C3 C2 C1 C0 3 2 1 0 Register B B3 B2 B1 B0 3 2 1 0 Register A A3 A2 A1 A0 D3 C3 B3 A3 S0 S1 MUX3 3 2 1 0 D2 C2 B2 A2 S0 S1 MUX2 3 2 1 0 D1 C1 B1 A1 S0 S1 MUX1 3 2 1 0 D0 C0 B0 A0 S0 S1 MUX0 3 2 1 0 4-Line Common Bus Register A Register B Register C Register D Bus lines S0=0 S1=0 Input(n) Selection line (log2n)MUX Output(1)
  • 14. Question & Answer Q1: How many selection lines are required to select a register among m registers? A: 𝑙𝑜𝑔2(𝑚) Q2: How many multiplexers are needed if their exists n bits in each register? A: n DR. PRASENJIT DEY 14
  • 15. Bus Transfer cont. The transfer of information from a bus into one of many destination registers is done: 1. By connecting the bus lines to the inputs of all destination registers and then: 2. activating the load control of the particular destination register selected R1 ← B symbolize that the content of register B is loaded into the register R1 using the common system bus It is equivalent to: BUS ←B, (select B) R1 ←BUS (Load R1) DR. PRASENJIT DEY 15
  • 16. Three State Bus Buffers Three-state buffer gates are alternative of multiplexers for implementing a bus system A three-state buffer is a digital circuit that exhibits three states: ◦ logic-0, logic-1, and high-impedance (Hi-Z) DR. PRASENJIT DEY 16 Normal input A Control input C Three-State Buffer Output B
  • 17. Three State Bus Buffers cont. DR. PRASENJIT DEY 17 A C=1 B A B A C=0 B A B Buffer Open Circuit
  • 18. Hardware implementation: Three-State Bus Buffers DR. PRASENJIT DEY 18 2×4 Decoder Select Enable 0 1 2 3 S1 S0 E Bus line for bit 1 A1 B1 C1 D1
  • 19. Memory Transfer Transfer from memory Memory read Transfer to memory Memory write The data content in the memory operation is called memory word (M) A memory word is denoted by letter M followed by enclosing the memory address in square brackets  Example: M[ox0016] : the memory contents at address ox0016 DR. PRASENJIT DEY 19 data input lines data output lines n n k address lines Read Write Memory unit
  • 20. Memory Transfer cont. The address of a memory unit is stored in a register called Memory Address Register(MAR) The data stored in a register called Data Register(DR)  Read: DR ← M[MAR] Write: M[MAR] ← DR Let, read the data from memory word ‘0x10’ into register R1 DR. PRASENJIT DEY 20 MAR 0x10 0x04 0x08 0x0C 0x10 0x14 23 36 17 61 99 R1←M[MAR] R1 22 Memory R1 2261