Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Outputs, at any time, are determined by the input combination When input changed, output changed immediately Real circuits is imperfect and have propagation delay A combinational circuit Performs logic operations that can be specified by a set of Boolean expressions Can be built hierarchically
2
Timing Diagram
Describe the functionality of a logic circuit across time Represented by a waveform For combinational logic, Output is a function of inputs
t10 t11
t12 Time
Note that the Output change can occur at any Time for Combinational logic
B
t0 t1
A
B X
Y
Z F
5
B
t0 t1
A
B
A 0 1 0 1
B 1 1 0 0
F 1 0 0 1
6
F = A B
Combinational Logic
N inputs
Combinational circuits M outputs
Outputs, at any time, are determined by the input combination We will discuss Multiplexers / De-Multiplexers Decoders / Encoders Comparators Parity Checkers / Generators Binary Adders / Subtractors Integer Multipliers
7
Multiplexers (Mux)
Functionality: Selection of a particular input Route 1 of N inputs N (A) to the output F log 2 Require selection bits (S) En(able) bit can disable the route and set F to 0
A0 A1 A2 A3
En
4-to-1 Mux
S1 S0
A3 X
X X 0 X X X
A2 X
X 0 X X X 1
A1 X
0 X X X 1 X
A0 0
X X X 1 X X
F 0
0 0 0 1 1 1
A0 A1 A2 A3
0
0
4-to-1 Mux
S1 S0
1 1 0 0 1
A0 A1 A2 A3
S1 0
S0 0 1 0
F A0 A1 A2
4-to-1 Mux
S1 S0
0 1
A3
A1
A2
A3
11
A0 A1 A2 A3
En
En 0
S1 X 0 0 1 1
S0 X 0 1 0 1
F 0 A0 A1 A2 A3
4-to-1 Mux
S1 S0
1 1 1 1
A1
A2
A3 En
13
A1
A2
Reduce one Gate Delay by using 4-input AND gate for the 2nd level
A3 En
14
A1
1 1
A2
A3
15
A1
1 1
A2
A3
16
A1
1 1
A2 A2 A3
17
A1
1 1
A2
A3
18
A1
1 1
A2 A3 A3
19
4-to-1 Mux using Transmission Gates with Enable (F=0 when En=0)
En S1=1 S0=1 A0
En S1 S0 A1
0 1 A2 F A3 X 0 X 0
F
0 A0
1
1 1
0
1 1
1
0 1
A1
A2 A3
20
4-to-1 Mux using Transmission Gates with Enable (F=Z when En=0)
A0 X Y En 0 1 En=1 En=0 X=S0 Y=S0 X=0 Y=1 (To disable both TG) 1 1 1 S1 X 0 0 1 1 S0 X 0 1 0 1 F Z A0 A1 A2 A3
A1
X=En S0
Y=En + EnS0 = En + S0
21
4-to-1 Mux using Transmission Gates with Enable (F=Z when En=0)
X=En S0 S0 En A0 X Y En 0 1 1 1 1 S1 X 0 0 1 1 S0 X 0 1 0 1 F Z A0 A1 A2 A3 Y=En + EnS0 = En + S0
A1
22
4-to-1 Mux using Transmission Gates with Enable (F=Z when En=0)
X=En S0 S0 En A0 En A1 0 1 1 1 1 A3 S1 X 0 0 1 1 S0 X 0 1 0 1 F Z A0 A1 A2 A3 Y=En + EnS0 = En + S0
A2
23
4-to-1 Mux using Transmission Gates with Enable (F=Z when En=0)
S1 S0 En A0 F A1
En S1 X 0 0 1 1 S0 X 0 1 0 1 F Z A0 A1 A2 A3 0 1 1
A2
A3
1 1
24
Simplified 4-to-1 Mux using TGs with Enable (F=Z when En=0)
En S1 S0 A0 X Y F X=En S0 Y=En + EnS0 = En + S0
A1
En S1 X 0 0 1 1 S0 X 0 1 0 1 F Z A0 A1 A2 A3
A2
0 1 1
A3
1 1
25
B[3:0]
B3..0
F[3:0]
En 0 1 1
SEL X 0 1
26
Fx=AxEnSEL+BxEnSEL
SEL B0
B1
B2 B3 En
27
F(A, B, C) m(1, 2, 6, 7)
0
1 1 0 0 0 1 1 A0 A1 A2 A3 A4 A5 A6 A7
8-to-1 Mux
S2 S1 S0
A B C
28
B
0 1 0 1
29
C C 0
A0 A1 A2 A3
En
B
0 1 0 1
F
C C 0 1
4-to-1 Mux
S1 A S0 B
0 1 1
1
Vdd
30
C
0 1 0 1
31
A0 A
Vdd
En
C
0 1 0 1
F
0 A 1 A
A1 A2 A3
4-to-1 Mux
S1 B S0 C
0 1 1
32
Demultiplexers (DeMux)
A0 A1 A2 A3
D0
4-to-1 Mux
S1 S0
1-to-4 DeMux D2
S1 S0
D3
D1
33
DeMux Operations
S1 0 0 D0 A 1 1 D1 S0 0 1 0 1 D3 0 0 0 A D2 0 0 A 0 D1 0 A 0 0 D0 A 0 0 0
1-to-4 DeMux D2
S1 S0
D3
D 0 S1 S0 A D1 S1S0 A D 2 S1 S0 A D 3 S1S0 A
34
DeMux Operations
S1
S1 D0 S0 D1
S0 0 1 0 1
D3 0 0 0 A
D2 0 0 A 0
D1 0 A 0 0
D0 A 0 0 0
0 0 1 1
D2
D 0 S1 S0 A D1 S1S0 A D 2 S1 S0 A D 3 S1S0 A
35
D3
S0
D1 En 0 D2 1 1 D3 1 1 S1 X 0 0 1 1 S0 X 0 1 0 1 D3 D2 0 0 0 0 A 0 0 0 A 0 D1 0 0 A 0 0 D0 0 A 0 0 0
En
A
36