42
AltiumLive 2017: ANNUAL PCB DESIGN SUMMIT Simon Payne CEO, XJTAG Ltd. Saving time & money with JTAG

Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

AltiumLive 2017:ANNUAL PCBDESIGN SUMMIT

Simon PayneCEO, XJTAG Ltd.

Saving time & money with JTAG

Page 2: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

Saving time and money with JTAGJTAG / IEEE 1149.X

Page 3: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

3XJTAG.com © Copyright 2017

Take-away points

Free Stuff!Use JTAG moreGet JTAG right from the start

Page 4: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

4XJTAG.com © Copyright 2017

Testability and JTAG

Use JTAG more – JTAG Programming

Why JTAG?

Testability

1

I

II

2

Getting JTAG right from the start – Free Stuff3

Page 5: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

5XJTAG.com © Copyright 2017

JTAG – a familiar name

• It can be found in most PCB designs

• JTAG is probably built into the silicon you already use – so if you have it, use

it!

• Make the most of it – if you have it for one purpose, why not use it for all

3?

In-CircuitProgrammin

g

Testing

but it’s still under-

used

is not newJTAG CPU Debug

Page 6: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

6XJTAG.com © Copyright 2017

JTAG / Boundary Scan / 1149.x

Designed to minimise access difficulties

• Test Access Port interface is 4/5 signals

• Gives access to the whole device

• JTAG devices connect to form a chain

Abstracted from device and board complexity

• No need to know what type of CPU core, or even whether the device is a CPU, FPGA, CPLD, RAM, PHY, etc.

Page 7: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

7XJTAG.com © Copyright 2017

I

Testability and JTAG

Use JTAG more – JTAG Programming

Why JTAG?

Testability

II

2

Getting JTAG right from the start – Free Stuff3

1

Page 8: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

8XJTAG.com © Copyright 2017

Measuring testability is complex

• Prepare early

• Test as much as you can

• Test as quickly as you can

What is testability?

Page 9: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

9XJTAG.com © Copyright 2017

Testability sounds sensible

• But when you think about it, what does it mean?

• Tested for what?

What is testability?

Page 10: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

10XJTAG.com © Copyright 2017

What affects testability?

Testability is about ACCESS

Multiple test methodologies give more complete coverage

Page 11: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

11XJTAG.com © Copyright 2017

Different methodologies have different strengths / weaknesses

Examples:

Test methodologies

JTAG

Automated Optical Inspection (AOI)

X-ray

In-Circuit Test (ICT)

Pres

ence

Corr

ectn

ess

Ori

enta

tion

Live

Alig

nmen

t

Shor

ts

Ope

ns

Qua

lity

Page 12: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

12XJTAG.com © Copyright 2017

Aside: using different test methodologies

Different methodologies are available at different times

• ICT generally not available in the lab

• X-ray might even involve sending out to a 3rd party

• Benchtop use of JTAG

FPT AOI X-rayICTAOI

DESIGN & DEVELOPMENT PRODUCTION & SERVICE

X-ray

JTAG

Design

Prototype Manufacturing

Hardware Debug

Software Debug

System Integration

Manufacturing

Field Updates

3rd Party Test3rd Party Test

Page 13: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

13XJTAG.com © Copyright 2017

What affects testability?

JTAG controllerTestability is about ACCESS

• A point of access on a net gives you (some) fault detection

• Multiple points of access give you better detection and fault diagnosis

Page 14: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

14XJTAG.com © Copyright 2017

Better access improves testability

Open-circuit fault diagnosis:

Open detected Open located

No open detected

Page 15: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

15XJTAG.com © Copyright 2017

So – the more access I have, the better?

Making sure of testability

Page 16: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

16XJTAG.com © Copyright 2017

Typical design process – where does testability come in?

• If your design will use JTAG for bring-up, testability just got a big boost anyway– but make sure you don’t throw away the opportunities!

NPI Reviews

• Is testability (and trade-off against speed) reviewed early enough in your NPI process?

Design rules

• Sometimes you simply have to have rules.

Making sure of testability

PCB Layout

Netlist Footprint Associations

DfM Analysis

NPI Document Control

PCB Fabrication

GenerateBOM & Netlist

NPI Document Control

Prepare BOM

Prototype Build

Adjust BOM for Volume

Basic DfM & DfAAnalysis

High Volume Document

Control

High Volume Manufacturing

Schematic Design

High Volume Document

Control

Collect Client Requirements

NPI

FEE

DBA

CK L

OO

P

Electronics New Product Introduction (NPI) Time-to-Market Challenges

Page 17: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

17XJTAG.com © Copyright 2017

Design validation

• How?

• What are the most important things to get right?

Making sure of testability

If only there were some kind of extension that could help… !

Page 18: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

18XJTAG.com © Copyright 2017

II Testability and JTAG

Use JTAG more – JTAG Programming

Why JTAG?

Testability

2

Getting JTAG right from the start – Free Stuff3

1

I

Page 19: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

19XJTAG.com © Copyright 2017

Testing with JTAG 1149.x

JTAG is unaffected by component density

• The pins of JTAG devices become test points in your circuit

JTAG tests non-JTAG devices

• The JTAG devices provide access to test the PCB

• Particularly useful when the PCB has BGA devices

• Cheaper/quicker/better diagnostics than functional test

JTAG lowers costs

• Simpler fixtures and test setup

• This means it’s available at a lab bench as well as in the factory

Page 20: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

20XJTAG.com © Copyright 2017

For those who last saw JTAG 10 years ago…

Ways in which things have moved on…

• JTAG tools aimed at board designers not just production test engineers

• Costs have fallen

• Support for non-JTAG devices has become much easier

• Test scripts rather than test vectors (vectors are auto-generated)• Code re-use – both within boards and across designs• Model libraries

• Accelerated in-circuit programming limited only by flash write speed

Page 21: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

21XJTAG.com © Copyright 2017

Testing with JTAG 1149.x

The circuit is powered during tests

• Unlike most flying probe / bed-of-nails testers

No firmware is used

• Unlike functional testing

• JTAG device pins are controlled directly

The JTAG signals run at high speed

• Typically around 10 - 30 MHz, sometimes faster

Page 22: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

22XJTAG.com © Copyright 2017

Test fixture cabling

We repeatedly see in test fixtures on JTAG TAP signals:

• Spaghetti wiring• Poor ground connections

Try:

• Twisted pairs (Ground + signal)• Or ribbon cables with ground between signals• Shielded cables

Further reading:www.xjtag.com/signal-integrity-in-test-fixtures/

Page 23: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

23XJTAG.com © Copyright 2017

Testing goes beyond direct access

There are many more non-JTAG devices than JTAG devices on a PCB

• Testing non-JTAG devices is achieved using the JTAG device pins

• Because JTAG devices tend to be major ones (CPU, FPGA, CPLD) they have access to many peripherals

Access means testability

• This means that from JTAG you can perform tests based on device functionality

Page 24: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

24XJTAG.com © Copyright 2017

Testing goes beyond direct access

Examples of functionality-based testing

• Use pins on the JTAG devices to write data to the non-JTAG devices on their nets, and read return data

• I2C devices

• DDR memory

• Flash

• Many others…

Page 25: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

25XJTAG.com © Copyright 2017

What faults can JTAG testing find?

• Shorts between nets with JTAG access

• Shorts to power or ground

• Open-circuit between JTAG devices

• Open-circuit between a pin on a JTAG device and a testable non-JTAG device

• Missing or non-powered testable devices

• Missing pull resistors

• Faults in logic between JTAG devices or JTAG and testable non-JTAG devices

• Faults around coupling capacitors (using 1149.6)

• Via functionality-based testing: huge number of additional faults

Page 26: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

26XJTAG.com © Copyright 2017

2

1

Testability and JTAG

Use JTAG more – JTAG Programming

Why JTAG?

Testability

II

Getting JTAG right from the start – Free Stuff3

1

I

Page 27: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

27XJTAG.com © Copyright 2017

Accelerated Programming

Programming is a pain – it takes time

• It’s a pain in debug • Uploading new firmware each time you fix a bug

• It’s a pain in the factory• Throughput matters• Time on the production line costs money

Plain ‘vanilla’ JTAG is not known for its programming speed, BUT:

Accelerated programming using JTAG is as fast as it gets!

How does this work?

Page 28: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

28XJTAG.com © Copyright 2017

Accelerated Programming

Accelerated programming can mean different things

• The PC may download some code to the JTAG controller to reduce latency/communication between them

• Better solution is to program a device on the board and use that to program the flash

• Embedded s/w program on CPU

• Image for FPGA to configure it as programmer

• Flash image can be loaded via USB/ethernet, or for an FPGA streamed over the JTAG signals

Page 29: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

29XJTAG.com © Copyright 2017

Accelerated Programming

Again – some thought at design stage brings huge benefits later:

• Re-flashing during development becomes quick & easy

• Reduces production line bottlenecks caused by in-system programming

Maybe you have access to flash from an FPGA?

• If not, design in better access to the flash!

Page 30: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

30XJTAG.com © Copyright 2017

Acceleration scenariosUsing Microprocessor or FPGA

Accelerated Programming

Page 31: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

31XJTAG.com © Copyright 2017

3

Testability and JTAG

Use JTAG more – JTAG Programming

Why JTAG?

Testability

2

Getting JTAG right from the start – Free Stuff

1

II

I

Page 32: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

32XJTAG.com © Copyright 2017

JTAG – getting it right

JTAG comes with some conditions

• You have to connect it• Laws of physics still apply

• Signal integrity is important• For test time• For reliability• For programming speed

• There may be pins which need to be accessible• May need access to set the device into JTAG mode

Design and layout of the JTAG signals makes a difference• Getting it wrong can double (or worse) the time taken to test each PCB

Page 33: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

33XJTAG.com © Copyright 2017

Multiple devices connected to form a JTAG Chain

Checking connections

Multiple devices connected to form a JTAG Chain

Page 34: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

34XJTAG.com © Copyright 2017

Multiple devices connected to form a JTAG Chain

Checking termination

Page 35: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

35XJTAG.com © Copyright 2017

Connector and cable design

• Again, layout makes a huge difference

• Avoid routing TDO next to TCK• Both on the PCB and in cabling

• Use multiple Ground connections in the cable• Interleave them if you can

• Don’t forget JTAG mode pins• Route to header or have some way to set them

• Keep track lengths/buffer delays as similar as possible • Particularly for TMS and TCK

www.xjtag.com/about-jtag/design-for-test-guidelines

Page 36: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

36XJTAG.com © Copyright 2017

Reporting in XJTAG DFT Assistant

Page 37: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

37XJTAG.com © Copyright 2017

XJTAG Access Viewer

Page 38: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

Saving time and money

Page 39: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

39XJTAG.com © Copyright 2017

Saving time and money

Thinking about JTAG at the design stage…

• Get the JTAG chain(s) right – use an extension to verify your board design

• Consider signal integrity for JTAG traces

• Consider improving access to flash devices

• Use DFT analysis from your JTAG software to improve testability

Page 40: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

40XJTAG.com © Copyright 2017

Saving time and money

Thinking about JTAG at the design stage…

…brings benefits sooner than you would think:

• Use JTAG to test your prototypes

• Re-use those tests on the production line

• Benefit from the test coverage that JTAG gives you

• Use accelerated JTAG solutions for in-system programming – both for debug and for

production

Page 41: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

41XJTAG.com © Copyright 2017

Saving you time and money

• Altium Extension

• DFT Guidelines

• Signal Integrity article

Use JTAG moreGet JTAG rightfrom the start

Make use of the FREE STUFF!

Page 42: Saving time & money with JTAG - PCB Design Software & Tools | … 2... · 2017-12-11 · For those who last saw JTAG 10 years ago… Ways in which things have moved on… • JTAG

We’re happy to talk moreCome and visit our table-top stand!