40
Dr. Martin Keim Automated Debugging of IJTAG Networks Engineering Director Tessent Memory Test [email protected] Nordic Test Forum, November 29, 2017

Automated Debugging of IJTAG Networks - Nordic Test Forum

  • Upload
    others

  • View
    15

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Automated Debugging of IJTAG Networks - Nordic Test Forum

Dr. Martin Keim

Automated Debugging of IJTAG Networks

Engineering Director

Tessent Memory Test

[email protected]

Nordic Test Forum, November 29, 2017

Page 2: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Outline

◼ Refresher on IJTAG (IEEE 1687)

◼ Debugging the network— What is in it?— Defects— Methodology— Visualization ?

◼ Summary

◼ Note: — This presentation shows work-in-progress — Feedback is very much appreciated

Nordic Test Forum, 11/29 20172

Page 3: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

3 Approaches to IEEE 1687 (IJTAG)

◼ A business perspective — “I need to concentrate on my product’s core value-add. Everything else

should be commodity off the IP market.”

◼ A design perspective— “I can no longer connect all IEEE 1149.1 IP to my TAP.”

– Note: IEEE 1149.1 in this historic context means pre-2013

◼ A DFT engineer’s pain perspective— “Generating correct top level patterns for all my IP is painful and takes way

too much time.”— “ECO’s are a nightmare”

Nordic Test Forum, 11/29 20173

Page 4: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

3 Approaches to IEEE 1687 (IJTAG)

◼ A business perspective — “I need to concentrate on my product’s core value-add. Everything else

should be commodity off the IP market.”

◼ A design perspective— “I can no longer connect all IEEE 1149.1 IP to my TAP.”

– Note: IEEE 1149.1 in this historic context means pre-2013

◼ A DFT engineer’s pain perspective— “Generating correct top level patterns for all my IP is painful and takes way

too much time.”— “ECO’s are a nightmare”

Nordic Test Forum, 11/29 20174

Page 5: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

IEEE 1149.1 / 1500 Use Model

Nordic Test Forum, 11/29 20175

◼ Care bits are local to IP

◼ User must find top-level care & control bits

◼ (Semi-) manual process

◼ High potential for error

◼ Adding / changing IP causes ALL patterns to be invalid

◼ Huge time sink

◼ Test benches ???

◼ Diagnosis ???

Position where to define care and control bits& pattern sequence

TAP

TDO

TDI

TCK

TRST

BLOCK1

TDR

TAP

BLOCK2

WSP

TMS

en

unstructuredaccess

network

UserIngenuity

control

data

1500 tool

Page 6: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

ICL

ICL

IEEE 1687 Use Model

Nordic Test Forum, 11/29 20176

IEEE 1687 defines:

◼ Procedural Description Language (PDL)— Describes IP usage at a given

level— Facilitates automatic retargeting

to any higher level

◼ Instrument Connectivity Language (ICL)— Describes only the (test) access /

interface view of IP— Abstracts from IP implementation— Describes partial or complete

networks

◼ Rules for 1687 IP realizations— Port functions, timing, connection— IJTAG does not require any new

hardware— Follows 1149.1 hardware rules

SI

SO

IP

IP

TDR

SI

SO

IP

IP

WSP

TAP

IEEE 1687

access

network

Tool

automated

retargeting

User defined

care bits in PDL

System-level

Integration

Verification

ATE

.v

STIL

PDL

ICL

ICL

This is a EDA Tool feature

(not mandated by IJTAG rules)

Page 7: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

ICL

ICL

IEEE 1687 and other future standards

Nordic Test Forum, 11/29 20177

◼ P1687.1— Non-Tap chip-level

interfaces— Example: SPI, I2C

◼ P1687.2— If the instruments are

analog

◼ SJTAG working group— Connecting 1687, 1687.1

chips on a board

◼ P1838— Designs going 3D— Standard will describe

only hardware.— HW and patterns can be

modeled with 1687

SI

SO

IP

IP

TDR

SI

SO

IP

IP

WSP

TAP

IEEE 1687

access

network

Tool

automated

retargeting

User defined

care bits in PDL

System-level

Integration

Verification

ATE

.v

STIL

PDL

ICL

ICL

This is a EDA Tool feature

(not mandated by IJTAG rules)

Page 8: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

An Implementation of PDL Retargeting

The depicted logic shall only serve as an example.1687 does not require any particular implementation as long as the IO protocol is served correctly.

User PDL:iWrite Inst1.R 0xfiApply

Retargeted PDL:iWrite Tap.IR[2:0] 0b001iApply

iWrite Sib1.S 0b1iWrite Sib2.S 0b0iApply

iWrite Inst1.R[3:0] 0b1111iWrite Sib1.S 0b1iWrite Sib2.S 0b0iApply

SIB1

SIB2

en1

en2

TDO

TDI

en

3TCK

TRST

SI

SOInst1

Instrument

Instrument

R

SI

SOInst2

Instrument

Instrument

R

TMS

rst

TAP

Nordic Test Forum, 11/29 2017

enx

si

SIB

LAT

csuenrsttck

fso

so

Does not show IP reuse

CSU = Capture, Shift, Update Enable

8

Page 9: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

An Implementation of PDL Retargeting

The depicted logic shall only serve as an example.1687 does not require any particular implementation as long as the IO protocol is served correctly.

User PDL:iWrite Inst1.R 0xfiApply

iWrite Inst2.R 0xaiApply

Retargeted PDL:iWrite Tap.IR[2:0] 0b001iApply

iWrite Sib1.S 0b1iWrite Sib2.S 0b0iApply

iWrite Inst1.R[3:0] 0b1111iWrite Sib1.S 0b0iWrite Sib2.S 0b1iApply

iWrite Sib1.S 0b0iWrite Inst2.R[3:0] 0b1010iWrite Sib2.S 0b1iApply

SIB1

SIB2

en1

en2

TDO

TDI

en

3TCK

TRST

SI

SOInst1

Instrument

Instrument

R

SI

SOInst2

Instrument

Instrument

R

TMS

rst

TAP

Nordic Test Forum, 11/29 2017

enx

si

SIB

LAT

csuenrsttck

fso

so

Does not show IP reuse

CSU = Capture, Shift, Update Enable

9

Page 10: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Problem Statement

Nordic Test Forum, 11/29 201710

◼ The first test executed is ICLNetwork

◼ If the ICLNetwork test fails→ no test/diagnosis of instruments may be possible/trusted

◼ As designs grow, so does the IJTAG network→ higher probability for failures

◼ Currently don’t have a way to diagnose or debug failures in IJTAG networks

◼ Questions to answer:— What components are in the IJTAG

interconnect network?— What defects can we target?— How do we target these defects?— Can this be automated?

SIB1

SIB2

en1

en2

TDO

TDI

en

3TCK

TRST

SI

SOInst1

Instrument

Instrument

R

SI

SOInst2

Instrument

Instrument

R

TMS

rst

TAP

What if somethingis wrong here?

Page 11: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

IJTAG Network Elements & Failure Modes◼ Test Data Register (TDR)

— Failure mode: bit stuck@1, bit stuck@0

◼ Segment Insertion Bit (SIB)— Built using a shift-update register and a Mux— Two (or more) inputs, one output

– Deassert: pass data from SI to SO (client mode)– Assert: pass data from “Host subnet” (host mode)

— Failure mode: stuck@assert, stuck@deassert

◼ ScanMux— Like SIB (built-in select register)— Failure mode: stuck@select0, stuck@select1

◼ Also considering slow-to-rise, slow-to-fall, …001100110011 → 000100010001 (just like ATPG scan chain diagnosis)

Nordic Test Forum, 11/29 201711

TDR-1From SI To SO

SIBFrom SI To SO

Host Subnet

Scan

Mux

Input 1

Input 2

Output

Page 12: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Example IJTAG Network

Nordic Test Forum, 11/29 201712

TAP

SIB-1 SIB-3

TDR-1 SIB-2

TDR-2

TDR-3

TDR-4

Scan

Mux

-1

TDR-5 TDR-6

TDI TDO

Page 13: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

IJTAG Network Elements

Nordic Test Forum, 11/29 201713

◼ Scan element— An instance of a SIB, ScanMux, or a TDR

◼ A scan path is an ordered sequence of scan elements — Starts from a scan primary input (i.e. TDI)— “Walks” a path through the network— Ends in a scan primary output (i.e. TDO)

◼ Valid scan path examples— SIB-1, SIB-3— SIB-1, TDR-5, TDR-6, SIB-3— TDR-1, TDR-2, TDR-4, ScanMux-1, SIB-2,

SIB-1, SIB-3

Page 14: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

One Technique: Over-Shifting

◼ Flush, i.e. scan-in, a bit pattern which is longer than the scan path length

◼ Look for that exact bit pattern in the scan-out data

◼ Usages— Check consistency of a register length between design and ICL— Diagnose a SIB or a ScanMux stuck at assert / deassert

◼ Not yet found a need for under-shifting

Nordic Test Forum, 11/29 201714

Page 15: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

◼ Assume SIB-3 is bad

◼ Task: Determine stuck@assert or stuck@deassert— de-asserted scan path = (SIB-1@0, SIB-3@0)— asserted scan path = (SIB-1@0, TDR-5, TDR-6, SIB-3@1)

◼ If SIB-3 is stuck@deassert:— flush pattern 0011001100 will arrive at TDO too soon

◼ If SIB-3 is stuck@assert:— flush pattern 0011001100 will arrive at TDO too late

◼ Either of the above condition can be detected— flushing an appropriately long bit pattern 001100110011 — and check when it appears at the TDO.

◼ If constant values are received→ Bit failure on the path

Over-Shifting Technique (Bad SIB-3 Example)

Nordic Test Forum, 11/29 201715

stuck@?

Page 16: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Over-Shifting Technique (Bad TDR-1 Example)

Nordic Test Forum, 11/29 201716

◼ Assume TDR-1 is bad

◼ Task: Determine if it is bad due to length discrepancy between ICL and design.

◼ Minimum scan path = (TDR-1, SIB-2@0, SIB-1@1, SIB-3@0)

◼ If TDR-1 length in design < length in ICL— flush pattern 0011001100 will arrive at TDO too soon

◼ If TDR-1 length in design > length in ICL— flush pattern 0011001100 will arrive at TDO too late

◼ Either of the above condition can be detected— flushing an appropriately long bit pattern 001100110011 — and check when it appears at the TDO.

bad

Page 17: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Automatic Diagnosis

◼ Basic Hierarchical Algorithm— Methodical top down approach— Divide & conquer— New diagnosis patterns will be generated and executed as needed

Nordic Test Forum, 11/29 201717

Page 18: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Automatic Diagnosis (Hierarchical)1. Call explore_ijtag_network to explore the top ring (i.e. all SIBS de-asserted)

2. Call setup_ijtag_scanpath to setup the scan path

3. Flush bit pattern using flush_ijtag_pattern to test it

4. If passed▪ Find a deeper ring (i.e. depth first)▪ Go to 2

5. If failed▪ Diagnose it

▪ Flush various bit patterns▪ Use “over-shifting” technique for SIBs & ScanMuxes: Stuck at assert or de-assert▪ Use “over-shifting” technique for TDR’s: Length consistent between design and ICL?

▪ Find the next ring at the same level (don’t go any deeper here)▪ Go to 2

Complexity:

Maximum Scan paths tested for 2 input SIBs & ScanMuxes = Number of SIBs + Number of ScanMuxes + 1* Assuming SIBs and ScanMuxes all have 2 inputs

Nordic Test Forum, 11/29 201718

Page 19: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Hierarchical Algorithm Example

Nordic Test Forum, 11/29 201719

◼ For this example:

◼ Maximum number of explored scan paths= 3 + 1 + 1 = 5

1. (SIB-1@0, SIB-3@0)

2. (TDR-1, SIB-2@0, SIB-1@1, SIB-3@0)

3. (TDR-1, TDR-2, TDR-3, ScanMux-1@0, SIB-2@1, SIB-1@1, SIB-3@0)

4. (TDR-1, TDR-2, TDR-4, ScanMux-1@1, SIB-2, SIB-1, SIB-3)

5. (SIB-1@0, TDR-5, TDR-6, SIB-3@1)

Page 20: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Hierarchical Algorithm Example 1

Nordic Test Forum, 11/29 201720

1. (SIB-1@0, SIB-3@0) - pass

2. (TDR-1, SIB-2@0, SIB-1@1, SIB-3@0) – fail

3. (TDR-1, TDR-2, TDR-3, ScanMux-1@0, SIB-2@1, SIB-1@1, SIB-3@0) - pass

4. “over-shifting” (TDR-1, SIB-2@0, SIB-1@1, SIB-3@0) – Look for the exact flush pattern at TDO

5. Conclude SIB-2 is stuck@assert

stuck@assert

Page 21: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Hierarchical Algorithm Example 2

Nordic Test Forum, 11/29 201721

1. (SIB-1@0, SIB-3@0) - pass

2. (TDR-1, SIB-2@0, SIB-1@1, SIB-3@0) – pass

3. (TDR-1, TDR-2, TDR-3, ScanMux-1@0, SIB-2@1, SIB-1@1, SIB-3@0) - fail

4. (TDR-1, TDR-2, TDR-4, ScanMux-1@1, SIB-2@1, SIB-1@1, SIB-3@0) - pass

5. “over-shifting” (TDR-1, TDR-2, TDR-3, ScanMux-1@0, SIB-2@1, SIB-1@1, SIB-3@0) – observe exact flush pattern at TDO

6. Conclude ScanMux-1 is stuck@select1

◼ If the length of TDR-3 is same as TDR-4— cannot discern if ScanMux-1 is stuck at select 0 or 1

stuck@select1

0

1

Page 22: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Hierarchical Algorithm Example 3

Nordic Test Forum, 11/29 201722

1.(SIB-1@0, SIB-3@0) - pass

2.(TDR-1, SIB-2@0, SIB-1@1, SIB-3@0) –pass

3.(TDR-1, TDR-2, TDR-3, ScanMux-1@0, SIB-2@1, SIB-1@1, SIB-3@0) - pass

4.(TDR-1, TDR-2, TDR-4, ScanMux-1@0, SIB-2@1, SIB-1@1, SIB-3@0) - pass

5.(SIB-1@0, TDR-5, TDR-6, SIB-3@1) – fail (all 1’s)

6.“over-shifting” (SIB-1@0, TDR-5, TDR-6, SIB-3@1) – fail (all 1’s)

7.Conclude TDR-5 and/or TDR-6 stuck at 1.

stuck@1

Page 23: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

GUI Representation of the IJTAG Network

Red means defect(s) in the network

Yellow indicates suspect(s)

Nordic Test Forum, 11/29 201723

Defect here

Page 24: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Summary

◼ Debugging the IJTAG Network will become important

◼ Prototype has been applied successfully at customers

◼ Can be done automatically

◼ Can be done interactively

◼ Can generate static ATE pattern set → offline diagnosis solution

◼ More ideas to implement

◼ Feedback is welcome

Nordic Test Forum, 11/29 201724

Page 25: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Q & A

Nordic Test Forum, 11/29 201725

Page 26: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

BACKUP MATERIAL

Nordic Test Forum, 11/29 201726

Page 27: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

3 Approaches to IEEE 1687 (IJTAG)

◼ A business perspective — “I need to concentrate on my product’s core value-add. Everything else

should be commodity off the IP market.”

◼ A design perspective— “I can no longer connect all IEEE 1149.1 IP to my TAP.”

– Note: IEEE 1149.1 in this historic context means pre-2013

◼ A DFT engineer’s pain perspective— “Generating correct top level patterns for all my IP is painful and takes way

too much time.”— “ECO’s are a nightmare”

Nordic Test Forum, 11/29 201727

Page 28: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Business Problem: IP Diversity

你好

CiaoHola

Guten Tag

안녕하세요

BonjourIPIP

IP

IP

IP

IP

IP

IP

IP

IPIP

IP

IP

Hello

Test ToolsTest Tools Standardized communication interfacesenable faster integration, test and debug

- flexible – scalable – non-intrusive – low cost -

IJTAG(IEEE 1687)

こんにちは

Hello

Hello

IPIP

IP

IP

IP

IP

IP

IP

IP

IPIP

IP

IP

CiaoHola

Guten Tag

안녕하세요

BonjourHello

HelloHello

HelloHello

你好

Helloこんにちは

Nordic Test Forum, 11/29 201728

Page 29: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

3 Approaches to IEEE 1687 (IJTAG)

◼ A business perspective — “I need to concentrate on my product’s core value-add. Everything else

should be commodity off the IP market.”

◼ A design perspective— “I can no longer connect all IEEE 1149.1 IP to my TAP.”

– Note: IEEE 1149.1 in this historic context means pre-2013

◼ A DFT engineer’s pain perspective— “Generating correct top level patterns for all my IP is painful and takes way

too much time.”— “ECO’s are a nightmare”

Nordic Test Forum, 11/29 201729

Page 30: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

JTAG Architecture Instrument

FromTDI

ToTDO

Instrument (e.g.

MBIST)

TDI

TDO

TMS

TCK

Instrument Target:Memory

TAPController

IR

o Embedded Instrument

o Instrument is not describedin the 1149.1 Standard

TDR

o The Scan Path Network is documented as a TDR with a lengtho Decode for Operation Signals happens in the TAP Controller o No Scan Path Management Featureso No description of the Instrument or its Vectors

BSDL

ScanIn

UpdateEn

ShiftEn

CaptureEn

GlobalRst

TCK to TDR

ScanOut

The 1149.1 Network with Instruments

Nordic Test Forum, 11/29 2017

Unique bundle of wires for each

Instruction o Generally one Instruction selects one instrument or a fixed set of instrumentso Hard-coded selectiono Routing congestion

30

Page 31: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Controller Network Instrument

FromTDI

ToTDO

Instrument (e.g.

MBIST)

TDI

TDO

TMS

TCK

Instrument Target:Memory

TAPController

AccessLink

o AccessLinkInstruction

TDR

ICL Description

Select

ScanIn

UpdateEn

ShiftEn

CaptureEn

GlobalRst

TCK to TDR

ScanOut

Basic 1687 Network with Instruments

Nordic Test Forum, 11/29 2017

o Idea: If the ‘Select’ could be local, less routing needed

o Embedded Instrument

o Instrument is not partof the 1687 Standard

31

Page 32: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

Controller Network Instrument

FromTDI

ToTDO

Instrument (e.g.

MBIST)

TDI

TDO

TMS

TCK

Instrument Target:Memory

TAPController

AccessLink

TDR

SIB

ICL Description

Select

ScanIn2ScanIn

Select

ScanOut2

UpdateEn

ShiftEn

CaptureEn

GlobalRst

TCK

ScanOut

Basic 1687 Network with Instruments & SIB

Nordic Test Forum, 11/29 2017

o SIB: Segment Insertion Bit= Scan chain ‘switch’ with local select generator

o Embedded Instrument

o Instrument is not partof the 1687 Standard

o The Scan Path Network and Plug-and-Play Interface o Scan Path Management Features (SIBs, NIBs, LRs)o Local Selection & Configuration Decodeo Instrument Interface and Portable Instrument Vectors

32

o AccessLinkInstruction

Page 33: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

FromTDI

ToTDO

TDR

Instrument A (MBIST)

TDR

Instrument B (AlgoPatGen)

TAP Controller

TDI

TDO

TMS

TCK

Instrument A’s Target: Memory

Instrument B’s Target: SerDes

AdjustUpdateEn

ShiftEn

CaptureEn

GlobalReset

SIBSelect

Read/Write TDR: Freezes until Select from SIB

SIBSelect

Normal TDR: Note - Reset independent of Select

Shift, Capture, Update, and Reset signals are a busacross the chip to all TDRs, SIBs, and NIBs – to be gated locally by local Selects

Decode for one 1687 network instruction

Complex 1687 Network with Instruments

Nordic Test Forum, 11/29 2017

AccessLink

Allows for post-Si selection of instruments,not tied to any hard-coded TAP instruction

33

Page 34: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

3 Approaches to IEEE 1687 (IJTAG)

◼ A business perspective — “I need to concentrate on my product’s core value-add. Everything else

should be commodity off the IP market.”

◼ A design perspective— “I can no longer connect all IEEE 1149.1 IP to my TAP.”

– Note: IEEE 1149.1 in this historic context means pre-2013

◼ A DFT engineer’s pain perspective— “Generating correct top level patterns for all my IP is painful and

takes way too much time.”— “ECO’s are a nightmare”

Nordic Test Forum, 11/29 201734

Page 35: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

IEEE 1149.1 / 1500 Use Model

Nordic Test Forum, 11/29 201735

◼ Care bits are local to IP

◼ User must find top-level care & control bits

◼ (Semi-) manual process

◼ High potential for error

◼ Adding / changing IP causes ALL patterns to be invalid

◼ Huge time sink

◼ Test benches ???

◼ Diagnosis ???

Position where to define care and control bits& pattern sequence

TAP

TDO

TDI

TCK

TRST

BLOCK1

TDR

TAP

BLOCK2

WSP

TMS

en

unstructuredaccess

network

UserIngenuity

control

data

1500 tool

Page 36: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

IEEE 1687 Use Model

◼ The process of moving IP-level patterns to higher design level is called ‘retargeting’

◼ IJTAG allows automationby an EDA tool

Nordic Test Forum, 11/29 201736

SI

SO

IP

IP

TDR

SI

SO

IP

IP

WSP

TAP

IEEE 1687

access

network

Tool

automated

retargeting

User defined

care bits

Patterns

Temperature Sensor

Enable

Temp[3:0]

TDR

SI

SO

Page 37: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

ICL

ICL

IEEE 1687 Use Model

Nordic Test Forum, 11/29 201737

IEEE 1687 defines:

◼ Procedural Description Language (PDL)— Describes IP usage at a given

level— Facilitates automatic retargeting

to any higher level

◼ Instrument Connectivity Language (ICL)— Describes only the (test) access /

interface view of IP— Abstracts from IP implementation— Describes partial or complete

networks

◼ Rules for 1687 IP realizations— Port functions, timing, connection— IJTAG does not require any new

hardware— Follows 1149.1 hardware rules

SI

SO

IP

IP

TDR

SI

SO

IP

IP

WSP

TAP

IEEE 1687

access

network

Tool

automated

retargeting

User defined

care bits in PDL

System-level

Integration

Verification

ATE

.v

STIL

PDL

ICL

ICL

This is a EDA Tool feature

(not mandated by IJTAG rules)

Page 38: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

ICL

ICL

IEEE 1687 Use Model

Nordic Test Forum, 11/29 201738

Instrument Interfaces

◼ Serial access— Follows 1149.1 protocol— TDR, WSP, TAP, etc.

◼ Parallel access:— Read/write from data ports— Parallel scan chains (TDRs)

◼ Bus access:— Supports read/write enable— Address/Data— PDL implements protocol

◼ Same applies to top level access:— Serial (with/without TAP)— Parallel— Bus

SI

SO

IP

IP

TDR

SI

SO

IP

IP

WSP

TAP

IEEE 1687

access

network

Tool

automated

retargeting

User defined

care bits in PDL

System-level

Integration

Verification

ATE

.v

STIL

PDL

ICL

ICL

Optional

(Not mandated)

Page 39: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

iProcsForModule TDR

iProc write_to_tdr { value } {

iNote "Writing '$value' to register R of module TDR"

iWrite R $value

iApply

}

iProc run_testX { } {

iCall write_to_tdr 0b10010110

iRunLoop 1000 -tck

iRead R 0xff

iApply

}

Example 1: A Test Data Register Controlled IP

Nordic Test Forum, 11/29 2017

Module TDR {

ScanInPort SI ;

ScanOutPort SO { Source R[0] ; }

ShiftEnPort SE ;

CaptureEnPort CE ;

UpdateEnPort UE ;

SelectPort EN ;

TCKPort TCK;

ScanRegister R[7:0] {

ScanInSource SI ;

}

} ICL

PDL

SI

SOTDR

RIP

• Ports have semantic

• Relative timing of events at ports is defined by 1687

• Objects like registers have built-in properties

• The IP itself is not modeled

• Looks like TCL

• Procedures are bound to modules

• Reading and writing only of care bits

• 1687 tool adds control bits

• 1687 tool takes care of the execution

39

Page 40: Automated Debugging of IJTAG Networks - Nordic Test Forum

Restricted © 2017 Mentor Graphics Corporation

iProcsForModule TDR

iProc write_to_tdr { value } {

iNote "Writing '$value' to register R of module TDR"

iWrite R $value

iApply

}

iProc run_testX { } {

iCall write_to_tdr 0b10010110

iRunLoop 1000 -tck

iRead R 0xff

iApply

}

Example 1: A Test Data Register Controlled IP

Nordic Test Forum, 11/29 2017

PDL

• Looks like TCL

• Procedures are bound to modules

• Reading and writing only of care bits

• 1687 tool adds control bits

• 1687 tool takes care of the execution

▪ PDL is not a pattern description in the sense of STIL, etc.

▪ PDL is a command language!

▪ PDL instructs an EDA tool how to compute patterns through retargeting

40