CA Unit 3
CA Unit 3
Here, the letter 'n' indicates the number of bits for the register. The 'n' outputs of the
register R1 are connected to the 'n' inputs of register R2.
Bus and Memory Transfers
• A bus structure, on the other hand, is more
efficient for transferring information between
registers in a multi-register configuration system.
• A bus consists of a set of common lines, one for
each bit of register, through which binary
information is transferred one at a time.
• Control signals determine which register is
selected by the bus during a particular register
transfer.
The following block diagram shows a Bus system for four registers. It is constructed with the
help of four 4 * 1 Multiplexers each having four data inputs (0 through 3) and two selection
inputs (S1 and S2).
• A bus system can also be constructed using three-state
gates instead of multiplexers.
• The three state gates can be considered as a digital
circuit that has three gates are
• 1 and 0 as in a conventional gate
• The Third one is high impedance
The most commonly used three state gates in case of the
bus system is a buffer gate.
• The outputs generated by the four buffers are connected to form a single bus line.
• Only one buffer can be in active state at a given point of time.
• The control inputs to the buffers determine which of the four normal inputs will
communicate with the bus line.
• A 2 * 4 decoder ensures that no more than one control input is active at any given point
of time.
Memory Transfer:
• Most of the standard notations used for specifying operations
on memory transfer are stated below.
• The transfer of information from a memory unit to the user
end is called a Read operation.
• The transfer of new information to be stored in the memory
is called a Write operation.
• A memory word is designated by the letter M.
• We must specify the address of memory
word while writing the memory transfer
operations.
• The address register is designated by
AR and the data register by DR.
• Thus, a read operation can be stated as:
• Read: DR ← M [AR]
• Write: M [AR] ← R1
Arithmetic Micro-operations
• The operations performed on the data stored in
registers are known as micro operations. Micro
operations are classified into the following types:
1. Arithmetic micro operations
2. Logic Micro operations
3. Shift micro operations
Arithmetic micro operations:
• The basic Arithmetic Micro-operations are classified in
the following categories:
• Addition Symbolic Representation Description
• Subtraction R3 ← R1 + R2
The contents of R1 plus R2 are
• Increment transferred to R3.
R3 ← R1 - R2 The contents of R1 minus R2 are
• Decrement transferred to R3.
R2 ← R2' Complement the contents of R2 (1's
• Shift complement)
R2 ← R2' + 1 2's complement the contents of R2
(negate)
R3 ← R1 + R2' + 1 R1 plus the 2's complement of R2
(subtraction)
R1 ← R1 + 1 Increment the contents of R1 by one
R1 ← shl R1
R2 &arr; shr R2
• Arithmetic shifts must leave the sign bit
unchanged because the sign of the number
remains the same
Chapter 8
Input output Organisation
• Input-Output Interface is used as an
method which helps in transferring of
information between the internal
storage devices i.e. memory and the
external peripheral device
• A peripheral device is that which
provide input and output for the
computer, it is also called Input-
Output devices.
Input output Interface
• In computer system, there are special
hardware components between the CPU and
peripherals to control or manage the input-
output transfers.
• These components are called input-output
interface units because they provide
communication links between processor bus
and peripherals.
• They provide a method for transferring
information between internal system and
input-output devices.
IO Bus and interface Modules
PCI bus
disk disk
disk disk
DMA Progress
• To initiate a DMA transfer, the host writes a
DMA command into memory:
– A pointer to the source of a transfer
– A count of the number of bytes to be transferred
– ……..
• The CPU writes the address of the DMA
command block to the DMA controller.
DMA Progress (cont.)
• The DMA controller proceeds to operate the
memory bus directly without CPU help.
• Handshaking exists between DMA controller
and device controller.
• When the entire transfer is finished, the DMA
controller will interrupts the CPU.
Handshaking
• DMA-request and DMA_acknowledge
– When a word of data is available, the device
controller places a signal on the DMA-request
wire.
– The signal causes the DMA controller to seize the
memory bus,
• To place the desired address on the memory-address
wire
• To place a signal on the DMA-acknowledge wire
Handshaking (cont.)
• When the device controller receives the DMA-
acknowledge signal,
– it transfer the word of data to memory
– and remove the DMA_request signal.
• The communication between the lOP and the
devices attached to it is similar to the program
control method of transfer.
• Communication with the memory is similar to
the direct memory access method.
• The way by which the CPU and lOP
communicate depends on the level of
sophistication included in the system.
• In very-large-scale computers, each processor
is independent of all others and any one
processor can initiate an operation.
• CPU-lOP Communication:
The communication between CPU and lOP may
take different forms, depending on the particular
computer considered.
In most cases the memory unit acts as a message
center where each processor leaves information
for the other.
To appreciate the operation of a typical lOP, we
will illustrate by a specific example the method by
which the CPU and lOP communicate
DMA Controller
• DMA Controller is a type of control unit that
works as an interface for the data bus and
the I/O Devices.
• DMA Controller has the work of transferring
the data without the intervention of the
processors, processors can control the data
transfer.
• DMA Controller also contains an address
unit, which generates the address and
selects an I/O device for the transfer of data.
Working of DMA Controller