Module 1
Module 1
Introduction: Need for low power VLSI chips, charging and discharging capacitance, short circuit current in
CMOS leakage current, static current, basic principles of low power design, low power figure of merits.
Simulation power analysis: SPICE circuit simulation, discrete transistor modeling and analysis, gate level
logic simulation, architecture level analysis, data correlation analysis in DSP systems, Monte Carlo simulation.
(Text 1)
Question 1
Explain the needs of low power VLSI design. (05 Marks)
Explain the needs for low power VLSI design. (04 Marks)
Discuss the need for low power VLSI design. (08 Marks)
Discuss the need of low power VLSI design. (05 Marks)
Explain the need for low power chips and the sources of power dissipation in digital CMOS. (08 Marks)
Discuss the need of low power VLSI design of also explain basic principles of low power design and low
power figure of merits principles (12 Marks)
Need for low power VLSI chips
As transistors shrink and more are packed onto a chip (Moore's Law), operating frequency and processing
power increase.
This advancement also leads to higher power dissipation.
The demand for smaller, lighter, and longer-lasting portable devices necessitates low power consumption.
Battery technology advancements haven't kept pace with miniaturization of electronics, limiting battery life.
Increasing battery energy density raises safety concerns.
High-Performance Computing:
Environmental Concerns:
The growing number of electronic devices contributes significantly to overall energy consumption.
Inefficient power usage in electronics translates to increased air pollution from electricity generation.
Government regulations and programs like Energy Star promote energy-efficient computing, driving the need
for low-power VLSI design.
Low power chips and systems are driven by both business and technical needs.
1
Demand for low power chips is fueled by portable electronics market craving smaller, lighter, and durable
products.
Battery technology struggles to keep pace with rapid advancements in electronic circuits, raising safety
concerns.
High-performance computing systems with large power dissipation also drive the need for low power solutions.
Power dissipation impacts chip packaging and cooling costs, with some CPUs requiring cooling fans directly on
chip carriers.
Challenges arise from transient currents and digital noise immunity analysis in high-power chips.
Environmental concerns drive demand for low power chips, as office automation equipment consumes
significant energy.
Inefficient energy usage in computing equipment contributes to environmental pollution, prompting initiatives
like Energy Star certification.
The power dissipation is proportional to the switching activity, the capacitance being switched, and the square
of the supply voltage. The formula for switching power is:
Where:
Short-Circuit Power: During the transition from one logic state to another, there's a brief period when
both the NMOS and PMOS transistors are partially on. This can lead to a direct path between the power
supply and ground, resulting in a short-circuit current flow and additional power dissipation.
This short-circuit current dissipates power, which is proportional to the rise/fall times of the input
signals.
Glitching Power: Glitches are unwanted transient signals that can occur within a circuit due to
asynchronous switching or propagation delays. These glitches can cause additional charging and
discharging of capacitances, leading to power dissipation
2. Static Power Dissipation: Static power dissipation is related to the logical states of the circuits rather than
switching activities. In CMOS logic, leakage current is the main source of static power dissipation.
However, deviations from strict CMOS logic can also cause static current to be drawn occasionally.
2
Subthreshold Leakage: Even when a MOSFET is turned off (when the gate-source voltage is less than
the threshold voltage), there can still be a small amount of current that flows from drain to source, known as
subthreshold leakage. This leakage increases with reduced threshold voltage and higher temperatures.
3. Parasitic Capacitance: Parasitic capacitance, resulting from the interconnection wires and transistors, is a
significant source of dynamic power dissipation in CMOS circuits. While some capacitors may be intentionally
fabricated for non-digital operations, most digital CMOS circuits rely on parasitic capacitance. Estimating and
analyzing parasitic capacitance is crucial for both signal delay and power dissipation analysis.
Question 2
With the usual notation derive the expression for dynamic power dissipation in an inverter circuit. (08
Marks)
Derive an equation for total power dissipation in terms of capacitance and switching frequency using
charging and discharging a capacitor. (10 Marks)
Derive the expression for power dissipation in CMOS circuit due to charging and discharging of
capacitance. (07 Marks)
Note: The most significant source of dynamic power dissipation in CMOS circuits is the charging and
discharging of capacitance.
3
Figure 1.1 illustrates the equivalent circuit for charging and discharging the output capacitance of a CMOS
logic gate, using a switch to model the cycles. In the circuit, V represents an ideal constant voltage source, and
Rc (Rd) represents the resistance of the charging (discharging) circuitry, which can be intentional or parasitic.
According to the laws of physics, the voltage vc(t) and the current ic(t) of a capacitance CL at time t are given
by:
These quantities are determined by the charging and discharging processes, influenced by the voltage source
and the resistances in the circuitry.
4
Equation (1.7) is the most important power dissipation equation in digital VLSI chip design. It relates power
dissipation to a few quantities that are readily observable and measurable in VLSI circuits. The equation is easy
to compute, and more important, it is applicable to almost every digital CMOS circuit because only a few mild
assumptions have been used in the derivation.
The discussion reviews the generality and applicability of the equation P=CLV2f by examining its derivation
procedure. It highlights that during the charging process, CLV2 energy is drawn from the energy source. Half of
5
this energy is dissipated in the charging resistance Rc, while the other half is stored in the capacitor. Conversely,
during discharge, the energy stored in the capacitor is dissipated as heat in the discharging resistor Rd. This
observation underscores the balance of energy transfer and dissipation within the circuit, leading to the
formulation of the power dissipation equation.
few assumptions are made in our derivation:
1. The capacitance C L is constant.
2. The voltage V is constant.
3. The capacitor is fully charged and discharged, i.e., vc(to) = 0, vc(t1) = V, v c(t2) = 0.
The result is independent of the charging and discharging circuitry Rc, Rd ; the length of charging and
discharging cycle to, t1, t2 ; the voltage or current waveform v c(t), ic(t), etc. Furthermore, Rc, Rd can be
nonlinear, time varying resistance (such as a transistor) and the above derivation is still valid as long as the
three assumptions are satisfied.
Most CMOS digital circuits that we design today satisfy the three assumptions above when their
capacitances are charged and discharged during logic operations.
For most CMOS circuits operating at medium to high frequency, this is the prevailing mode of power
dissipation.
Equation (1.7) is only the power dissipation caused by a single capacitor CL . In general, the total power
should be summed over each capacitance Ci in a circuit yielding
where Vi is the voltage swing across the capacitor Ci switching at frequency fi. For CMOS circuits, V is
typically the same for all capacitance Ci . One simple approximation is to assume that fi is constant, for
example, by taking the average of all fi 's. This allows us to write
in which Ctotal is the sum of all capacitance, I is the average frequency and V is the voltage swing.
In today's typical CMOS process with minimum feature size of 0.I8-0.5um, typical values of Ci are in the order
of 0.005pF to 1pF. The charging and discharging frequency can be as high as several hundred MHz, with V at
several volts.
Question 3
A 32 bit off chip bus operating at 5 V and 55 MHz clock rate is driving a capacitance of 20pF/bit. Each
bit is estimated to have a toggling probability of 0.25 at each clock cycle. What is the power dissipation in
operating the bus? (04 Marks)
C = bits * C = 32* 20pF/bit = 640pF
V = 5V
f =toggling probability X clock rate = 0.25* 55MHz =13.75MHz
Question 5 – Note: power dissipation also caused by signal switching called short-circuit power.
Derive the equation for the short circuit power dissipation in a CMOS inverter supporting with diagrams
and explanation. (12 Marks)
Discuss short circuit power dissipation in CMOS inverter and hence derive with usual notation
Question 6
Mathematically discuss the leakage current in a MOS transistors. (10 Marks)
Leakage current exists as a natural phenomenon of the semiconductor device operation.
Leakage is a form of current that is generally not intended for the normal operation of a digital circuit.
There are two major sources of leakage current:
1. Reverse biased PN-junction current
2. Subthreshold channel conduction current.
The current Is is the reverse saturation current dependent on the fabrication process and the PN-junction area.
The variable Vth, which often appears in leakage equations, is called the thermal voltage where
In the above equation, k = 1.38 x 10-23Joule/K is the Boltzmann's constant, q = 1.60 X 10-19C is the electronic
charge and T is the device operating temperature. At room temperature, T = 300K and Vth = 25.9mV.
Note that Equation (1.11) is applied when V is negative, i.e., the PN-junction is in reversed bias. If IVI >> V th ,
we have ev IV, = 0 and Ireverse = Is' Thus, a small reverse voltage is sufficient to induce current saturation. For
all practical purposes, the current is largely independent of the circuit operating voltage.
7
The saturation current Is is highly dependent on the temperature. As a rule of thumb, the saturation
current Is doubles for every ten-degree increase in temperature.
To summarize, the reverse biased PN-junction current is largely independent of operating voltage but
depends on the fabrication process, junction area and temperature. Generally, the leakage current is not a
problem for most chips and there is very little one can do to reduce this current in a large scale digital design.
Discuss the fundamental physical mechanisms of power dissipation in digital CMOS VLSI circuits. (10 Marks)
The dynamic power dissipation in digital chips is mainly determined by voltage, capacitance, and
frequency (P = CV²f), with voltage having the greatest impact due to its quadratic effect. Lowering the
operating voltage of CMOS circuits is an effective way to save power. Other techniques include
reducing voltage swing using methods like charge sharing and adjusting transistor threshold voltage.
However, reducing voltage has trade-offs. Performance decreases as transistors slow down at lower
voltages, and threshold voltages can't scale down easily without increasing leakage current.
Additionally, low voltage swings reduce noise immunity, requiring special level converters for
interfacing signals.
2. Reduce Capacitance:
Reducing parasitic capacitance can improve performance and power consumption in digital design.
However, it is important to reduce the product of capacitance and switching frequency, not just
the capacitance itself. Signals with high switching frequencies should have minimal parasitic
capacitance to conserve power, while nodes with large capacitance should avoid high-frequency
switching.
Capacitance reduction can be achieved at various design levels, including material selection, process
technology, physical design (like floorplanning, placement, and routing), circuit techniques, transistor
sizing, logic optimization, architecture changes, and alternative algorithms.
Techniques for reducing switching frequency can be applied at various design levels, with higher-level
techniques generally having greater impact.
Reducing switching frequency can also improve chip reliability, as some failure mechanisms are tied to
high switching frequencies.
One key method is eliminating unnecessary logic switching that is not necessary for computation.
Other approaches involve alternate logic implementations, such as using different coding methods,
number systems, counting sequences, and data representations, which can change the switching
frequency of a design.
9
those with "sleep modes," where dynamic activity is minimal. Most leakage reduction techniques are
applied at low-level design, such as process, device, and circuit design.
Memory chips that have very high device density are most susceptible to high leakage power.
Static current can be reduced through transistor sizing, layout techniques, and careful circuit design.
Unused circuit modules should be turned off, and signal polarity can be reversed to minimize static
current flow.
To measure the power efficiency of a chip or system, several units of measure and figures of merit are used,
with no single measure being universally applicable. Here are the important points:
1. Power in Watts is the most straightforward measure, useful for determining the total power
consumption, packaging, cooling, and peak power needs. However, it becomes less useful when
measuring power efficiency, especially for higher-frequency chips.
2. Energy in Joules or μW/MHz is often used to measure energy dissipation per clock cycle, representing
power efficiency. Lower values are better since they indicate less energy is required for the same
computational task.
3. μW/MIPS or mA/MIPS measures energy consumption per instruction, which is useful for comparing
processors of different architectures. It normalizes power consumption with respect to performance
(MIPS = millions of instructions per second).
4. Limitations of μW/MIPS: It can be misleading when comparing processors with different architectures
(e.g., RISC vs. CISC) since different architectures require varying numbers of instructions to complete
the same task.
5. SPEC-based measures (μW/SPEC): SPEC is a more comprehensive performance rating based on
standardized benchmarks, useful for comparing processors that perform different tasks.
6. Energy-Delay Product (EDP): This is another common measure, especially for logic styles, that
factors in both energy consumption and computation delay.
7. Battery life in mA-Hour: For portable electronics, measures that involve battery lifetime (like mA-
Hour) are important for assessing energy efficiency.
8. No single measure is sufficient: Different figures of merit are used depending on the analysis and
application, and it’s up to the designer to choose the right metric for each situation.
10
Simulation at a lower-level design abstraction offers better accuracy at the expense of increased
computer resource.
Circuit simulators such as SPICE attain excellent accuracy but cannot be applied to full chip analysis.
Logic simulation generally can handle full-chip analysis but the accuracy is not as good and
sometimes the execution speed is too slow.
Behavioral-level or functional-level simulation offers rapid analysis but the accuracy is sacrificed.
Since no single simulation technique is applicable to all levels of design, the top down estimation, refinement
and verification methodology is used.
SPICE (Simulation Program with IC Emphasis) is the de facto power analysis tool at the circuit level.
SPICE Simulation basics:
KCL-based: SPICE solves nodal currents using Kirchhoff's Current Law.
Basic Components: Resistors, capacitors, inductors, current sources, and voltage sources are fundamental
elements.
Complex Models: Diodes and transistors are built from these basic components.
Circuit Analysis: SPICE calculates voltage, current, charge, and power dissipation with high precision.
Transient Analysis: This mode is most useful for digital IC power analysis, simulating circuit behavior over
time.
Device Models
Limitations:
Computational Resources: SPICE is resource-intensive, limiting its use for large circuits.
Device Models: Accuracy depends on the quality of device models, which can be challenging to obtain.
Process Variation: Fabrication variations can affect SPICE accuracy.
Extreme Case Analysis: Simulating with different device models (TYPICAL, BEST, WORST) helps
account for variations.
Device Speed: Faster devices often have higher power dissipation, but exceptions exist.
Marginal Power Budgets: Thorough analysis across extreme cases is crucial for designs with limited
power.
Bottom-Up Characterization: Process variation is a common issue in this approach, and SPICE is
particularly sensitive to it.
to form a linear approximation equation. In the small signal model, the equation can be simplified as
which leads to the model shown in Figure 2.2. The linear equation has to be numerically evaluated in SPICE
whenever the operating point Vgso and V dso changes, resulting in excessive computation requirements.
12
Tabular Transistor Model:
To speed up computation in circuit analysis, transistor models can be expressed in tabular form and
stored in a database. Instead of evaluating equations for each transistor, a simple table lookup is used
based on pre-calculated values of current (Ids) for given voltages (Vgs and Vds). This method requires a
one-time SPICE simulation to generate the lookup tables for various transistor sizes.
Circuit-level analysis tools based on these tabular models are primarily designed for timing and power analysis
of digital circuits. They use an event-driven approach, where a calculation is triggered only when there is a
significant voltage change in the circuit. If this approach fails, the system reverts to traditional circuit analysis
methods similar to SPICE.
DC Convergence: Using logic values from primary inputs helps address convergence issues in large
circuits.
Trade-offs:
Accuracy: Quantization introduces inaccuracies, but it's generally tolerable for digital circuits.
Scale: While faster than SPICE, transistor-level tools may still struggle with very large chips.
Overall:
Tabular transistor models offer a significant speedup compared to SPICE, but they come at the cost of
some accuracy.
These tools are suitable for timing and power analysis of digital circuits, but their effectiveness may be
limited for extremely large chips.
13
While using tabular models improves computation speed—up to two orders of magnitude faster than SPICE—it
introduces some inaccuracies, which are usually acceptable for digital circuits.
Speed up computation
The system was mainly designed for timing an power analysis of digital circuits.
It applies the event-driven approach, in which an event is registered when significant change in node
voltage occurs.
DC convergence problem
Question
Explain the techniques to obtain the
i) Capacitive power
ii) Internal switching power
iii) Static state power. (08 Marks)
Briefly discuss Gate – level logic simulation approach. (07 Marks)
Discuss the terms capacitive power dissipation, internal switching energy and static state
power with respect to gate level logic simulation. (08 Marks)
The basic principle of such tools is to perform a logic simulation of the gate-level circuit to obtain the
switching activity information. The information is then used to derive the power dissipation of the circuit.
Maturity: A well-established technique in VLSI design.
Component Abstraction: Focuses on logic gates, nets, and basic circuit elements.
Logic Behavior: Simulates the behavior of components like NAND gates, latches, and flip-flops.
Software Availability: Numerous gate-level logic simulators exist, capable of handling large-scale circuits.
Full-Chip Simulation: Can simulate chips with millions of gates.
Cycle-based simulators are a newer approach, assuming circuits are driven by synchronous clocks. They limit
the number of events per clock cycle, making the analysis more efficient by reducing the total events to
simulate.
To speed up gate-level simulations, hardware acceleration is used, where special hardware (like graphic
coprocessors) optimizes logic simulation, leading to faster performance. Hardware emulation is another
advanced technology, partitioning logic networks into smaller sub-blocks and implementing them using RAM
or FPGAs. This allows circuits up to a million gates to be emulated, providing near-real-time simulation at
speeds much faster than traditional software-based simulators, although it is costly to maintain.
Acceleration Techniques
Each net i of a gate-level circuit is associated with a capacitance Ci and a counter variable ti . As simulation
progresses, a logic switching at net i increments the counter ti. At the end of the simulation, the frequency of net
i is given by fi = t/(2D where T is the simulation time elapsed. The capacitive power dissipation of the circuit is
Pre-Layout Estimation: Can estimate Ci capacitance and power before physical layout.
Post-Layout Accuracy: Layout extraction tools provide accurate capacitance values.
Quick Estimation: Provides a rapid assessment of chip power dissipation.
By combining logic simulation with capacitance estimation, designers can obtain valuable insights
into power consumption at various stages of the design process.
15
Internal Switching Energy:
If a node appears inside a logic cell, its switching activities are not accounted because the logic-level abstraction
does not define internal nodes.
Short circuit power is also not captured by the equation 2.3.
The dynamic power dissipated inside the logic cell is called internal power, which consists of short-circuit
power and charging/discharging of internal nodes.
The energy dissipation events in a gate, such as a NAND gate, are tied to specific logic transitions that cause
dynamic energy consumption. This energy dissipation occurs when internal nodes are charged or discharged, or
when short-circuit currents flow during switching events.
Dynamic Energy Dissipation Events: These are triggered by changes in the gate's inputs. For example, in a 4-
transistor NAND gate, the event "A = 1, B switches from 0 to 1" leads to the output switching from 1 to 0,
consuming dynamic energy internally.
Sources of Energy Dissipation: This energy results from short-circuit current and charging/discharging
internal nodes during input transitions.
The dynamic energy dissipation event can be easily observed during logic simulation.
The computation of dynamic internal power uses the concept of logic events. Each gate has a pre-defined set of
logic events in which a quantum of energy is consumed for each event.
For example, a simple 4-transistor NAND gate has four dynamic energy dissipation events as shown in Figure
2.3(b).
This energy accounts for the short-circuit current and charging or discharging of internal nodes of the gate.
The computation is repeated for all events of all gates in the circuit to obtain the total dynamic internal power
dissipation as follows.
E(g, e) is the energy of the event e of gate g obtained from logic gate characterization and f(g, e) is the
occurrence frequency of the event on the gate observed from logic simulation.
16
The parameter E(g, e) depends on many factors: Factors Affecting Event Energy:
The transistors operate in different modes and thus the static leakage power of the gate is different.
The leakage power is primarily determined by the subthreshold and reverse biased leakage of MOS
transistors.
During logic simulation, we observe the gate for a period T and record the fraction of time T(g, s)/T in
which a gate g stays in a particular state s.
In the above equation, p(g, s) is the static power dissipation of gate g at state s obtained from characterization.
The state duration T(g, s) is obtained from logic simulation. It is the total time the gate g stays at state s.
17
The static power p(g, s) depends on process conditions, operating voltage, temperature, etc.
Device Parasitic Capacitance: This includes capacitance at the transistor's gate, source, and drain,
influenced by factors like oxide thickness and transistor dimensions (width, length, shape).
Wiring Capacitance: This is based on wire characteristics (layer, area, shape), and process parameters
like wire thickness, substrate distance, and width.
Capacitance Measurement:
Pin Capacitance: Pin capacitance of a cell can be measured using SPICE simulations, based on the
current-voltage relationship i=C⋅dv/dt
We vary the pin voltage ΔV of the cell in time Δt and observe the current i to obtain the capacitance C. This
measurement can be performed during the characterization of the cell.
Wiring Capacitance: This is estimated using a capacitance-per-unit-length model based on wire length
and routing.
the width of routing wires is set to the minimum and the wiring capacitance is estimated from the
lengths of the wires.
Estimation Techniques
Cell-Based Design: Pin capacitance can be measured and stored in cell libraries.
Wire-Load Model: Estimates wire capacitance based on pin count and circuit size before physical
design.
Post-Layout Extraction: Accurate capacitance calculation using wire lengths after physical design.
Before physical design, capacitance is estimated using wire-load models, predicting wire length based
on pin counts.
After physical design, the actual wire length provides accurate wiring capacitance for verification.
18
Importance of Capacitance Estimation: Accurate capacitance estimation is vital for power analysis, both
in the pre-layout and post-layout stages, to optimize power dissipation in chip designs.
List the approaches followed in event driven gate level power simulation. (04 Marks)
Explain the event driven gate level power simulation. (04 Marks)
1. Run logic simulation with a set of input vectors.
2. Monitor the toggle count of each net; obtain capacitive power dissipation P cap with Equation (2.3).
3. Monitor the dynamic energy dissipation events of each gate; obtain internal switching power dissipation
Pin, using Equation (2.4).
4. Monitor the static power dissipation states of each gate; obtain static power dissipation Pstat, with
Equation (2.5).
Simulation Vectors - Careful selection of simulation vectors is essential for accurate power analysis.
Power Dissipation Factors - Considering various operating conditions and using case analysis helps capture
power variations.
Operating Conditions: Voltage, temperature, output load, input slopes, fabrication process affect
power.
Case Analysis: Simulating under various conditions helps capture power variations.
Characterization: Storing results in a multi-dimensional table for efficient lookup.
19
Gate-Level Power Analysis -Gate-level power analysis provides valuable insights but may have limitations in
modeling signal glitches.
Limitations:
Signal Glitches: Gate-level analysis struggles to accurately model signal glitches, which can be a
significant source of power dissipation.
Probabilistic Techniques: Some approaches use probability to estimate glitch effects, but precise
deterministic analysis remains challenging.
Discuss the concept of gate level estimation with an example of 2 input NAND gate, extend
the same to gate level power analysis flow. (08 Marks)
Questions:
Discuss architectural level power analysis method. (10 Marks)
Describe architectural level power analysis method. (10 Marks)
Explain architectural level power analysis method. (10 Marks)
Model the architectural-level power based on activities and component operations. (06
Marks)
Explain the following models related to architectural level analysis.
i) Power model based on activities
ii) Power model based on component operations. (07 Marks)
Architecture-level Analysis
|- Power Models Based on Activities
|- Power Model Based on Component Operations
|- Abstract Statistical Power Models
Event and State Explosion: Architectural components have numerous possible events and states.
Intractability: Enumerating all possible combinations for a 16-bit adder, for example, is
computationally infeasible.
Architecture-Level Abstraction: This design level is above logic gates, focusing on blocks like registers,
adders, multipliers, memories, etc., which perform high-level functions. It is also called block-level or macro-
level design.
Shift Toward Architectural Design: As VLSI chips grow in complexity, designing at the gate level has
become inefficient. The focus has shifted from designing individual gates and transistors to using higher-level
architectural components. Lower-level descriptions (gates, transistors) can now be automatically generated from
architectural descriptions.
20
Challenges in Power Characterization: The dynamic event and static state characterization methods used
at the gate level cannot be easily applied to architectural components due to the vast number of possible states
and events. For example, fully characterizing a 16-bit adder may require enumerating billions of possible
events, making it impractical for power analysis.
Importance of Architectural Power Analysis: With more digital circuits being synthesized from
architectural descriptions, architecture-level power analysis is becoming increasingly crucial for managing
power dissipation in complex designs.
Architecture-Level Abstraction
Building Blocks: Registers, adders, multipliers, busses, multiplexors, memories, state machines, etc.
Higher Level: Focuses on the functional behavior of components rather than individual gates.
Rising Importance: Becoming more prevalent due to increasing circuit size and complexity.
Example
21
Equations (2.9) and (2.10) require a factor Ki for each input i. Sometimes this is too
tedious to characterize and we can simplify them to
Characterization:
Random Signals: Generating random signals with specified frequencies to exercise components.
Regression Fitting: Deriving coefficients K1, K2, and Ki using regression analysis based on observed
power dissipation.
The parameters f read and fwrite are the frequencies of READ and WRI1E operations,
• The Coefficients K1 and K2 are determined through characterization and properties of the component.
• The compromise is to use the average READ and WRITE energy of the operations in Equation (2.12),
which introduces some inaccuracies, but improves the computation efficiency and generality of the
power model.
• Skewed Access Patterns: the memory access pattern is skewed such that most of the READ and
WRITE operations occur at a particular location, e.g., address zero. If this is known a priori, the power
model can be modified to improve the accuracy.
• For example, we can characterize the zero address (ZA) and the non-zero address (NZA) operations as
22
Abstract Statistical Power Models:
Efficiency vs. Precision: To model power dissipation efficiently, assumptions about the statistical behavior
of components are necessary. Precise signal-level models are computationally inefficient due to the large
number of I/O pins.
Power models for architecture-level components require statistical assumptions due to computational inefficiency.
Statistical Models: Power models often use statistical parameters like Pin toggling, operations, probabilities,
and other statistical quantities rather than exact logic events.
Key factors influencing power dissipation include size, signal frequency, operation frequency, etc.
Identifying parameters (size, signal frequency, operation frequency) that affect power dissipation.
Defining the relationship between these parameters and power consumption (using equations or
lookup tables).
Component-Specific Analysis: Different components like adders, multipliers, memories, and registers have
distinct characteristics, requiring different parameters for accurate power analysis.
Trade-off Between Accuracy and Efficiency: While gate-level models are more precise, architecture-level
models are less robust due to necessary assumptions. However, these models are useful for comparing
designs and guiding design trade-offs.
Relative Accuracy Focus: Instead of aiming for absolute accuracy, the goal is to provide insights into the
relative power consumption between different designs, enabling informed design decisions at the
architecture level.
Emphasizing relative accuracy over absolute accuracy is a good strategy for composing power models.
A good power estimation technique should provide insights into relative power consumption, even if
absolute accuracy is difficult to achieve.
How do you analyse the data correlation in DSP systems? What are the effects of data
correlation on bit switching frequency? (10 Marks)
Briefly discuss Data correlation Analysis in DSP systems (8 Marks)
Explain the dual bit type used for characterization of data signals. (08 Marks)
Data Correlation Analysis in DSP Systems
Sample correlation is a phenomenon where successive data samples have similar numerical values and
binary representations.
This is caused by sampling band-limited analog signals at higher rates than their bandwidth.
23
Some data streams exhibit negative correlation (anti-correlation) with alternating large positive and negative
values.
Delta modulation is an example of a digital signal coding scheme that can produce negatively correlated
data.
Positive or negative correlation significantly affects power dissipation in DSP systems due to switching
activities on the system datapath.
The goal is to estimate power dissipation at the architecture level component based on
frequency and correlation measures of the data stream.
A high-level power model can be developed without sample-by-sample analysis by understanding the
relationship between data correlation and power dissipation.
High-Level Power Modeling: By understanding the relationship between data correlation and power dissipation, a
high-level power model can be developed. This avoids the need for detailed, sample-by-sample analysis and instead
uses data frequency and correlation measures to estimate power dissipation at the architecture level.
24
No correlation results in uniform white noise characteristics for all bit switching.
The above observation allows us to characterize the data stream with only a few
parameters:
1. Sample frequency.
2. Data correlation factor from -1.0 to + 1.0.
3. The sign bit and unifonn white noise regions with two integers.
Such characterization of data signals is called the dual bit type model
• The effective capacitance Cu is approximately equal to the capacitance being switched under the white
noise signal excitation.
• This effective capacitance is used to compute power at a different frequency f2 and different voltage V2
under white noise signal excitation
25
• The concept of effective capacitance can also be used on the module bits under the sign bit signal
excitation.
• Effective capacitance is no longer a scalar quantity.
• Between successive data samples, the sign bit may or may not change sign.
• Thus, Four effective capacitance values: C++, C+-, C-+, C-- subscript sign pairs
• In a FIFO data queue, it is most likely that C +- = C-+ and C++ = C—
Construct circuits in which all four effective capacitance variables have different values.
• With the four effective capacitance values characterized by a lower-level power analysis tool,
• Construct a power equation.
• Let p++, p+-, p-+, p-- be the probabilities that sign changes occur in the data stream.
• Power equation for the bit excitation under the sign bit signal:
where V is the operating voltage and I is the frequency of the data stream.
Note that
p ++ + p +- + p -+ + p-- = 1 and for long data sequence p +- = p -+
N-Bit Module:
For a module that consists of multiple bits
Distinguish the white noise bits from the sign bits
Take the midpoint of the grey area
All bits to the left (right) of the midpoint are considered to have sign bit (white noise) signals.
Ns = sign bits Nu = whit noise bits
The power dissipation P of the module :
The effective capacitance Cu' C++, C+_, C_+, C _ are obtained during characterization, once per
module design.
The variables Ns' Nu' p++, p+_, p_+, p __ , are obtained from the correlation factor and signal properties
of the data stream, typically by analyzing the data stream from the behavior-level simulation.
If the data stream has high positive correlation,
Equation (2.17) assumes that there are no interactions among data bits in the module and allows us to
characterization one bit and applies the effective capacitance to the other bits.
This is no longer true for modules that have interactions among data bits such as barrel shifters.
The characterization for all possible combinations of Nu and Ns. Since Nu + Ns is equal to the number of
bits N of the module, there are only N + I conditions to be characterized.
Where C(Nu), 0≤ Nu≤ N is the effective capacitance when there are Nu white noise bits at the module's input.
26
Explain dual bit type signal model for DSP systems. How an adder of 2 input and 1 output
module is characterized. (08 Marks)
Refer the above points
Adder of 2 input and 1 output module:
The two inputs may have different sign and noise bit separation points.
Modules with two inputs and one output (e.g., adders) have overlapping sign and noise bit regions at the
output.
as shown in Figure 2.7. There are four possible polarity conditions in the sign bit portions of the
inputs and output.
Therefore, there are 4 x 4 x 4 = 64 possible types of signal transition patterns. This means that there are
64 effective capacitances from C+ +/++/++, C+ +/++/+- to C--/--/--.
The "u/ss" condition (INI has noise bits and IN2 has sign bits) requires another four effective
capacitances and so is the "ss/u"
condition.
The "ulu" input combination only requires one effective capacitance value.
In total, there are 64 + 4 + 4 + I = 73 effective capacitance values to be characterized using a lower-level
power analysis tool.
for an adder, some transition patterns may not occur. For example, C ++1++1 _ is zero because when
both inputs have the positive sign, the output cannot have the negative sign.
In general, all 73 effective capacitances have to be characterized for an arbitrary two-input one-output
module.
The power dissipation is given by
The dual bit type characterization method can be generalized to most types of
architecture- level components such as multipliers, memories, etc.
27
Determining the boundary between sign and noise bits is a key step in power analysis.
This can be done through simulation or probabilistic analysis.
Once bit types are determined, Equation (2.17) or (2.19) calculates power dissipation.
The analysis method is a bottom-up approach where modules are pre-designed and pre-characterized.
Cell libraries are suitable for bottom-up approaches due to their small size and reusability.
Architecture-level components (adders, multipliers, register files) are less reusable and often require
custom design.
Once characterized, these components can be analyzed under various data correlation and dynamic
ranges.
Characterization of newly designed components is essential in any bottom-up approach.
This is the classical mean estimation problem in statistics in which we draw N samples from a large
population and try to determine the mean of the population.
For small value of N, P is not truthful
For large N unnecessary computation will be performed without gaining meaningful accuracy.
Trade-off between sample size and accuracy. Our questions of stopping criteria now become the
determination of the sample size N.
The power samples Pi are random variables following some unknown probability density function.
The distribution of Pi depends on the circuit, simulation vectors and the sample interval.
Let µ and σ2 be the mean and variance of pi, Now the question is how accurate is P in estimating µ with
N samples?
According to the well-known central limit theorem in statistics, the sample mean P approaches the
normal distribution for large N regardless of the distribution of Pi.
For theoretical development, let us assume that the samples Pi have normal distribution.
Basic statistical theory states that the average of normally distributed random variables also has normal
distribution. The mean of P is exactly µ and its variance is
As we increase the sample size N, the variance σp2 diminishes so that we obtain more accurate measures of the
true mean µ.
29
To quantify the accuracy of the sample mean P, a maximum error tolerance Ɛ term is used typically with
values less than 10%, Given Ɛ, what is the probability that P is within the Ɛ error range of the true mean
µ?
what is the probability for the condition 0≤ |P-µ|/µ ≤ Ɛ?
If this probability is high, we will trust the estimate P; otherwise, we must increase the sample size N to
gain more confidence.
The probability can be obtained by integrating the normal distribution curve p(x) in Figure 2.8.
For historical reason, the probability is more conveniently expressed by a confidence variable .
The confidence level is defined as 100 (1 - )%. A confidence level of 100% ( = 0) means that P is
absolutely within the error tolerance of Ɛ.
Typically, the confidence level is set to more than 90% to be meaningful, i.e., ≤ 0.1.
To explore the relationships among Ɛ, . and N. We define a variable z/2 such that the area between µ-
z/2σp and µ + z/2σp under the normal distribution curve p(x) is (1- ).
To ensure the condition |P-µ|/µ ≤ Ɛ , we require that
Since and Ɛ are fixed constants prescribed by the experimenter, the equation can be rewritten as
Equation (2.24) tells us the minimum number of samples N to be taken in order to be at least (l - )
confident that the error of P is within the tolerance of Ɛ.
The value of z/2 is typically obtained from a mathematical table known as the z-distribution function.
For most practical purposes, z/2 is a small number.
At confidence level of 90% ( = 0.1), Z0.05 is approximately 1.65. At confidence of 99% ( = 0.01), Z0.005 is
approximately 2.58. The following table shows some values of (1 - ) and z/2.
30
The variables P and S2 are quantities that can be directly computed from the observed N samples of Pi.
we collect samples Pi at a fixed interval to compute the sample mean P = (P0 + P1 + ... + PN)/N and sample
variance S2 using Equation (2.26). Given the confidence level (1 - ) and error tolerance Ɛ, we check if Equation
(2.27) is satisfied. If so, we claim that the stopping criteria have been achieved and stop the simulation.
This process is called Monte Carlo power simulation.
31
The procedure is summarized as follows:
Simulate to collect one sample pi.
Evaluate sample mean P and variance S2 using equation 2.20 & 2.26
Check if the inequality (2.27) is satisfied; if so stop, else repeat from Step 1.
As more samples are collected, the power dissipation value P becomes more accurate and eventually the
stopping criteria are satisfied.
Logic-level Monte Carlo simulation
First the samples Pi have to be statistically independent. This is always a fundamental assumption of the
statistical analysis.
if the sample period T is shorter than the typical gate delay, we could violate the independence
assumption.
This is because when the input of a gate is switching, the output is very likely to switch after the
gate delay. Thus, subsequent samples are highly correlated if the sample period is shorter than the
gate delay.
we can always set T to be very large to assure independence but this prolongs the simulation time.
Simulation time: The simulation time (related to sample size N) depends on the ratio of the sample variance
and sample mean S2/p2.
Circuit size and variance: For larger circuits, the sample variance S2 typically decreases due to the
increased number of uncorrelated nodes. This leads to a reduction in the required sample size N.
Simulation time for large circuits: Despite the reduced sample size, the simulation time for large circuits
can be similar to that for small circuits. This is because large circuits have more randomness, leading to less
variation in power samples.
Stopping criteria: A technique for deciding the stopping criteria without observing the power samples has
been reported.
32
The standard deviation of the power samples measured from the circuit has been observed to have ±18%
fluctuation from the mean. How many samples are required so that we are 95% confident that the error
of sample mean is within ±5%? The 2 distribution table shows 1.96 for 95% confidence. (04 Marks)
We have σ/µ =0.18 Ɛ = 0.05. Since (1- σ) = 0.95, we have z/2 = 1.96
33
Explain, how an MOS transistor is modeled for amplification and switching simulation model. (04 Marks)
Discuss dynamic energy dissipation events and static power dissipation states of 4 transistors CMOS
NAND Gate. (10 Marks)
For an 4-transistor, 2-input NAND gate evaluate how an dynamic energy and static power dissipation states are
obtained and also evaluate the dynamic energy dissipation events. (06 Marks)
Power Analysis
34
35
36
37
38
39
40