level-accurate peak activity estimation in combinational circuit using bilp
DESCRIPTION
Level-Accurate Peak Activity Estimation in Combinational Circuit Using BILPTRANSCRIPT
Level-Accurate Peak Activity Estimation in Combinational Circuits Using BILP
VDAT 2013
Jaynarayan Tudu, IISc Bangalore
Deepak Malani, IIT Bombay
Virendra Singh, IIT Bombay
malani.deepak (at) gmail.com
Outline
Introduction and Motivation – Power Estimation
Previous WorkILP based formulation of combinational logic– Constraints– Optimization Function– Partition Level
Performance on ISCAS Benchmarks
08/01/132
Introduction
08/01/133
CL* Vdd * Ptransition * fclock2
Power dissipation
Static Power Vdd * Istatic
Dynamic Power
Motivation
Estimation of peak-power dissipation determines– Maximum current demand– VDD droop (due to IR-drop)– Design of power delivery network (PDN)
08/01/134
IR-dropVDD
Clock
Power Estimation Approaches
Vector-less – Probabilistic Wang et al, VLSID-1996; Wu et al., CAD-2001
Vector-based – Input pattern generation– Pseudo Boolean SAT (PBS)F. Aloul et al, Elsevier-2007; Mangassarian et al, DATE 2007
– Integer Linear Program (ILP)VDAT-2012
08/01/135
Mathematical Expressions for logic gates
*CNF: Conjunctive Normal Form
08/01/136
GATE Type Boolean Expression
Algebraic Expression
SAT* Expression
x z z= x z = 1 - x (x+z).(x+z)
x z
y
z = x.y z = 1 – x.y (x+z).(y+z). (x+y+z)
Boolean Satisfiability based technique (SAT)
08/01/137
Using SAT-based techniques in power estimation, F. Aloul et al, Elsevier, 2007
ILP Based Approach
Steps1) Variable definition2) Constraints3) Optimization function4) Solver (iterative)
08/01/138
ILP Based Approach for IVC Toggle Maximization in Combinational Circuits,VDAT-2012
ILP Formulation:
ILP Formulation
2a) I/O Constraints– INV : y = 1 - x
– NAND2 : y = 1 – x1* x2
– NOR2 : y = 1 – (x1 + x2) + x1* x2
08/01/139
ILP Formulation
2b) Product Linearization Constraint
– z = 1 – x * y
– Define: p = x* y s.t.
z = 1 – p p ≤ x p ≤ y x + y – p ≤ 1
08/01/1310
Example: y = 1 – x1* x2
p = x1* x2 s.t.
y = 1 – p p ≤ x1
p ≤ x2
x1 + x2 – p ≤ 1
z = 1 - y* x3
q = y* x3 s.t.
z = 1 – qq ≤ yq ≤ x3
y + x3 – q ≤ 108/01/1311
x1x2
x3
y
z
ILP Formulation
ILP Formulation
2c) Toggle variable– For each net five variables are defined
– x1 and x2 successive logic values of net ‘x’ tgate_x = x1.x2 + x1.x2
3) Optimization function– Maximize ∑ (tgate_i)
i = 1:N
08/01/1312
ILP Formulation - Summary
08/01/1313
Variable definition
Constraints I/O Linearization Toggle
Optimization functionToggle Maximization
SolverGenerate successive pair of
primary input vectors
Limitations
Whole circuit simulation– Assumption: All nets toggle simultaneously– Zero delay– Not realistic
Simulation time is large for big benchmarks
08/01/1314
Proposed SolutionPartition the logic into levelsApply ILP to each level independently to compute peak activityMaximum of peak power over all levels is the worst case peak activity
08/01/1315
Level-BILP
08/01/1316
Level Objective Function:
l = 1 to Leveli = 1 to number of nets in l
Constraints are defined for gates upto Level-i only
Maximum Peak Activity:
Performance Analysis
ISCAS-85 benchmarksMachine– Dual Core AMD Opteron, @1GHz
ILP Solvers– GLPK, CPLEX
08/01/1317
Peak Activity Comparison: Whole circuit - Level partitioned
08/01/1318
ISCAS’ 85 Benchmark Circuits
To
tal
To
gg
le C
ou
nt
Whole Circuit: ILP Based Approach for IVC Toggle Maximization, VDAT-2012
Run Times:Whole circuit - Level partitioned
08/01/1319
*Re-convergent fan-out
Circuits Whole Circuit(sec) Proposed (sec)
C432 8.86 9.25
C499* 3406 34.45
C880 21.55 22.34
C1355* 3616 44.92
C1908 2371 269.2
C2670 559 545
Whole Circuit: ILP Based Approach for IVC Toggle Maximization, VDAT-12
Conclusion
Toggles are not simultaneous
Occurrence of transitions in a combination logic follows the order of gates at a level
Logic partitioning into Levels is more realistic
Simulation time is reduced by a factor of 10 in a few circuits, by level partitioning
08/01/1320
Further Work
Fanout consideration (weighted function)
Consider: Glitches and Actual gate delays
Extension of ILP formulation to sequential circuits, by unfolding
08/01/1321
Level-Accurate Peak Activity Estimation in Combinational Circuits Using BILP
VDAT 2013
Jaynarayan Tudu, IISc Bangalore
Deepak Malani, IIT Bombay
Virendra Singh, IIT Bombay