Professional Documents
Culture Documents
Any logic circuits can be transformed to an implementation where only NAND gates (and inverters) are used.
The general approach to finding a NAND-gate realization: Use DeMorgans theorem to eliminate all the OR operations.
F= (A (B (CD)))
The logic circuit for this function is given by:
Ch2. Decoder
Dr. Bernard Chen Ph.D.
University of Central Arkansas Spring 2009
Integrated Circuits
An integrated circuit is a piece (also called a chip) of silicon on which multiple gates or transistors have been embedded
These silicon pieces are mounted on a plastic or ceramic package with pins along the edges that can be soldered onto circuit boards or inserted into appropriate sockets
Integrated Circuits
SSI, MSI, LSI: They perform small tasks such as addition of few bits. small memories, small processors VLSI Tasks: - Large memory - Complex microprocessors, CPUs
Decoder
Consists of:
Inputs (n) Outputs (2n , numbered from 0 2n - 1) Selectors / Enable (active high or active low)
2-to-4 Decoder
2-to-4 Decoder
1
1
1
1
0
1
1
1
3-to-8 Decoder
Decoder Expansion
Decoder expansion Combine two or more small decoders with enable inputs to form a larger decoder
The MSB is connected to the enable inputs if A2=0, upper is enabled; if A2=1, lower is enabled.
Decoder Expansion
Combining two 2-4 decoders to form one 3-8 decoder using enable switch
Combinational circuit implementation with decoders n A decoder provide 2 minterms of n input variables Since any Boolean function can be expressed as a sum of minterms, one can use a decoder and external OR gates to implement any combinational function.
Encoders
An encoder has
2N inputs N outputs
An encoder outputs the binary value of the selected (or active) input. An encoder performs the inverse operation of a decoder. Issues
What if more than one input is active? What if no inputs are active?
23
Encoders
D C B A
I0
I1
I2
Out0 Out1
Z Y
I3
A 0 0 0 1
B 0 0 1 0
C 0 1 0 0
D 1 0 0 0
Y 0 0 1 1
Z 0 1 0 1
Fall 2010
24
Priority Encoders
If more than one input is active, the higher-order input has priority over the lower-order input.
d=0 d=1
Why is the valid indicator needed?
Fall 2010
25
Priority Encoders
msb Valid bit
Fall 2010
26
Multiplexers
A multiplexer has
A multiplexer routes (or connects) the selected data input to the output.
The value of the control inputs determines the data input that is selected.
ECE 331 - Digital System Design 27
Fall 2010
Multiplexers
Z = A.I0 + A.I1
Fall 2010
28
Multiplexers
A 0 0 1 1 B 0 1 0 1 F I0 I1 I2 I3
MSB
LSB
Multiplexers
A
0 0 0 0 1 1 1 1
B
0 0 1 1 0 0 1 1
C
0 1 0 1 0 1 0 1
F
I0 I1 I2 I3 I4 I5 I6 I7
MSB
LSB
Multiplexers
Fall 2010
31
Demultiplexers
A demultiplexer has
A demultiplexer routes (or connects) the data input to the selected output.
The value of the control inputs determines the output that is selected.
Fall 2010
32
Demultiplexers
Out0
In
Out1 Out2 S1 S0
Out3
W X Y Z
A B
A 0 0 1 B 0 1 0 W I 0 0 X 0 I 0 Y 0 0 I Z 0 0 0
Fall 2010
33