SlideShare a Scribd company logo
Department of Computer and IT Engineering
University of Kurdistan
Computer Architecture
Register Transfer Language (RTL)
By: Dr. Alireza Abdollahpouri
2
 Datapath ( )
The ALU, registers and logic to perform operations on them
 Control unit ( )
 Generates signals to control datapath
 Accepts status signals to perform sequencing
Control
unit
Data Path
ٌ‫پزداسوذ‬ ‫یک‬ ‫اساسی‬ ‫بخش‬ ‫دي‬
3
‫رجيستز‬ ‫اوتقال‬ ‫سبان‬
:
RTL
datapath
RTL
RTL
RTL (Register Transfer language)
Micro Operation
Shift , Load , Clear , Inc ,Dec
4
‫قًاويه‬
RTL
:
MAR=Memory Address Register PC= Program Counter
IR= Instruction Register R1=( )
PC
3
4
5
6
7 0
1
2 n
0
n-1
7
15 8
PC(L)
PC(H)
0
PC(H)= PC(8-15)
PC(L)= PC( 0-7 )
5

:
R2  R1
R1
R2
R1
R2
R1
.
R1
R2
R2
Parallel Load
‫قًاويه‬
RTL

R1  R1+R2, R3  0
6
‫تابغ‬
‫کىتزل‬
‫ی‬
:
P: R2  R1
If (P=1) then (R2 R1)
Control
Circuit
R2
R1
Load
n
P
CLK
7
‫سمان‬
‫بىذ‬
‫ي‬
Clk
t+1
Load (P)
t
t+1
P
Clk
.
t
P
t+1
P
R1
R2
T: R2 R1 , R1 R2
8
Multiplexer-Based Transfers
 Consider
 Which can also be expressed as
 Block diagram?
2
0
)
1
2
(
)
1
0
(
)
1
1
( R
R
then
K
if
else
R
R
then
K
if 



2
0
:
2
1
,
1
0
:
1
R
R
K
K
R
R
K


9
Multiplexer Block Diagram
2
0
:
2
1
,
1
0
:
1
R
R
K
K
R
R
K


10
2
1
1
)
1
(
)
7
1
(
)
0
1
( R
R
R
then
K
if
else
R
then
R
if 




Control
unit
R2
Load
n
K
R1
MUX
+ n
1
0
7 (0…0111)
‫تمزیه‬
11
ٌ‫گذرگا‬ ‫طزیق‬ ‫اس‬ ‫اوتقال‬
(
BUS
)

Bus

Bus
n
n

Bus
.1
.2
12
BUS
‫اس‬ ٌ‫استفاد‬ ‫با‬
MUX
0
1
2
3
S0
S1
S0
S1 4 line Bus
4x1
MUX
A
B
C
D
Reg Selected
S0 S1
A
0 0
B
0 1
C
1 0
D
1 1
0
1
2
3
0
1
2
3
0
1
2
3
0
1
2
3
4x1
MUX
4x1
MUX
4x1
MUX
MUX
Mux 0
bus
MUX
13
‫طزیق‬ ‫اس‬ ‫اوتقال‬
BUS

BUS
S1S0
BUS
Load
A
B
:
BUS
:
BUS  A , B  Bus
B  A
14

Output Y
Input A
Control C
Y=A c=1
Y=High Impedance c=0
‫ساسي‬ ٌ‫پياد‬
BUS
‫گيتُاي‬ ‫اس‬ ٌ‫استفاد‬ ‫با‬
3
ٍ‫حالت‬
:
TriState
Buffer
15

Bus

Decoder
Bus line for bit 0
A0
B0
C0
D0
2x4
Decoder
Enable
S0
S1
‫ساسي‬ ٌ‫پياد‬
BUS
‫گيتُاي‬ ‫اس‬ ٌ‫استفاد‬ ‫با‬
3
ٍ‫حالت‬
:
TriState
Buffer
16
‫اوًاع‬
‫م‬
‫يکزي‬
‫اپز‬
‫یشه‬
‫ریشػمليات‬ ‫یا‬

:
.1
.2
.3
.
.4
Shift
17
ٍ‫حافظ‬ ‫اوتقال‬
:
AR
DR
Read
Address Register
DR
Write

AR
M[AR]
.
.

:
Read :  
AR
M
DR 
Write :   1
R
AR
M 
AR
Memory
unit
Read
Write
Data in
Data out
18
‫م‬
‫يکزياپزیشه‬
‫َا‬
‫ي‬
‫محاسبات‬
‫ی‬

:


R3  R1+R2
FA
B0 A0
S0
C0
FA
B1 A1
S1
C1
FA
B2 A2
S2
C2
FA
B3 A3
S3
C3
C4
19
:
INC
DEC
‫م‬
‫يکزياپزیشه‬
‫َا‬
‫ي‬
‫محاسبات‬
‫ی‬
R3  R1-R2
‫معادل‬
‫است‬
‫با‬
R3  R1+R2+1
R1  R1-1 R1  R1+1
HA
x y
C S
A
0 1
S0
HA
x y
C S
A
1
S1
HA
x y
C S
A
2
S2
HA
x y
C S
A
3
S3
C4
20
ٌ‫کىىذ‬ ‫جمغ‬
‫بایىزي‬ ٌ‫کىىذ‬ ‫تفزیق‬ ‫ي‬
n
FA
R1
R2
B3 B2 B1 B0
A0
A1
A2
A3
FA
FA
M
S0
S1
S2
S3
C0
C4 C1
C2
C3
FA
FA
M=0 S=A+B
M=1 S=A-B
21
S1
S1
B
B
S1
B
Micro Operatioon
Add
Add With Carry
Sub with Borrow
Sub
Inc
Dec
Transfor
.
‫مذار‬
‫ياحذ‬
‫محاسبات‬
‫ی‬
D= A+Y+Cin
Fi
S0
S1
0
1
2
3
4x1
MUX
Fi
X0
S1
0
1
2
3
4x1
MUX
Fi
S0
S1
0
1
2
3
4x1
MUX
Fi
S0
S1
0
1
2
3
4x1
MUX
C0
C1
Y0
FA
X1 C1
C2
Y1
X3 C2
C3
Y3
X3 C3
C4
Y3
Cin
Cout
A0
A1
A2
A3
S1
S0
B
0
1
S0
B
0
1
S0
B
0
1
S0
B
B
0
1
D0
D1
D2
D3
S0 S1 CIN Y D
0 0 0 B A+B
0 0 1 B A+B+1
0 1 0 B A+B
0 1 1 B A+B+1
1 0 0 0 A
1 0 1 0 A+1
1 1 0 1 A-1
1 1 1 1 A
S0
22
‫م‬
‫يکزياپزیشه‬
‫َا‬
‫ي‬
‫مىطق‬
‫ی‬
Logic MicroOperations

.

XOR

OR

AND
2
1
1
: R
R
R
P 

2
1
1
: R
R
R
P 

2
1
1
: R
R
R
P 

23
‫م‬ ‫افشاري‬ ‫سخت‬ ‫ساسي‬ ٌ‫پياد‬
‫يکزياپزیشه‬
‫َا‬
‫ي‬
‫مىطق‬
‫ی‬
Ei
S1
S0
Ai
Bi
S0 S1
MUX
0
1
2
0 0
0 1
1 0
1 1
S1 S0 OutPut
B
A
E 

B
A
E 

B
A
E 

A
E 
3
24
‫بزخ‬
‫ی‬
‫کاربزدَا‬
‫ي‬
‫اپزیشه‬ ‫ميکزي‬
‫مىطقی‬ ‫َاي‬
Selective Set
A
B
B
A
A 

1110
1100
1010
A
B
)
A
(
A
selective clear
25

‫م‬
‫يکزي‬
‫اپز‬
‫یشه‬
‫َا‬
‫ي‬
‫ش‬
‫يفت‬
1 1 0 Si
Si 0 1 1 0 1 1 0
0 1 1 0
Si
Si So
So
‫بؼذ‬
‫اس‬
‫ش‬
‫يفت‬ ‫قبل‬
‫اس‬
‫ش‬
‫يفت‬
26
‫اوًاع‬
‫ش‬
‫يفت‬
Logical Shift

Si=0
R2 Shr R2
RTL
.
R1 Shl R1
27
‫اوًاع‬
‫ش‬
‫يفت‬
Circular Shift

Si
So
R2 Cir R2
R1 Cil R1
28
‫اوًاع‬
‫ش‬
‫يفت‬
Arithmetic Shift

2
2
.

asl
Rn-1
OverFlow
.
:
asr:
Si=0
R n-1 R0
R n-1 R0
asl:
Si
R1 asl R
R asr R
‫در‬ ‫ضرب‬
2
‫بر‬ ‫تقسيم‬
2
R
R
V n
n 2
1 



29
‫پ‬
ٌ‫ياد‬
‫ساس‬
‫ي‬
‫سخت‬
‫افشار‬
‫ي‬
‫م‬
‫يکزي‬
‫اپز‬
‫یشه‬
‫َا‬
‫ي‬
‫ش‬
‫يفت‬
4
S 1 0 S 1 0 S 1 0 S 1 0
A3A2 A1A0
Serial Input IR
Serial Input IL
S (select)
0 for shift right
1 for shift left
H3 H2 H1 H0
MUX MUX MUX MUX
30
ALU

ALU
.

ALU
ALU

ALU

ALU
ALU
ٍ‫وتيج‬
‫ػمل‬ ‫اوتخاب‬
carry
OV
31
‫قسمت‬ ‫يک‬
‫مدار‬ ‫از‬
‫محاسباتي‬
‫قسمت‬ ‫يک‬
‫مدار‬ ‫از‬
‫منطقي‬
S1
S0
Bi
Ai
S1
S0
Bi
Ai
Di
Ei
Fi
Select
0
1
2
3
4x1
MUX
Ai-1 Ai+1
S3 S2 S1 S0 Cin
0 0 0 0 0
0 0 0 0 1
0 0 0 1 0
0 0 0 1 1
0 0 1 0 0
0 0 1 0 1
0 0 1 1 0
0 0 1 1 1
0 1 0 0 x
0 1 0 1 x
0 1 1 0 x
0 1 1 1 x
1 0 x x x
1 1 x x 0
F Operation
A+B
A+B+1
A+B
A - B
A
A+1
A -1
A
A B
A B
A B
A
shl A
shr A



ALU
S2
S3
Ci
Ci+1
: ALU
‫اسالیذ‬
21
‫اسالیذ‬
23
32
32
Questions

More Related Content

PPT
Lec8 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...
PPT
Instruction set of 8051.ppt
PPT
REGISTER TRANSFER AND MICROOPERATIONS2017-3-5.ppt
PPT
REGISTER TRANSFER AND MICROOPERATIONS2017-3-5.ppt
PPT
Register transfer & microoperations moris mano ch 04
PPT
Mba admission in india
PPT
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
PDF
computer organization and assembly language giki course slides
Lec8 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Dynamic Sch...
Instruction set of 8051.ppt
REGISTER TRANSFER AND MICROOPERATIONS2017-3-5.ppt
REGISTER TRANSFER AND MICROOPERATIONS2017-3-5.ppt
Register transfer & microoperations moris mano ch 04
Mba admission in india
Lec5 Computer Architecture by Hsien-Hsin Sean Lee Georgia Tech -- Branch Pred...
computer organization and assembly language giki course slides

Similar to Lecture2_RTuokcoursertlmemarycomppsL.pdf (20)

PPT
W8_2: Inside the UoS Educational Processor
PPTX
UNIT V - INTERFACING MICROCONTROLLER (1).pptx
PPT
Lec20 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Da...
PPT
PPT FINAL (1)-1 (1).ppt
PPT
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
PPTX
Micro operations ,arithemetic ,logic ,shift and Register Transefer Operations
PDF
Pragmatic Optimization in Modern Programming - Mastering Compiler Optimizations
PPTX
Basic computer organisation design
PPT
RTL,Instruction set _
PPT
PDF
Combinational logic circuit by umakant bhaskar gohatre
PDF
8051 microcontroller
PDF
IEEE 1149.1-2013 Addresses Challenges in Test Re-Use from IP to IC to Systems
PPTX
Chapter_One.pptx of computer organization and
PDF
eecs242_lect3_rxarch.pdf
PPTX
Register transfer language & its micro operations
PPT
Micro operations
PPT
3D-DRESD ASIDA
PPT
8051 Instruction Set
PPT
Arm teaching material
W8_2: Inside the UoS Educational Processor
UNIT V - INTERFACING MICROCONTROLLER (1).pptx
Lec20 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Da...
PPT FINAL (1)-1 (1).ppt
Lec16 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Fi...
Micro operations ,arithemetic ,logic ,shift and Register Transefer Operations
Pragmatic Optimization in Modern Programming - Mastering Compiler Optimizations
Basic computer organisation design
RTL,Instruction set _
Combinational logic circuit by umakant bhaskar gohatre
8051 microcontroller
IEEE 1149.1-2013 Addresses Challenges in Test Re-Use from IP to IC to Systems
Chapter_One.pptx of computer organization and
eecs242_lect3_rxarch.pdf
Register transfer language & its micro operations
Micro operations
3D-DRESD ASIDA
8051 Instruction Set
Arm teaching material
Ad

Recently uploaded (20)

PPTX
SUSTAINABLE FOOD PRODUCTION and supply chain
PPTX
Planetary Food Systems and Climate Change.pptx
PDF
Microwaving Fish: The best way to cook a fish!
PDF
Food in the Maldives and Its Unique Culinary Tradition
PDF
Ecosure Passing Score with eAuditor Audits & Inspections
PPTX
role of SGLT2s in Non-Diabetic Patients.pptx
PDF
Agricultural_Census_Main_Findings_Report.pdf
PPT
Fall Ladder Safety - Training Slide photos.ppt
PPTX
philippines-slides-march-2024-datahub-web.pptx
PPT
Food Chain and Food Web in the world.ppt
PDF
Practical 4. Wet Ash Content.pdf food analysis
PPTX
Lecture 2 Effect of water on shelf life of food.pptx
PDF
HealthyIndianBites:Eat Right, Live Right.pdf
PPT
DIET FINAL FOR HOTEL MANAGEMENT STUDENTS.ppt
PPTX
หลักสูตร Standard Barista for IPC barista
PPTX
how How_to_Wash_Dishes_with_Finesse.pptx
PDF
PREPARE SALAD & SALD DRESSING cookery 1.
PDF
Wendy’s Menu Canada – Complete Guide 2025
PPTX
Agrisphere ai powered presision farming marketplace
PPTX
chapter 6 in haccp full lecture .pptx
SUSTAINABLE FOOD PRODUCTION and supply chain
Planetary Food Systems and Climate Change.pptx
Microwaving Fish: The best way to cook a fish!
Food in the Maldives and Its Unique Culinary Tradition
Ecosure Passing Score with eAuditor Audits & Inspections
role of SGLT2s in Non-Diabetic Patients.pptx
Agricultural_Census_Main_Findings_Report.pdf
Fall Ladder Safety - Training Slide photos.ppt
philippines-slides-march-2024-datahub-web.pptx
Food Chain and Food Web in the world.ppt
Practical 4. Wet Ash Content.pdf food analysis
Lecture 2 Effect of water on shelf life of food.pptx
HealthyIndianBites:Eat Right, Live Right.pdf
DIET FINAL FOR HOTEL MANAGEMENT STUDENTS.ppt
หลักสูตร Standard Barista for IPC barista
how How_to_Wash_Dishes_with_Finesse.pptx
PREPARE SALAD & SALD DRESSING cookery 1.
Wendy’s Menu Canada – Complete Guide 2025
Agrisphere ai powered presision farming marketplace
chapter 6 in haccp full lecture .pptx
Ad

Lecture2_RTuokcoursertlmemarycomppsL.pdf