Lecture 4
Lecture 4
Overview
Register Transfer
Logic Micro-operations
Shift Micro-operations
CSE 211
Register Transfer and Micro-operations 2
BUS STRUCTURE CONSISTS OF SET OF COMMON LINES, ONE FOR EACH BIT
OF A REGISTER THROUGH WHICH BINARY INFORMATION IS TRANSFERRED
ONE AT A TIME
Have control circuits to select which register is the source, and which is the
destination
CSE 211
Bus and Memory Transfers
Bus Transfer is the most efficient way to transfer data. The data transferred in the
bus transfer is collected using bus lines. Similarly, the transfer of data from the
memory unit to the outside environment and vice versa is known as memory
transfer.
Suppose separate lines are used between each register and all other registers in
the system. In that case, the number of wires connecting all of the registers will
be excessive because we are connecting each register with another register.
A bus structure will not require an excessive connection. Thus it is very
useful in transferring information.
CSE 211
Register Transfer and Micro-operations 6
CSE 211
Register Transfer and Micro-operations 7
MUX
CSE 211
Register Transfer and Micro-operations 8
CSE 211
Register Transfer and Micro-operations 9
CSE 211
Register Transfer and Micro-operations 10
CSE 211
Register Transfer and Micro-operations 11
Memory - RAM
Memory (RAM) can be thought as a sequential circuits containing
some number of registers
Memory stores binary information in groups of bits called words
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
Assume the RAM contains r = 2k words. It needs the following
data input lines
1. n data input lines
2. n data output lines n
Memory Transfer
Memory is usually accessed in computer systems by putting the desired
address in a special register, the Memory Address Register (MAR, or AR)
M
Memory Read
AR
unit Write
CSE 211
Register Transfer and Micro-operations 13
Memory Read
R1 M[MAR]
CSE 211
Register Transfer and Micro-operations 14
Memory Write
M[MAR] R1
CSE 211
Register Transfer and Micro-operations 15
MICROOPERATIONS
CSE 211
Register Transfer and Micro-operations 16
CSE 211
Register Transfer and Micro-operations 17
Arithmetic MICROOPERATIONS
• The basic arithmetic microoperations are
– Addition
– Subtraction
– Increment
– Decrement
CSE 211