D. Boolchandani
V. Sahula
Department of ECE
Index
Motivation
Sources
of power dissipation
Power
Power
minimization technique
Characterizing
VDAT 2002
Motivation
Cell selection for low power
technology mapping
Low power sequence for stored
data application
Data processing is independent
of sequence of input data
VDAT 2002
Optimization
process of generating the best design
VDAT 2002
Abstraction level
computing resources
Algorithms
least
Software and system
Hardware behavior
Resistor transfer
Logic (gate) level
Circuit (transistor) level
Device level
Worst
VDAT 2002
Analysis accuracy
Worst
Best
5
Power Measurement
Simulation based approach
Higher accuracy
Not feasible for large circuits
Large memory and
Large simulation time
Probabilistic approach
Power dissipation due to transitions only
Sacrifice accuracy
Complexity
switching activity estimation
Not suitable for small circuits
VDAT 2002
Probabilistic Technique
Switching power estimation of full adder
n
1
2
Pav = Vdd CiD(y i )
2
i=1
Where
D(yi): # of the transitions per time interval
Ci : capacitance at node i
VDAT 2002
y9
y1
n18
y8
y2
s0
y10
y7
n16
y6
cy
y4
n19
c0
y5
Power Components in FA
Switching Power ?
Short ckt. Power
lower for smaller FT, RT
Leakage power
Constt. (Small)
Ckt
Total power
(W)
Dynamic power
(W)
Dynamic vs
Total
1204
1197
99.4%
NAND2
37
35
94.6%
2_1 MUX
211
202
95.7%
XOR
328
325
99.0%
Adder
Power Minimization
Technique
Switching power is major contributor
More than 80% of total power (small
circuits)
Minimize the internal switching activity
by selecting appropriate sequence of the
input data
VDAT 2002
10
Agenda
Objective: Find sequence of input-vectors with
minimum power dissipation
Procedure:
Enumerate pair of O/P transitions
Enumerate corresponding 2 I/P vectors
11
fn
0
0
1
1
VDAT 2002
fn+1
0
1
0
1
an bn
0 0
0 1
1 0
1 1
fn
0
anbn
00
00
11
11
fn
0
1
1
0
fn+1
0
an+1bn+1
00
11
00
11
12
Problem Definition
k Number of I/Ps
=2k Number of I/P
P2
( 1)!
vectors
Number of pairs of
I/P vectors
Possible number of
sequences of I/P
vectors
00
01
10
11
VDAT 2002
3
k 2
8
=2k 4
P2 12 56
( 1)! 6 5040
13
k =2
Ck
VDAT 2002
14
Hamiltonian cycle
closed path in a digraph, which starts and ends on
the same node, passing through all the nodes only
once
Problem Def: Finding a minimum weight Hamiltonian cycle
(HC) in a complete digraph
VDAT 2002
15
a0
cy
b0
Full
Adder
c0
n=3
=8
P2 = 56
VDAT 2002
16
Total Power
using
simulation
Dy. Power
using prob.
Method
Ex. parasitic
In. parasitic
% Difference
587.7w
1197.2 w
42.5% contr.
by parasitic
956.3 w
79.8% to the
total power
VDAT 2002
17
A node in a digraph
corresponds to an input
vector
010
000
011
111
100
110
101
18
Time complexity
ILP
Sub tours elimination constraints
l 2
k =2
Ck
Heuristic
Sorting in ascending order
Selection of edges till completion of the HC
O(E)
VDAT 2002
19
VDAT 2002
20
1
X ij =
0
if
the edge i to
j is in Hamiltonian cycle
otherwise
21
ILP Formulation
Objective
function :
n n
min C ij X ij ,
j =1 i =1
for i j
# of equations required
very large O(2l)
146 even for 3-input circuit
Such that
n
X ij = 1 for i = 1,2......., n and j i
j =1
Represents In degree 1.
n
X ij = 1 for j = 1,2......., n and j i
i =1
X ij 2 for k {1,2......., n}
ik jk
VDAT 2002
22
VDAT 2002
23
Power
Sequence
Power
0, 1, 2, 3
0, 1, 3, 2
0, 2, 1, 3
0, 2, 3, 1
0, 3, 1, 2
0, 3, 2, 1
1, 0, 2, 3
1, 0, 3, 2
1, 2, 0, 3
1, 2, 3, 0
1, 3, 0, 2
1, 3, 2, 0
258 w
286 w
253 w
283 w
321 w
329 w
285 w
328 w
324 w
256 w
255 w
287 w
2, 0, 1, 3
2, 0, 3, 1
2, 1, 3, 0
2, 1, 0, 3
2, 3, 0, 1
2, 3, 1, 0
3, 0, 1, 2
3, 0, 2, 1
3, 1, 0, 2
3, 1, 2, 0
3, 2, 0, 1
3, 2, 1, 0
290 w
326 w
256 w
329 w
257 w
285 w
258 w
257 w
285 w
324 w
288 w
329 w
24
VDAT 2002
Power aware Charaterization of IPPS
Hamiltonian cycle
25
3210
3201
3120
3102
3021
3012
2310
2301
2103
2130
2031
2013
1320
1302
1230
1203
1032
1023
0321
0312
0231
0213
0132
0123
3.4
3.3
3.2
3.1
2.9
2.8
2.7
2.6
2.5
Cell
% Difference
XOR
0, 2, 1, 3
[253 w]
3, 0, 2, 1
[257w]
NAND
2, 0, 1, 3
[28 w]
0, 1, 2, 3
[33w]
15.2%
S-R FF
2, 1, 3
2, 1, 3
[161 w]
0%
VDAT 2002
[161 w]
1.32%
26
Min. Power HC
3-input NAND
1, 4, 2, 0, 3, 5, 6, 7
52 w
3-input OR
0, 1, 2, 4, 6, 5, 3, 7
78w
3-input NOR
0, 2, 3, 4, 6, 7, 5, 1
70w
2_1 MUX
2, 6, 0, 4, 1, 3, 7, 5
87 w
ADDER
6, 7, 0, 1, 4, 2, 3, 5
2160 w
AND-2 NOR-2
2, 4, 0, 3, 5, 1, 6, 7
337w
OR-2 AND-2
1, 0, 2, 4, 6, 3, 5, 7
94w
AOI
85 w
VDAT 2002
27
Avg. Max.
Power
2-input NAND
3, 1, 0, 2
37w
2-input XOR
1, 0, 3, 2
328w
3-input NAND
7, 3, 0, 6, 1, 2, 5, 4
69 w
3-input OR
5, 4, 0, 6, 1, 3, 7, 2
126w
3-input NOR
4, 0, 3, 6, 1, 2, 5, 7
99w
2_1 MUX
1, 6, 3, 4, 7, 2, 7, 5
211 w
continued
VDAT 2002
28
ADDER
0, 3, 6, 5, 2, 7, 4, 1
2460 w
S_R FF
3, 1, 2
305 w
AND-2 NOR-2
1, 7, 0, 5, 4, 3, 6, 2
2626w
OR-2 AND-2
4, 1, 5, 0, 3, 6, 7, 2
248w
AOI
106 w
VDAT 2002
29
Conclusions
Dynamic power
major contributor
VDAT 2002
30