SlideShare a Scribd company logo
1 of 18
Tarunpreet Bhatia 
CSED, Thapar University
 Register Transfer language 
 Register Transfer Bus and memory transfers 
 Arithmetic Micro-operations 
 Logic micro operations 
 Shift micro operations 
 Arithmetic logic shift unit
 Combinational and sequential circuits can be used to 
create simple digital systems. 
 These are the low-level building blocks of a digital 
computer. 
 Simple digital systems are frequently characterized in 
terms of 
◦ the registers they contain, and 
◦ the operations that they perform. 
 Microoperation: An elementary operation performed 
(during one clock pulse), on the information stored in one 
or more registers.
- Set of registers it contains and their function 
- The sequence of microoperations performed on the 
binary information stored in the registers 
- Control signals that initiate the sequence of 
microoperations
 The symbolic notation used to describe the 
microoperation transfers among registers is called a 
Register transfer language. 
 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.
Block diagram of a register 
R1 
Register R 
15 0 
Numbering of bits 
7 6 5 4 3 2 1 0 
Showing individual bits 
15 8 7 0 
PC(H) PC(L) 
Subfields (Divided into two parts) 
R2
Symbols Description Examples 
Capital letters Denotes a register MAR, R2 
& 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
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 
Register A Register B Register C Register D 
Bus lines 
Register A Register B Register C Register D 
1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 
B1C1D1 
0 0 0 0 
4 x1 
MUX 
B2 C2 D2 
4 x1 
MUX 
B3C3D3 
4 x1 
MUX 
B4C4D4 
4 x1 
MUX 
4-line common bus 
s1 
s0 
Select lines
Bus lines 
Reg. R0 Reg. R1 Reg. R2 Reg. R3 
Bus line with three-state buffers 
2 x 4 
Decoder 
Load 
D0 D1 D2 D s0 3 
s1 
Select 
E (enable) 
Select 
Enable 
0 
12 
3 
S0 
S1 
A0 
B0 
C0 
D0 
Bus line for bit 0
1. Show Block diagram of the hardware that implements 
following register reference statement: 
yT2: R2 <- R1, R1 <- R2 
2. Design a bus system for four registers each 4 bit long using 
three state buffers and a decoder instead of multiplexers. 
3. If (P=1) then R1 <- R2 else if (Q=1) then R1 <- R3 
4. A digital computer has a common bus system for 16 
registers of 32 bits each. The bus is constructed with 
multiplexers. 
a. How many selection inputs are there in each MUX. 
b. What size of multiplexers are needed? 
c. How many multiplexers are there in the bus?
 Memory (RAM) can be thought as a sequential circuits containing 
some number of registers 
 These registers hold the words of memory 
 Each of the r registers is indicated by an address 
 These addresses range from 0 to r-1 
 Each register (word) can hold n bits of data 
 Since it contains multiple locations, we must specify which 
address in memory we will be using 
 This is done by indexing memory references 
 Memory is usually accessed in computer systems by putting the 
desired address in a special register, the Memory Address Register 
(MAR, or AR) 
 When memory is accessed, the contents of the MAR get sent to 
the memory unit’s address lines
To read a value from a location in memory and load it into 
a register, the register transfer language notation looks 
like this: 
R1  M[MAR] 
MEMORY WRITE 
To write a value from a register to a location in memory 
looks like this in register transfer language: 
M[MAR]  R1
Calculate Address lines, Data Lines and memory 
capacity in bytes for the following: 
◦ 2K X 16 
◦ 64K X 8 
◦ 16M X 32 
◦ 4G X 64
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
Computer system microoperations are of four 
types: 
1. Register transfer microoperations transfer binary 
information from one register to another 
2. Arithmetic microoperations perform arithmetic 
operations on numeric data stored in registers. 
3. Logic microoperations perform bit manipulation 
operations on non numeric data stored in 
registers. 
4. Shift microoperations perform shift operations on 
data stored in registers.
 The basic arithmetic microoperations are 
◦ Addition 
◦ Subtraction 
◦ Increment 
◦ Decrement 
 The additional arithmetic microoperations are 
◦ Add with carry 
◦ Subtract with borrow 
◦ Transfer/Load 
◦ etc. … 
Table: Arithmetic Micro-Operations 
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
B0 A0 
FA C2 
FA C1 
FA FA 
C0 
S0 
B1 A1 
S1 
B2 A2 
S2 
B3 A3 
S3 
C3 
C4 
Binary Adder-Subtractor 
B0 A0 
FA C1 FA 
C0 
S0 
B1 A1 
S1 
B2 A2 
FA C2 
S2 
B3 A3 
FA C3 
C4 S3 
M 
Binary Incrementer 
A0 1 
x y 
HA 
C S 
S0 
A1 
x y 
HA 
C S 
S1 
A2 
x y 
HA 
C S 
S2 
A3 
x y 
HA 
C S 
C4 S3 
Binary Adder
S1 
S0 
01 
2 
3 
4x1 
MUX 
X0 
Y0 
C0 
D0 FA 
C1 
S1 
S0 
0 
12 
3 
4x1 
MUX 
X1 
Y1 
C1 
FA D1 
C2 
S1 
S0 
012 
3 
4x1 
MUX 
X2 
Y2 
C2 
FA D2 
C3 
S1 
S0 
012 
3 
4x1 
MUX 
X3 
Y3 
C3 
D3 FA 
C4 
Cout 
Cin 
S1 
A0 
B0 
A1 
B1 
A2 
B2 
A3 
B3 
0 1 
S0 
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

More Related Content

What's hot

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
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtlMazin Alwaaly
 
Register transfer language
Register  transfer languageRegister  transfer language
Register transfer languagehamza munir
 
Register transfer and micro operation
Register transfer and micro operationRegister transfer and micro operation
Register transfer and micro operationKamal Acharya
 
Register transfer language & its micro operations
Register transfer language & its micro operationsRegister transfer language & its micro operations
Register transfer language & its micro operationsLakshya Sharma
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mpMSc CST
 
Computer organization prashant odhavani- 160920107003
Computer organization   prashant odhavani- 160920107003Computer organization   prashant odhavani- 160920107003
Computer organization prashant odhavani- 160920107003Prashant odhavani
 
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
 
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
 
Register transfer and microoperations part 1
Register transfer and microoperations part 1Register transfer and microoperations part 1
Register transfer and microoperations part 1Prasenjit Dey
 
8051 addressing modes
8051 addressing modes8051 addressing modes
8051 addressing modessb108ec
 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperationsSURBHI SAROHA
 

What's hot (20)

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
 
Computer architecture register transfer languages rtl
Computer architecture register transfer languages rtlComputer architecture register transfer languages rtl
Computer architecture register transfer languages rtl
 
RTL
RTLRTL
RTL
 
Register transfer language
Register  transfer languageRegister  transfer language
Register transfer language
 
Register transfer and micro operation
Register transfer and micro operationRegister transfer and micro operation
Register transfer and micro operation
 
Register transfer language & its micro operations
Register transfer language & its micro operationsRegister transfer language & its micro operations
Register transfer language & its micro operations
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mp
 
Computer organization prashant odhavani- 160920107003
Computer organization   prashant odhavani- 160920107003Computer organization   prashant odhavani- 160920107003
Computer organization prashant odhavani- 160920107003
 
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
 
Co ppt
Co pptCo ppt
Co ppt
 
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...
 
Computer organization
Computer organizationComputer organization
Computer organization
 
Register transfer and microoperations part 1
Register transfer and microoperations part 1Register transfer and microoperations part 1
Register transfer and microoperations part 1
 
RTL
 RTL RTL
RTL
 
8051 addressing modes
8051 addressing modes8051 addressing modes
8051 addressing modes
 
Micro operations
Micro operationsMicro operations
Micro operations
 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperations
 
CO by Rakesh Roshan
CO by Rakesh RoshanCO by Rakesh Roshan
CO by Rakesh Roshan
 
Registers in coa
Registers in coaRegisters in coa
Registers in coa
 
Instruction.pdf
Instruction.pdfInstruction.pdf
Instruction.pdf
 

Viewers also liked

Von Neumann Architecture
Von Neumann Architecture   Von Neumann Architecture
Von Neumann Architecture Lor Ham
 
Arithmetic logic units
Arithmetic logic unitsArithmetic logic units
Arithmetic logic unitsowaisahmad125
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbersMOHAN MOHAN
 
Arithmetic Logic Unit .
Arithmetic Logic Unit .Arithmetic Logic Unit .
Arithmetic Logic Unit .Deyaa Ahmed
 
Lecture 2
Lecture 2Lecture 2
Lecture 2GIKI
 
ALU arithmetic logic unit
ALU  arithmetic logic unitALU  arithmetic logic unit
ALU arithmetic logic unitKarthik Prof.
 
Register Organization and Instruction cycle
Register Organization and Instruction cycleRegister Organization and Instruction cycle
Register Organization and Instruction cycleMuhammad Ameer Mohavia
 
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
 
N301 Von Neumann Architecture
N301 Von Neumann ArchitectureN301 Von Neumann Architecture
N301 Von Neumann Architectureguest3b9707
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann ArchitectureJawad Farooqi
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Student
 

Viewers also liked (14)

Von Neumann Architecture
Von Neumann Architecture   Von Neumann Architecture
Von Neumann Architecture
 
Arithmetic logic units
Arithmetic logic unitsArithmetic logic units
Arithmetic logic units
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
Arithmetic Logic Unit .
Arithmetic Logic Unit .Arithmetic Logic Unit .
Arithmetic Logic Unit .
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
ALU arithmetic logic unit
ALU  arithmetic logic unitALU  arithmetic logic unit
ALU arithmetic logic unit
 
Register Organization and Instruction cycle
Register Organization and Instruction cycleRegister Organization and Instruction cycle
Register Organization and Instruction cycle
 
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
 
N301 Von Neumann Architecture
N301 Von Neumann ArchitectureN301 Von Neumann Architecture
N301 Von Neumann Architecture
 
Von Neumann Architecture
Von Neumann ArchitectureVon Neumann Architecture
Von Neumann Architecture
 
06 floating point
06 floating point06 floating point
06 floating point
 
ALU
ALUALU
ALU
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 

Similar to Register reference

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
 
Commputer organization and assembly .ppt
Commputer organization and assembly .pptCommputer organization and assembly .ppt
Commputer organization and assembly .pptamanterefe99
 
unit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architectureunit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and ArchitectureSwapnitaSrivastava1
 
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
 
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER  TRANSFER  AND  MICROOPERATIONSREGISTER  TRANSFER  AND  MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONSDr. Ajay Kumar Singh
 
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
 
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 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
 
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
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noidaEdhole.com
 
Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4Umang Gupta
 
jekdndnenejidjrjenenjejejejjejriririiriri
jekdndnenejidjrjenenjejejejjejriririiririjekdndnenejidjrjenenjejejejjejriririiriri
jekdndnenejidjrjenenjejejejjejriririiririMitShah72
 

Similar to Register reference (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
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Commputer organization and assembly .ppt
Commputer organization and assembly .pptCommputer organization and assembly .ppt
Commputer organization and assembly .ppt
 
unit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architectureunit1COA Computer Organisation and Architecture
unit1COA Computer Organisation and Architecture
 
coa
coacoa
coa
 
Chapter4.ppt
Chapter4.pptChapter4.ppt
Chapter4.ppt
 
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 ...
 
REGISTER TRANSFER AND MICROOPERATIONS
REGISTER  TRANSFER  AND  MICROOPERATIONSREGISTER  TRANSFER  AND  MICROOPERATIONS
REGISTER TRANSFER AND MICROOPERATIONS
 
COA LESSON.ppt
COA LESSON.pptCOA LESSON.ppt
COA LESSON.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
 
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 & 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
 
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...
 
Top schools in noida
Top schools in noidaTop schools in noida
Top schools in noida
 
COA pptx.pptx
COA pptx.pptxCOA pptx.pptx
COA pptx.pptx
 
Computer organiztion4
Computer organiztion4Computer organiztion4
Computer organiztion4
 
jekdndnenejidjrjenenjejejejjejriririiriri
jekdndnenejidjrjenenjejejejjejriririiririjekdndnenejidjrjenenjejejejjejriririiriri
jekdndnenejidjrjenenjejejejjejriririiriri
 

More from Nitesh Singh

More from Nitesh Singh (20)

Risk taking and emotions
Risk taking and emotionsRisk taking and emotions
Risk taking and emotions
 
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SADProject report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
 
The real comedy behind comedy
The real comedy behind comedyThe real comedy behind comedy
The real comedy behind comedy
 
Project report Rs Dry celaners
Project report Rs Dry celaners Project report Rs Dry celaners
Project report Rs Dry celaners
 
BIG DATA ANALYSIS
BIG DATA ANALYSISBIG DATA ANALYSIS
BIG DATA ANALYSIS
 
Udp vs-tcp
Udp vs-tcpUdp vs-tcp
Udp vs-tcp
 
Routing protocols-network-layer
Routing protocols-network-layerRouting protocols-network-layer
Routing protocols-network-layer
 
Routers vs-switch
Routers vs-switchRouters vs-switch
Routers vs-switch
 
New udp
New udpNew udp
New udp
 
I pv4 format
I pv4 formatI pv4 format
I pv4 format
 
I pv4 addressing
I pv4 addressingI pv4 addressing
I pv4 addressing
 
Hub vs-switch
Hub vs-switchHub vs-switch
Hub vs-switch
 
Ftp
FtpFtp
Ftp
 
Email ftp
Email ftpEmail ftp
Email ftp
 
Www and http
Www and httpWww and http
Www and http
 
Transmission main
Transmission mainTransmission main
Transmission main
 
Ta 104-topology
Ta 104-topologyTa 104-topology
Ta 104-topology
 
Ta 104-topology (1)
Ta 104-topology (1)Ta 104-topology (1)
Ta 104-topology (1)
 
Ta 104-tcp
Ta 104-tcpTa 104-tcp
Ta 104-tcp
 
Ta 104-media-3
Ta 104-media-3Ta 104-media-3
Ta 104-media-3
 

Register reference

  • 1. Tarunpreet Bhatia CSED, Thapar University
  • 2.  Register Transfer language  Register Transfer Bus and memory transfers  Arithmetic Micro-operations  Logic micro operations  Shift micro operations  Arithmetic logic shift unit
  • 3.  Combinational and sequential circuits can be used to create simple digital systems.  These are the low-level building blocks of a digital computer.  Simple digital systems are frequently characterized in terms of ◦ the registers they contain, and ◦ the operations that they perform.  Microoperation: An elementary operation performed (during one clock pulse), on the information stored in one or more registers.
  • 4. - Set of registers it contains and their function - The sequence of microoperations performed on the binary information stored in the registers - Control signals that initiate the sequence of microoperations
  • 5.  The symbolic notation used to describe the microoperation transfers among registers is called a Register transfer language.  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.
  • 6. Block diagram of a register R1 Register R 15 0 Numbering of bits 7 6 5 4 3 2 1 0 Showing individual bits 15 8 7 0 PC(H) PC(L) Subfields (Divided into two parts) R2
  • 7. Symbols Description Examples Capital letters Denotes a register MAR, R2 & 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
  • 8. 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 Register A Register B Register C Register D Bus lines Register A Register B Register C Register D 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 B1C1D1 0 0 0 0 4 x1 MUX B2 C2 D2 4 x1 MUX B3C3D3 4 x1 MUX B4C4D4 4 x1 MUX 4-line common bus s1 s0 Select lines
  • 9. Bus lines Reg. R0 Reg. R1 Reg. R2 Reg. R3 Bus line with three-state buffers 2 x 4 Decoder Load D0 D1 D2 D s0 3 s1 Select E (enable) Select Enable 0 12 3 S0 S1 A0 B0 C0 D0 Bus line for bit 0
  • 10. 1. Show Block diagram of the hardware that implements following register reference statement: yT2: R2 <- R1, R1 <- R2 2. Design a bus system for four registers each 4 bit long using three state buffers and a decoder instead of multiplexers. 3. If (P=1) then R1 <- R2 else if (Q=1) then R1 <- R3 4. A digital computer has a common bus system for 16 registers of 32 bits each. The bus is constructed with multiplexers. a. How many selection inputs are there in each MUX. b. What size of multiplexers are needed? c. How many multiplexers are there in the bus?
  • 11.  Memory (RAM) can be thought as a sequential circuits containing some number of registers  These registers hold the words of memory  Each of the r registers is indicated by an address  These addresses range from 0 to r-1  Each register (word) can hold n bits of data  Since it contains multiple locations, we must specify which address in memory we will be using  This is done by indexing memory references  Memory is usually accessed in computer systems by putting the desired address in a special register, the Memory Address Register (MAR, or AR)  When memory is accessed, the contents of the MAR get sent to the memory unit’s address lines
  • 12. To read a value from a location in memory and load it into a register, the register transfer language notation looks like this: R1  M[MAR] MEMORY WRITE To write a value from a register to a location in memory looks like this in register transfer language: M[MAR]  R1
  • 13. Calculate Address lines, Data Lines and memory capacity in bytes for the following: ◦ 2K X 16 ◦ 64K X 8 ◦ 16M X 32 ◦ 4G X 64
  • 14. 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
  • 15. Computer system microoperations are of four types: 1. Register transfer microoperations transfer binary information from one register to another 2. Arithmetic microoperations perform arithmetic operations on numeric data stored in registers. 3. Logic microoperations perform bit manipulation operations on non numeric data stored in registers. 4. Shift microoperations perform shift operations on data stored in registers.
  • 16.  The basic arithmetic microoperations are ◦ Addition ◦ Subtraction ◦ Increment ◦ Decrement  The additional arithmetic microoperations are ◦ Add with carry ◦ Subtract with borrow ◦ Transfer/Load ◦ etc. … Table: Arithmetic Micro-Operations 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
  • 17. B0 A0 FA C2 FA C1 FA FA C0 S0 B1 A1 S1 B2 A2 S2 B3 A3 S3 C3 C4 Binary Adder-Subtractor B0 A0 FA C1 FA C0 S0 B1 A1 S1 B2 A2 FA C2 S2 B3 A3 FA C3 C4 S3 M Binary Incrementer A0 1 x y HA C S S0 A1 x y HA C S S1 A2 x y HA C S S2 A3 x y HA C S C4 S3 Binary Adder
  • 18. S1 S0 01 2 3 4x1 MUX X0 Y0 C0 D0 FA C1 S1 S0 0 12 3 4x1 MUX X1 Y1 C1 FA D1 C2 S1 S0 012 3 4x1 MUX X2 Y2 C2 FA D2 C3 S1 S0 012 3 4x1 MUX X3 Y3 C3 D3 FA C4 Cout Cin S1 A0 B0 A1 B1 A2 B2 A3 B3 0 1 S0 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