Chapter 4 Edited
Chapter 4 Edited
Architecture
Chapter 4:
Register Transfer Language and
Microoperations
1
contents
Outlines
Register Transfer Language
2
4-1 Register Transfer Language
• Microoperations: operations executed on data
stored in one or more registers.
• The result of the operation may be:
– replace the previous binary information of a
register or
– transferred to another register
3
4-1 Register Transfer Language cont.
• The internal hardware organization of a
digital computer is defined by specifying:
• The set of registers it contains and their function
• The sequence of microoperations performed on
the binary information stored in the registers
• The control that initiates the sequence of
microoperations
• Registers + Microoperations Hardware + Control
Functions = Digital Computer
4
Register Transfer Language cont.
• Register Transfer Language (RTL) : a
symbolic notation to describe the microoperation
transfers among registers.
• Use symbols, rather than words, to specify the
sequence of microoperations, The symbolic notation
used is called a register transfer language
Next steps:
– Define symbols for various types of microoperations,
– Describe the hardware that implements these
microoperations
5
Register Transfer
• Computer registers are designated by
capital letters (sometimes followed by
numerals) to denote the function of the
register
• R1: processor register
• MAR: Memory Address Register (holds an address
for a memory unit)
• PC: Program Counter
• IR: Instruction Register
• SR: Status Register
6
Register Transfer cont.
R1 7 6 5 4 3 2 1 0
7
4-2 Register Transfer cont.
15 0
PC
Numbering of bits
15 87 0
Upper byte PC(H) PC(L) Lower byte
Partitioned into two parts
8
4-2 Register Transfer cont.
9
4-2 Register Transfer cont.
11
Bus and Memory Transfers
12
Bus and Memory Transfers
Register A Register B Register C Register D
Bus lines
D3 D2 D1 D0 C3 C2 C1 C0 B3 B 2 B 1 B 0 A3 A 2 A 1 A 0
D3 C3 B3 A3 D2 C2 B2 A2 D1 C1 B1 A1 D0 C0 B0 A0
3 2 1 0 3 2 1 0 3 2 1 0
3 2 1 0 S0
S0 S0 S0
MUX3 MUX2 MUX1 MUX0 S1
S1 S1 S1
14
Bus and Memory Transfers: Three-
State Bus Buffers
• A bus system can be constructed with three-
state buffer gates instead of multiplexers
• A three-state buffer is a digital circuit that
exhibits three states: logic-0, logic-1, and high-
impedance (Hi-Z)
Control input C
Three-State Buffer
15
Arithmetic Microoperations
• The microoperations most often encountered
in digital computers are classified into four
categories:
A. Register transfer microoperations
B. Arithmetic microoperations (on numeric data
stored in the registers)
C. Logic microoperations (bit manipulations on
non-numeric data)
D. Shift microoperations
16
4-4 Arithmetic Microoperations cont.
• The basic arithmetic microoperations are:
addition, subtraction, increment,
decrement, and shift
• Addition Microoperation:
R3 ←R1+R2
• Subtraction Microoperation:
R3 ←R1-R2 or : 1’s complement
R3 ←R1+R2+1
17
4-4 Arithmetic Microoperations cont.
• One’s Complement Microoperation:
R2 ←R2
• Two’s Complement Microoperation:
R2 ←R2+1
• Increment Microoperation:
R2 ←R2+1
• Decrement Microoperation:
R2 ←R2-1
18
Logic Microoperations
The four basic microoperations
OR Microoperation
• Symbol: , +
• Example: 1001102 10101102 = 11101102
P+Q: R1←R2+R3, R4←R5 R6
AND Microoperation
• Symbol:
• Example: 1001102 10101102 = 00001102
19
Logic Microoperations
cont.
21
A) Logical Shift: It transfers 0 through the serial input. The
symbol "shl" is used for logical shift left and "shr" is used for
logical shift right.
B) Circular Shift : This circulates or rotates the bits of
register around the two ends without any loss of data or
contents.
C) Arithmetic Shift :This shifts a signed binary number to
left or right.
22
Thank you
23