Bus and Memory Transfers
Bus and Memory Transfers
Transfers
Mrs. Himabindu
SVIT
Introduction
• A common bus system is an efficient way to transfer information between
registers in a digital computer.
• Instead of having separate lines for each register-to-register connection, a
common bus system consists of a set of common lines, one for each bit of a
register. This allows binary information to be transferred one bit at a time.
• Control signals determine which register is selected by the bus during each
transfer.
• Multiplexers are commonly used to construct such bus systems.
• For example, if we have four registers, each with four bits, we
would use four 4-to-1 multiplexers, with each multiplexer
handling one bit position of the registers.
• signifies that the content of register C is placed on the bus, and then the content
of the bus is loaded into register R1 by activating its load control input.
• Alternatively, if the presence of the bus is known in the system, a
more concise statement like
"R1 ← C"
• can be used, and the designer knows which control signals must
be activated to facilitate the transfer through the bus.
Three-State Bus Buffers
• A bus system can be constructed with three-state gates instead of
multiplexers.
• A three-state gate is a digital circuit that exhibits three states. Two of
the states are signals equivalent to logic 1 and 0 as in a conventional
gate. The third state is a high-impedance state.
• The high-impedance state behaves like an open circuit, which means
that the output is disconnected and does not have a logic significance.
Three-state gates may perform any conventional logic, such as AND
or NAND. However, the one most commonly used in the design of a
bus system is the buffer gate.
Graphic symbol of a three-state
buffer gate
• The high-impedance state of a three-state gate provides a special
feature not available in other gates.
• The control inputs to the buffers determine which of the four normal
inputs will communicate with the bus line.
• No more than one buffer may be in the active state at any given time.
The connected buffers must be controlled so that only one three-state
buffer has access to the bus line while all other buffers are maintained
in a high-impedance state.
• One way to ensure that no more than one control input is active at any
given time is to use a decoder, as shown in the diagram.
• When the enable input of the decoder is 0, all of its four outputs are 0,
and the bus line is in a high-impedance state because all four buffers
are disabled.
• When the enable input is active, one of the three-state buffers will be
active, depending on the binary value in the select inputs of the
decoder.
Memory Transfer
• A memory word will be symbolized by the letter M.
• Example:
Read: DR ← M[AR]
• The write operation transfers the content of a data register to a memory word M
selected by the address. Assume that the input data are in register R1 and the
address is in AR. The write operation can be stated symbolically as follows:
Write: M[AR] ← R1
• This causes a transfer of information from R1 into the memory word M
selected by the address in AR.