Week 8 Course Material - Watermark
Week 8 Course Material - Watermark
Power Profile
Temperature Profile
HotSpot - Thermal Simulator
Power
Floorplan Trace
Thermal Estimator
HotSpot: lava.cs.virginia.edu/HotSpot/
Flow of Block Level Simulations
Circuit
Description Test patterns
Block level
Hotspot
floorplan
External Testing
THERMAL-AWARE TEST VECTOR
REORDERING
Drawbacks:
concentrate on minimizing circuit transitions rather
than peak temperature of CUT
the average temperature of the CUT increase.
Thermal Simulator
Integrated PSO
(HPSO)
Input Cone of Dependency of
Blocks
Block 1
A
B
f1
C
f2
f3
E
F
Block 2
Block 1: A,B,C
Block 2: C,D,E,F
Algorithm 1 – Hamming Distance
Based Vector Reordering(HD)
1 0 0 1 0 0 1 T1
1 1 0 1 0 1 0 T2
1 0 1 1 1 1 1 T3
Cost Function:
Wbi * Hamming Distance at the Primary
Inputs in the cone of dependency of Block Bi
Drawbacks of Hamming Distance
Based Approach
• First term in the first equation represents the effect of inertia of the particle
• Second term represents the particle memory influence
• Third term represents the swarm influence.
• The velocities of the particles on each dimension may be clamped to a maximum
velocity Vmax.
• A comparison with GA shows that PSO is better than GA as it has lesser number of
tuning parameters, and is faster than GA due to the linear complexity of its main loop.
PSO Formulation for Vector
Reordering
Number of test vectors= n
Particle
Ordered test vector set
Permutation of numbers from 0 to n-1
Swap Operator & Swap Sequence
Swap Operator (SO) Swap Sequence (SS)
Particle P = { t1, t3, t5, t7, t4, t2, t6 } Particle P = {t1, t3, t5, t7, t4,
t2, t6 }
Cost Function:
Fitness = Minimize the Peak block power
Algorithm 2 – Thermal Metric
Based PSO(PSO)
Neighboring gates of Block Bi =
ne(Bi)
Average Weight Wavegi of a Block Wbi = (1/N)
Wb
where, b ne(Bi)
Cost Function:
Fitness = Wbi * Ci * (Ti - Tbi_initial)
Algorithm 3 – Thermal Simulator
Integrated PSO (HPSO)
Hotspot is called within PSO
For a particular ordering, block level power trace
is generated and fed to Hotspot to get the actual
temperature trace
Peak block temperature found out
Cost Function:
Fitness = Minimize the Peak block
temperature
% Reduction in Peak Temperature
Average Peak Temperature Result of ISCAS’89
Circuits
*Yoneda, T., Nakao, M., Inoue, I., Sato, Y. and Fujiwara, H., “Temperature-Variation-
Aware Test Pattern Optimization” in Proc. European Test Symposium, pp.214, 2011.
Contd.
Initial pattern
0 0 0 0
0 0 0 0
1 0 0 0 0 1 0 0
1 1 0 0 0 1 1 0
0 1 1 1
1 1 1 0
0 1 1 1
0 1 1 1
Drawbacks:
Do not concentrate on minimizing overall peak
temperature and thermal variance of CUT
LT-RTPG Architecture*
* S. Wang and S. K. Gupta, "LT-RTPG: a new test-per-scan BIST TPG for low switching
activity," IEEE Transactions on Computer-Aided Design of Integrated Circuits and
Systems , vol.25, no.8, pp.1565,1574, Aug. 2006.
Flow of Work
Determine critical parameters
responsible for variation of
temperature
Fitness Function
Used fitness function in the first work(X-
filling)
Peak Temperature, Fault Coverage (%) and %
Reduction in Peak Temperature and Thermal
Variance
Circuit Normal BIST scheme PSO based LT-RTPG Scheme % Reduction w.r.t Normal
BIST Scheme in
Peak Fault Peak Fault Peak Thermal
Temperature Coverage (%) Temperature Coverage (%) Temperature Variance
(K) (K) (K)
1
EE141
Outline
D Introduction
D Digital Boundary Scan(1149.1)
D Boundary Scan for AdvancedNetworks
(1149.6)
D Embedded Core Test Standard (1500)
D Comparison between 1149.1 and1500
2
EE141
Boundary Scan
D Original objective: board-level digital testing
D Now also applyto:
• MCM and FPGA
• Analog circuits and high-speed networks
• Verification, debugging, clock control, power
management, chip reconfiguration, etc.
D History:
• Mid-1980: JETAG
• 1988: JTAG
• 1990: First boundary scan standard – 1149.1 3
EE141
Boundary Scan Family
No. Main target Status
1149.1 Digital chips and interconnects Std. 1149.1-2001
among chips
1149.2 Extended digital serial interface Discontinue
CPU
ASIC IP 2
DSP 2
RAM
ASIC
D SP ALU
ROM
ASIC
5
EE141
Digital Boundary Scan – 1149.1
D Basicconcepts
D Overall test architecture &operations
D Hardwarecomponents
D Instruction register & instruction set
D Boundary scan descriptionlanguage
D On-chip test support
D Board/system-level controlarchitectures
6
EE141
Basic Idea of Boundary Scan
Boundary-scan cell
Internal
Logic
7
EE141
A Board Containing 4 IC’s with
Boundary Scan
Boundary-scan cell Boundary-scan chain
Serial
Data in
Interna Internal
l Logic
Logic
Interna Interna
Serial l l
Data out Logic Logic
System
interconnect
8
EE141
1149.1 Boundary-Scan Architecture
Internal
Boundary-Scan
Register (consists of Logic
boundary Scan cells)
1
Internal Registers
12
EE141
Data registers
D Boundary scan register: consists of boundary
scan cells
D Bypass register: a one-bit register used to pass
test signal from a chip when it is not involved in
current test operation
D Device-ID register: for the loading of product
information (manufacturer, part number, version
number, etc.)
D Other user-specified data registers (scan chains,
LFSR for BIST, etc.)
13
EE141
A Typical Boundary-Scan Cell (BSC)
D Operation modes
• Normal: IN OUT (Mode = 0)
• Shift: TDI ... IN OUT ... TDO (ShiftDR = 1, ClockDR)
• Capture: IN R1, OUT driven by IN or R2 (ShiftDR = 0, ClcokDR)
• Update: R1 OUT (Mode_Control = 1, UpdateDR)
14
EE141
Lecture 41
TAP Controller
D A finite state machine with 16states
D Input: TCK,TMS
D Output: 9 or 10 signals includedClockDR,
UpdateDR, ShiftDR, ClockIR, UpdateIR,
ShiftIR, Select, Enable, TCK and TRST*
(optional).
15
EE141
State Diagram of TAP Controller
16
EE141
Main functions of TAP controller
D Providing control signalsto
• Reset BS circuitry
• Load instructions into instruction register
• Perform test capture operation
• Perform test update operation
• Shift test data in and out
17
EE141
States of TAP Controller
D Test-Logic-Reset: normal mode
D Run-Test/Idle: wait for internal test such as BIST
D Select-DR-Scan: initiate a data-scan sequence
D Capture-DR: load test data in parallel
D Shift-DR: load test data in series
D Exit1-DR: finish phase-1 shifting of data
D Pause-DR: temporarily hold the scan operation
(e.g., allow the bus master to reload data)
D Exit2-DR: finish phase-2 shifting of data
D Update-DR: parallel load from associated shift
registers Note: Controls for IR are similar to those for 18
EE141
DR.
Instruction Set
D BYPASS
• Bypass data through a chip
D SAMPLE
• Sample (capture) test data into BSR
D PRELOAD
• Shift-in test data and update BSR
D EXTEST
• Test interconnection between chips of board
D Optional
• INTEST, RUNBIST, CLAMP, IDCODE, USERCODE,
HIGH-Z, etc. 19
EE141
Execution of BYPASS Instruction
20
EE141
Execution of SAMPLE Instruction
21
EE141
Execution of PRELOAD Instruction
Input
M Internal M Output
PRELOAD U Logic U
X X
R1 R2 R1 R2
TDI TDO
22
EE141
Execution of EXTEST Instruction (1/3)
D Shift-DR(Chip1)
Internal Internal
Logic Logic
23
EE141
Execution of EXTEST Instruction (2/3)
D Update-DR(Chip1)
D Capture-DR (Chip2)
24
EE141
Execution of EXTEST Instruction (3/3)
D Shift-DR(Chip2)
Internal Internal
Logic Logic
25
EE141
Execution of INTEST Instruction (1/4)
D Shift-DR
26
EE141
Execution of INTEST Instruction (2/4)
D Update-DR
27
EE141
Execution of INTEST Instruction (3/4)
D Capture-DR
Internal
Logic
28
EE141
Execution of INTEST Instruction (4/4)
D Shift-DR
Internal
Logic
29
EE141
Boundary Scan Description
Language (BSDL)
D Now a part of IEEE 1149.1-2001
D Purposes:
• Provide standard description language for BS devices.
• Simplify design work for BS – automated synthesis is
possible.
• Promote consistency throughout ASIC designers, device
manufacturers, foundries, test developers and ATE
manufacturers.
• Make it easy to incorporation BS into software tools for
test generation, analysis and failure diagnosis.
• Reduce possibility of human error when employing
boundary scan in a design. 30
EE141
Features of BSDL
D Describes the testability features of BS
devices that are compatible with 1149.1.
D S subset ofVHDL.
D System-logic and the 1149.1 elementsthat
are absolutely mandatory need not be
specified.
• Examples: BYPASS register, TAP controller, etc.
D Commercial tools to synthesize BSDLexist.
31
EE141
Scan and BIST Support with
Boundary Scan
32
EE141