0% found this document useful (0 votes)
13 views23 pages

Chapter 4 Edited

Chapter 4 discusses Register Transfer Language (RTL) and microoperations in computer architecture, detailing how data is transferred between registers and the symbolic notation used to describe these operations. It covers various types of microoperations including arithmetic, logic, and shift operations, as well as the hardware components like buses and registers involved in these processes. The chapter emphasizes the importance of control signals and the role of multiplexers in facilitating data transfer within a digital computer.

Uploaded by

melesew mossie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views23 pages

Chapter 4 Edited

Chapter 4 discusses Register Transfer Language (RTL) and microoperations in computer architecture, detailing how data is transferred between registers and the symbolic notation used to describe these operations. It covers various types of microoperations including arithmetic, logic, and shift operations, as well as the hardware components like buses and registers involved in these processes. The chapter emphasizes the importance of control signals and the role of multiplexers in facilitating data transfer within a digital computer.

Uploaded by

melesew mossie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 23

Computer Organization and

Architecture

Chapter 4:
Register Transfer Language and
Microoperations

1
contents

Outlines
Register Transfer Language

• Bus and Memory Transfers

• Arithmetic and Logic Micro operations

• Shift Micro operations

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

Shift Right Operation


101101110011 010110111001

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.

• The individual flip-flops in an n-bit register


are numbered in sequence from 0 to n-1
(from the right position toward the left
position)

R1 7 6 5 4 3 2 1 0

Register R1 Showing individual bits

A block diagram of a register

7
4-2 Register Transfer cont.

Other ways of drawing the block diagram of a register:

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.

• Information transfer from one register to another is described


by a replacement operator: R2 ← R1
• This statement denotes a transfer of the content of register R1
into register R2
• The transfer happens in one clock cycle
• The content of the R1 (source) does not change
• The content of the R2 (destination) will be lost and replaced
by the new data transferred from R1

9
4-2 Register Transfer cont.

Basic Symbols for Register Transfers


Symbol Description Examples
Letters & Denotes a register MAR, R2
numerals
Parenthesis ( ) Denotes a part of a R2(0-7), R2(L)
register
Arrow ← Denotes transfer of R2 ← R1
information
Comma , Separates two R2 ← R1, R1 ← R2
microoperations
10
4-3 Bus and Memory Transfers
• Paths must be provided to transfer information from one
register to another
• A Common Bus System is a scheme for transferring
information between registers in a multiple-register
configuration
• A bus: set of common lines, one for each bit of a register,
through which binary information is transferred one at a time
• Control signals determine which register is selected by the
bus during each particular register transfer
• Multiplexers can be used to construct a common bus
• Multiplexers select the source register whose binary
information is then placed on the bus

11
Bus and Memory Transfers

12
Bus and Memory Transfers
Register A Register B Register C Register D

Bus lines

Register D Register C Register B Register A


3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0

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

4-Line Common Bus


13
4-3 Bus and Memory Transfers
• The transfer of information from a bus into one of
many destination registers is done:
– By connecting the bus lines to the inputs of all destination
registers and then:
– activating the load control of the particular destination
register selected
• We write: R2 ← C to symbolize that the content of
register C is loaded into the register R2 using the
common system bus
• It is equivalent to: BUS ←C, (select C)
R2 ←BUS (Load R2)

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

Normal input A Output B

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.

Complement (NOT) Microoperation


• Symbol: 
• Example: 10101102 = 01010012
XOR (Exclusive-OR) Microoperation
• Symbol: 
• Example: 1001102  10101102 =
11100002
20
Shift Microoperations
• Used for serial transfer of data
• Also used in conjunction with arithmetic, logic, and
other data-processing operations
• The contents of the register can be shifted to the left or
to the right
• As being shifted, the first flip-flop receives its binary
information from the serial input
• Three types of shift: Logical, Circular, and Arithmetic

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

You might also like