ipp low power da iict 3

Upload: vs

Post on 02-Jun-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/10/2019 Ipp Low Power Da Iict 3

    1/30

    VDAT 2002 Power aware Charaterization of IPPS 1

    Power Aware Characterization ofInput Vectors Sequence for Std.

    Cell Based Circuits

    Pramod K. Jain D. Boolchandani V. Sahula

    Department of ECE

    Malaviya National Institute of Technology, Jaipur

    Deemed university)

    [email protected], [email protected], [email protected]

    mailto:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]
  • 8/10/2019 Ipp Low Power Da Iict 3

    2/30

    VDAT 2002 Power aware Charaterization of IPPS 2

    Index

    Motivation

    Sources of power dissipation

    Power estimation from layout (full adder)

    Power minimization technique

    Characterizing the IPPs sequence

    Integer linear programming

    Greedy heuristic

    Results

  • 8/10/2019 Ipp Low Power Da Iict 3

    3/30

    VDAT 2002 Power aware Charaterization of IPPS 3

    Motivation

    Cell selection for low power

    technology mapping

    Low power sequence for stored

    data application

    Data processing is independentof sequence of input data

  • 8/10/2019 Ipp Low Power Da Iict 3

    4/30

    VDAT 2002 Power aware Charaterization of IPPS 4

    Analysis

    accurate estimation

    Optimization

    process of generating the best design

    Estimation techniques forms foundation fordesign optimization

    Low Power VLSI Design

  • 8/10/2019 Ipp Low Power Da Iict 3

    5/30

    VDAT 2002 Power aware Charaterization of IPPS 5

    Power Estimation Techniques

    Accuracy vs Computing resources (Time and memory)

    Abstraction level computing resources Analysis accuracy

    Algorithms least WorstSoftware and system

    Hardware behavior

    Resistor transfer

    Logic (gate) level

    Circuit (transistor) level

    Device level Worst Best

  • 8/10/2019 Ipp Low Power Da Iict 3

    6/30

    VDAT 2002 Power aware Charaterization of IPPS 6

    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

  • 8/10/2019 Ipp Low Power Da Iict 3

    7/30VDAT 2002 Power aware Charaterization of IPPS 7

    Probabilistic Technique

    Switching power estimation of full adder

    Where

    D(yi): # of the transitions per time interval

    Ci : capacitance at node i

    ( )i

    n

    1ii

    2

    ddav yDCV2

    1

    P ==

  • 8/10/2019 Ipp Low Power Da Iict 3

    8/30VDAT 2002 Power aware Charaterization of IPPS 8

    a0

    b0

    c0

    s0

    cy

    n18y8

    y7

    n16

    y6

    y5n19

    y4

    y2

    y3

    y1

    y9

    y10

    1-Bit Full Adder Example

    Layout in 1.5m, Tanner

  • 8/10/2019 Ipp Low Power Da Iict 3

    9/30VDAT 2002 Power aware Charaterization of IPPS 9

    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

    Adder 1204 1197 99.4%

    NAND2 37 35 94.6%

    2_1 MUX 211 202 95.7%

    XOR 328 325 99.0%

    Tool used for Switching power estimation

    Tanner SPICE

  • 8/10/2019 Ipp Low Power Da Iict 3

    10/30VDAT 2002 Power aware Charaterization of IPPS 10

    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

  • 8/10/2019 Ipp Low Power Da Iict 3

    11/30VDAT 2002 Power aware Charaterization of IPPS 11

    Agenda

    Objective: Find sequence of input-vectors withminimum power dissipation

    Procedure:

    Enumerate pair of O/P transitions Enumerate corresponding 2 I/P vectors

    Enumerate sequence of O/P transitions Enumerate sequence of I/P vectors

    Estimate power in switching between 2 I/Pvectors

  • 8/10/2019 Ipp Low Power Da Iict 3

    12/30VDAT 2002 Power aware Charaterization of IPPS 12

    Output and Input Transitionsn bn fn

    0 0 00 1 1

    1 0 1

    1 1 0

    fn fn+10 0

    0 1

    1 0

    1 1

    fn fn+10 0

    nb

    n

    an+1bn+100 0000 11

    11 00

    11 11

    a, b, f {0,1}

  • 8/10/2019 Ipp Low Power Da Iict 3

    13/30

    VDAT 2002 Power aware Charaterization of IPPS 13

    Problem Definition

    Problem: Which is minimum powersequence of I/P vectors out of (2k-1)!sequences?

    Model: Directed graph Gof 2k nodes & lP2edges

    Solution: Find minimum weightHamiltonian cycle in G. Know theedge weights (Power in I/P pair).

    k 2 3 =2

    k 4 8

    2P

    12 56

    )!1( 6 5040

    k Number of I/Ps =2

    k Number of I/Pvectors

    2P

    Number of pairs of

    I/P vectors

    )!1(

    Possible number of

    sequences of I/P

    vectors

    00

    10 11

    01

  • 8/10/2019 Ipp Low Power Da Iict 3

    14/30

    VDAT 2002 Power aware Charaterization of IPPS 14

    Tracing of Hamiltonian Cycle-

    Time complexity ILP Based Exact algorithm

    Sub tours elimination constraints

    Edge cover heuristic

    Sorting edges in ascending order of weight

    Selection of edges till completion of the HC

    O(E)

    =

    2

    2

    l

    kk

    lC

  • 8/10/2019 Ipp Low Power Da Iict 3

    15/30

    VDAT 2002 Power aware Charaterization of IPPS 15

    Char. of IPPs for Low Power

    Input Pattern Pair (IPP) A pair of consecutive input vectors called IPP Select the suitable sequence of IPPs

    minimize the power dissipation

    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

  • 8/10/2019 Ipp Low Power Da Iict 3

    16/30

    VDAT 2002 Power aware Charaterization of IPPS 16

    IPPs for 3-bit Input Circuit

    Input vectors are l=2ne.g. (000,

    001, 010, etc)

    7 IPPs corresponding to eachinput vector.

    Total number of IPPs would be lp2

    Sum

    Full

    Adder

    a0

    b0

    c0

    cy

    56

    8

    3

    2 =

    =

    =

    P

    n

  • 8/10/2019 Ipp Low Power Da Iict 3

    17/30

    VDAT 2002 Power aware Charaterization of IPPS 17

    Power component in full adder

    Ex. parasitic In. parasitic % Difference

    Total Power

    using

    simulation

    587.7w 1197.2 w 42.5% contr.

    by parasitic

    Dy. Power

    using prob.

    Method

    956.3 w 79.8% to the

    total power

    r t=rise time=.01ns, f t= fall time=.01ns, p w=pulse width=10ns, Adder delay =3.63ns

    Di h R t ti f All

  • 8/10/2019 Ipp Low Power Da Iict 3

    18/30

    VDAT 2002 Power aware Charaterization of IPPS 18

    011

    000

    001

    010

    100

    101

    110

    111

    A node in a digraphcorresponds to an inputvector

    An edge of the digraphcorresponds to inputvector transition

    The edge weight C ij

    the power consumed intransition.

    Possible transitions of input vectors for a 3-input circuit

    Digraph Representation of All

    Possible IPPs

  • 8/10/2019 Ipp Low Power Da Iict 3

    19/30

    VDAT 2002 Power aware Charaterization of IPPS 19

    Time complexity

    ILP Sub tours elimination constraints

    Heuristic

    Sorting in ascending order Selection of edges till completion of the HC

    O(E)

    =

    2

    2

    l

    k

    klC

  • 8/10/2019 Ipp Low Power Da Iict 3

    20/30

    VDAT 2002 Power aware Charaterization of IPPS 20

    0-1 ILP Based Solution

    Find minimum weight Hamiltonian cycle

    (HC) in a complete digraph

    ILP provides the exact solution

    Formulation

    Objective function

    Constraints equations

  • 8/10/2019 Ipp Low Power Da Iict 3

    21/30

    VDAT 2002 Power aware Charaterization of IPPS 21

    Introducing a decision variable 0-1 variable Xijsuch that

    =

    otherwise

    cyclenHamiltoniainisjtoiedgetheif

    ij

    X

    0

    1

    The constraint equations to satisfy two conditions

    every node must have exactly one in-degree and one

    out-degree

    sub cycles which are the disjoint loops in the diagraph

    must be eliminated.

    0-1 ILP Based Solution (Contd.)

  • 8/10/2019 Ipp Low Power Da Iict 3

    22/30

    VDAT 2002 Power aware Charaterization of IPPS 22

    jiforn

    j

    n

    i ijXijC

    functionObjective

    = =

    ,1 1

    min

    :

    { }nkforki kj

    ijX

    ijandnjforn

    i ijX

    ijandniforn

    j ijX

    thatSuch

    .......,2,12

    .......,2,11

    1

    .......,2,11

    1

    ==

    =

    ==

    =

    # of equations required

    very large O(2l)

    146 even for 3-input circuit

    Represents In degree 1.

    Represents Out degree 1.

    Sub cycles eliminationconstraints

    ILP Formulation

  • 8/10/2019 Ipp Low Power Da Iict 3

    23/30

    VDAT 2002 Power aware Charaterization of IPPS 23

    Proposed Heuristic: Minimum

    Power Edge Cover (MPEC)

    Minimum-Power Edge-Cover G (V, E)

    1. R=E; // R is remaining edge

    2. C=; // C is cycle edge

    3. While R is not empty

    3.1 Remove the shortest edge (v, w) from R

    3.2 Check for cycle and in/out degree of a node

    3.3 If [(v,w) does not make a cycle with edges in C]

    AND [(v,w) would not be second out going or

    second incoming edge in C incident on v or w]

    3.3.1 Add (v, w) to C3.4 Continue loop

    4. Add the edge connecting the end points of the path in C

    5. Return C;

  • 8/10/2019 Ipp Low Power Da Iict 3

    24/30

    VDAT 2002 Power aware Charaterization of IPPS 24

    Power in HCs: XORGate

    ExampleSequence Power Sequence Power

    0, 1, 2, 3 258 w 2, 0, 1, 3 290 w

    0, 1, 3, 2 286 w 2, 0, 3, 1 326 w

    0, 2, 1, 3 253 w 2, 1, 3, 0 256 w

    0, 2, 3, 1 283 w 2, 1, 0, 3 329 w

    0, 3, 1, 2 321 w 2, 3, 0, 1 257 w

    0, 3, 2, 1 329 w 2, 3, 1, 0 285 w

    1, 0, 2, 3 285 w 3, 0, 1, 2 258 w

    1, 0, 3, 2 328 w 3, 0, 2, 1 257 w

    1, 2, 0, 3 324 w 3, 1, 0, 2 285 w1, 2, 3, 0 256 w 3, 1, 2, 0 324 w

    1, 3, 0, 2 255 w 3, 2, 0, 1 288 w

    1, 3, 2, 0 287 w 3, 2, 1, 0 329 w

    Average Sequence Power = 289.54

  • 8/10/2019 Ipp Low Power Da Iict 3

    25/30

  • 8/10/2019 Ipp Low Power Da Iict 3

    26/30

    VDAT 2002 Power aware Charaterization of IPPS 26

    Cell HC/ [Power] using

    ILP

    HC/ [Power] using

    Heuristic

    % Difference

    XOR 0, 2, 1, 3 [253 w] 3, 0, 2, 1 [257w]

    0, 1, 2, 3 [33w]

    2, 1, 3 [161 w]

    1.32%

    NAND 2, 0, 1, 3 [28 w] 15.2%

    S-R FF 2, 1, 3 [161 w] 0%

    Comparing Two Techniques: Low

    Power IPPs Sequence

    Minimum power HC comparisons using ILP versus Heurist ic

  • 8/10/2019 Ipp Low Power Da Iict 3

    27/30

    VDAT 2002 Power aware Charaterization of IPPS 27

    Cell Min. Power HC Avg. Min. Power

    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 15, 13, 6, 3, 2, 7, 11, 9, 12, 0, 10, 8,

    1, 4, 5, 14

    85 w

    MPEC Heuristic Results: Min. Power

    Bound

    MPEC H i ti R lt M P

  • 8/10/2019 Ipp Low Power Da Iict 3

    28/30

    VDAT 2002 Power aware Charaterization of IPPS 28

    Cell Max. Power Hamiltonian cycle 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

    MPEC Heuristic Results: Max. Power

    Bound

  • 8/10/2019 Ipp Low Power Da Iict 3

    29/30

    VDAT 2002 Power aware Charaterization of IPPS 29

    Cell Max. Power Hamiltonian cycle Avg. Max. Power

    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 5, 12, 4, 8, 3, 11, 2, 10, 9, 1, 7, 6, 13,

    14, 15, 0

    106 w

    MPEC Heuristic Results: Max. Power

    Bound (Contd.)

  • 8/10/2019 Ipp Low Power Da Iict 3

    30/30

    VDAT 2002 Power aware Charaterization of IPPS 30

    Conclusions

    Dynamic power

    major contributor

    Efficient method for power characterization using

    IPPs advantageous in technology mapping for low power

    Results using proposed heuristic

    optimal or nearly optimal sequence