07_3_synthesis_power_timing

Download Report

Transcript 07_3_synthesis_power_timing

Power Optimization
1
‫مرتض ي صاحب الزماني‬
Power optimization
• Transitions cause power consumption.
• Logic network design helps control
power consumption:
– minimizing capacitance;
– eliminating unnecessary glitches.
Pdyn=
∑a.f.CL.Vdd2
2
‫مرتض ي صاحب الزماني‬
Power estimation tools
• Power estimator approximates power
consumption from:
– Netlist;
– Primary input transition probabilities;
– Capacitive loading.
• Two Types:
– Switch/logic simulation-based
– Statistical models
3
‫مرتض ي صاحب الزماني‬
Power optimization
• Leakage in more advanced processes.
– Even when logic is idle.
– Solution:
• Reducing junction temperature by using fans,
heat sinks, or design modifications
• Reducing voltage levels of the IOs.
– Each bank requires a separate power supply.
4
‫مرتض ي صاحب الزماني‬
Power optimization
– Maximizing the number of unused and
unpowered banks.
– Clock gating:
• Clocks that drive logic, embedded memory,
SerDes, and other FPGA primitives can be
disabled when their operation is not required.
5
‫مرتض ي صاحب الزماني‬
Glitching example
• Gate network:
6
‫مرتض ي صاحب الزماني‬
Adder Chain Glitching
d
a+b+c+d
c+d
c
a+b+c
a+b+c
a+b
a+b
a+b
good
8
bad
‫مرتض ي صاحب الزماني‬
Factorization for low power
• Proper factorization reduces glitching.
• ‘a’ has high transition probability, ‘b’ and ‘c’ low probabilities
f(a, b, c)
bad
10
f(a, b, c)
good
‫مرتض ي صاحب الزماني‬
Factorization techniques
• Reduce number of logic levels through
which high-probability signals must
travel
–  Reduce propagation of glitches.
11
‫مرتض ي صاحب الزماني‬
Example (ALU)
• ALU output is not used for every cycle
–  If ALU inputs change, the energy is
needlessly consumed
12
‫مرتض ي صاحب الزماني‬
Example (ALU)
• Control Signal selects whether data is allowed
to pass the logic or the previous value is held to
avoid transitions.
Data
Logic
D
Q
Control
13
‫مرتض ي صاحب الزماني‬
Low Power Design Techniques
• Reduce wiring capacitance
– Get post-layout feedback for better
capacitance estimations
• Place and route to minimize capacitance
of nodes with high glitching activity.
• Reducing FPGA operating voltages.
• Reducing operating frequencies.
• Reducing the overall toggle rate of the
design.
14
‫مرتض ي صاحب الزماني‬
Low Power Techniques
• FPGA Selection:
– Spartan6 and Virtex-6 -1L speed grade
option for low-power applications
• Requires lower core voltage.
– FPGAs with smaller die size and lower pin
count consume less power.
15
‫مرتض ي صاحب الزماني‬
Low Power Techniques
• Synthesis Options:
– XST, MAP and PAR “-power” option
reduces dynamic power consumption.
– Quartus-II has Power-Driven Synthesis and
Fitter
• Disabling unused functional blocks:
– By deasserting enable inputs to modules that
use Xilinx BRAMs when not accessed.
• RAMs, ROMs, and FIFOs,
16
‫مرتض ي صاحب الزماني‬
State assignment
• One-hot:
– usually a good choice for optimizing speed or
reducing power.
• Gray:
17
– appropriate for controllers exhibiting long
paths without branching.
– Minimizes hazards and glitches.
– Gives good results when implementing the
State Register with T Flip-Flops.
– Can be used to minimize power
‫مرتض ي صاحب الزماني‬
State assignment
• Compact:
– Minimizes the number of bits in the state
register.
– Minimizes next state equations.
• Speed1
– oriented for speed optimization.
– The number of bits for a State Register
depends on the specific FSM
18
‫مرتض ي صاحب الزماني‬
‫مرتض ي صاحب الزماني‬
‫‪19‬‬
‫مرتض ي صاحب الزماني‬
‫‪20‬‬
Another Sample Report
21
‫مرتض ي صاحب الزماني‬
• Changed to gray automatically
22
‫مرتض ي صاحب الزماني‬