Digital System Design
Digital System Design
Digital System Design
• A simple way of providing the desired interconnectivity may be to connect each register to a
common set of n wires, which are used to transfer data into and out of the registers. This
common set of wires is usually called a bus.
• If common paths are used to transfer data from multiple sources to multiple destinations, it is
necessary to ensure that only one register acts as a source at any given time and other registers
do not interfere.
Using Tri-State Drivers to Implement a Bus
Outputs of two ordinary logic gates cannot be connected together, because a short circuit would
result if one gate forces the output value 1 while the other gate forces the value 0. Therefore, some
special gates are needed if the outputs of two registers are to be connected to a common set of
wires. A commonly used circuit element for this purpose is a tri-state driver (or buffer). It performs
no logic operation and its output simply replicates the input signal. Its purpose is to provide
additional electrical driving capability.
Using Multiplexers to Implement a Bus
Verilog Code for Specification of Bus Structures (Register swap through bus using tristate drivers)