Decimal Adders
Decimal Adders
Symbol
Logic Diagram
Truth Table
Decoder
• Input combinations can be regarded as binary
numbers with the consequences that the j-th
output line is at logic-1 for j = 0, 1, . . , 7 only
when input combination j is applied.
Other types of Decoders
• Function-specific decoders with less than 2𝑛
outputs exist.
• Example: Decoder with 4 inputs and 10
outputs in which a single responding output
line corresponds to a combination of the 8421
code.
• Example: Four input, seven output decoder
that accepts the 4 bits of the 8421 code and is
used to drive a seven-segment display.
Logic Design Using Decoders
• An 𝑛-to-2𝑛 line decoder is a minterm generator.
• By using or-gates in conjunction with an 𝑛-to-2𝑛
line decoder, realizations of Boolean functions are
possible.
• Do not correspond to minimal sum-of-products.
• Are simple to produce. Particularly convenient
when several functions of the same variable have
to be realized.
Minterms using OR Gates
Minterms using NOR Gates
Implementing a Decoder using NAND
Symbol
Logic Diagram
Truth Table
Minterms using AND gates
𝑓1 = ∑𝑚 0,2,6,7 , 𝑓2 = ∑𝑚(3,5,6,7)
Decoders with an Enable Input
Symbol
Logic Diagram
Truth Table
Decoders with enable inputs
• When disabled, all outputs of the decoder can either
be at logic-0 or logic-1.
• Enable input provides the decoder with additional
flexibility. Idea: data is applied to the enable input.
• Process is known as demultiplexing.
𝑥0 𝑥1 𝐸
If 𝑥0 = 0, 𝑥1 = 0 then
data appears on line 𝑧0 .
Data
The output is determined by the asserted input having the highest index.
𝑥𝑖 has higher priority than 𝑥𝑗 if 𝑖 > 𝑗.
“Valid” indicates that at least one input line is asserted.
This distinguishes the situation that no input line is asserted from when the
𝑥0 input line is asserted, since in both cases 𝑧2 𝑧1 𝑧0 = 000.