Combinational Circuit Design
Combinational Circuit Design
Outline
Bubble Pushing Compound Gates Logical Effort Example Input Ordering Asymmetric Gates Skewed Gates Best P/N ratio
Example 1
module mux(input s, d0, d1, output y); assign y = s ? d1 : d0; endmodule
Example 2
2) Sketch a design using NAND, NOR, and NOT gates. Assume ~S is available.
D0 S Y D1 S
Bubble Pushing
Start with network of AND / OR gates Convert to NAND / NOR + inverters Push bubbles around to simplify logic Remember DeMorgans Law
Y (a) (b) Y
Y (c) D (d)
Example 3
3) Sketch a design using one compound gate and one NOT gate. Assume ~S is available.
D0 S D1 S
Compound Gates
Logical Effort of compound gates
Y=A
Y = Ai B + C
Y = Ai B + C i D
Y = Ai( B + C ) + D i E
Example 4
The multiplexer has a maximum input capacitance of 16 units on each input. It must drive a load of 160 units. Estimate the delay of the two designs. H = 160 / 16 = 10 B = 1 N = 2
D0 S Y D1 S
P =2+2 =4 G = (4 / 3)i(4 / 3) = 16 / 9 F = GBH = 160 / 9 f = N F = 4.2 D = Nf + P = 12.4
10: Combinational Circuits
D0 S D1 S
P = 4 +1 = 5 G = (6 / 3)i(1) = 2 F = GBH = 20 f = N F = 4.5 D = Nf + P = 14
Example 5
Annotate your designs with transistor sizes that achieve this delay.
8 8 8 8 8 8 8 8
16 160 * (4/3) / 4.2 = 50 16 160 * 1 / 4.5 = 36
10 25 25 25 25 Y 10 6 6
10 10 6 6 24 12 Y
Input Order
Our parasitic delay model was too simple Calculate parasitic delay for Y falling If A arrives latest? 2 If B arrives latest? 2.33
2 2 2x 6C 2C
2 A B
10
11
Asymmetric Gates
Asymmetric gates favor one input over another Ex: suppose input A of a NAND gate is most critical Use smaller transistor on A (less capacitance) A Boost size of noncritical input reset So total resistance is same gA = 10/9 2 2 Y A 4/3 gB = 2 4 reset gtotal = gA + gB = 28/9 Asymmetric gate approaches g = 1 on critical input But total logical effort goes up
10: Combinational Circuits CMOS VLSI Design 4th Ed.
12
Symmetric Gates
Inputs can be made perfectly symmetric
2 A B 1 1
2 1 1
13
Skewed Gates
Skewed gates favor one edge over another Ex: suppose rising output of inverter is most critical Downsize noncritical nMOS transistor
HI-skew inverter 2 A 1/2 Y A 1 unskewed inverter (equal rise resistance) 2 Y A 1/2 unskewed inverter (equal fall resistance) 1 Y
Calculate logical effort by comparing to unskewed inverter with same effective resistance on that edge. gu = 2.5 / 3 = 5/6 gd = 2.5 / 1.5 = 5/3
10: Combinational Circuits CMOS VLSI Design 4th Ed. 14
NOR2
B A gu = 4/3 u gd = 4/3 d gavg = 4/3 avg B Y A gu = 1 u gd = 2 d gavg = 3/2 avg B Y A gu = 2 u gd = 1 d gavg = 3/2 avg 1 1/2
1
4 4 Y
1
unskewed
2 A
1
2 1 1
HI-skew
2 A Y 1/2 gu = 5/6 u gd = 5/3 d gavg = 5/4 avg 1 A 1 Y gu = 4/3 u gd = 2/3 d gavg = 1 avg
A
B
1 2 2
LO-skew
A B
16
Asymmetric Skew
Combine asymmetric and skewed gates Downsize noncritical transistor on unimportant input Reduces parasitic delay for critical input
A reset
1 A reset
2 4/3 4
17
P/N Ratios
In general, best P/N ratio is sqrt of equal delay ratio. Only improves average delay slightly for inverters But significantly decreases area and power
Inverter
NAND2
2 2 Y A B 2 2 gu = 4/3 gd = 4/3 gavg = 4/3 B A
NOR2
2 2 Y 1 1 gu = 2 gd = 1 gavg = 3/2
19
Observations
For speed: NAND vs. NOR Many simple stages vs. fewer high fan-in stages Latest-arriving input For area and power: Many simple stages vs. fewer high fan-in stages
20