Ddco Mod 1.3
Ddco Mod 1.3
LSB
MSB
Decoder
EXAMPLE 5-2: Design a BCD-to-decimal decoder.
• But An analysis of the circuit of Fig. 5-10 shows that the six invalid
input combinations will produce outputs as listed in Table 5-3.
The reader can look at the table and decide whether this is a
good or bad design.
Decoder
EXAMPLE 5-3: Implement a full-adder circuit with a decoder and two OR gates.
• From the truth table of the full-adder (Section 4-3), we obtain
the functions for this combinational circuit in sum of
minterms:
S(x, y, z) = Σ(1, 2, 4, 7)
C(x, y, z,) = Σ(3, 5, 6, 7)
• Since there are three inputs and a total of eight minterms, we
need a 3-to-8 line decoder. The implementation is shown in Fig.
5-11. The decoder generates the eight minterms for x, y, z.
• The OR gate for output S forms the sum of minterms 1, 2, 4, and 7.
The OR gate for output C forms the sum of minterms 3, 5, 6, and 7.
• A function with a long list of minterms requires an OR gate with a
large number of inputs.
• A function F having a list of k minterms can be expressed in its
complemented form F′ with 2n - k minterms. If the number of
minterms in a function is greater than 2n /2, then F′ can be
expressed with fewer minterms than required for F. In such a
case, it is advantageous to use a NOR gate to sum the minterms of
F′. The output of the NOR gate will generate the normal output F.
Decoder
EXAMPLE 5-3: Implement a full-adder circuit with a decoder and two OR gates.
MS
B
LSB
Encoders
• It is constructed with OR gates whose inputs can be determined
from the truth table given in Table 5-4.
• The low-order output bit z is 1 if the input octal digit is odd.
Output y is 1 for octal digits 2, 3, 6, or 7. Output x is a 1 for octal
digits 4, 5, 6, or 7.
• Note that D0 is not connected to any OR gate; the binary output
must be all 0’s in this case.
Encoders
• Note: Encoders of this type (Fig. 5-15) are not available in IC
packages, since they can be easily constructed with OR gates. The
type of encoder available in IC (IC type 74148. )form is called a
priority encoder These encoders establish an input priority to
ensure that only the highest-priority input line is encoded.
• Thus, in Table 5-4, if priority is given to an input with a higher
subscript number over one with a lower subscript number, then
if both D2 and D5 are logic-1 simultaneously, the output will be 101
because D5 has a higher priority over D2. Of course, the truth table
of a priority encoder is different from the one in Table 5-4
Multiplexers
• Multiplexing means transmitting a large number of information
units over a smaller number of channels or lines.
• A digital multiplexer is a combinational circuit that selects
binary information from one of many input lines and directs
it to a single output line. The selection of a particular input
line is controlled by a set of selection lines. Normally, there
are 2 n input lines and n selection lines whose bit
combinations determine which input is selected.
Multiplexers
• A 4-line to 1-line multiplexer is shown in Fig. 5-16. Each of the
four input lines, I0 to I3, is applied to one input of an AND gate.
Selection lines s1 and s0 are decoded to select a particular AND
gate.
• The function table in the figure lists the input-to-output path for
each possible bit combination of the selection lines. When this
MSI function is used in the design of a digital system, it is
represented in block diagram form as shown in Fig. 5-16(c).
• To demonstrate the circuit operation, consider the case when s1s0
= 10. The AND gate associated with input I2 has two of its inputs
equal to 1 and the third input connected to I2.
• The other three AND gates have at least one input equal to 0,
which makes their output equal to 0. The OR-gale output is now
equal to the value of I2, thus providing a path from the selected
input to the output. A multiplexer is also called a data selector,
since it selects one of many inputs and steers the binary
information to the output line.
Multiplexers
Multiplexers
• As in decoders, multiplexer ICs may have an enable input to control the
operation of the unit. As in decoders, multiplexer ICs may have an enable
input to control the operation of the unit.
• When the enable input is in a given binary state, the outputs are disabled,
and when it is in the other state (the enable state), the circuit functions as a
normal multiplexer.
• The enable input (sometimes called strobe) can be used to expand two or
more multiplexer ICs to a digital multiplexer with a larger number of inputs.