36
Slide 1 of 36 IEEE 1149.1 JTAG Boundary Scan Standard Shaahin Hessabi Department of Computer Engineering Sharif University of Technology Adapted, with modifications, from lecture notes prepared by the book authors

IEEE 1149.1 JTAG Boundary Scan Standard

  • Upload
    others

  • View
    16

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 1 of 36

IEEE 1149.1 JTAGBoundary Scan Standard

Shaahin Hessabi

Department of Computer Engineering

Sharif University of Technology

Adapted, with modifications, from lecture notes prepared by the book authors

Page 2: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 2 of 36Sharif University of Technology Lecture 28: Boundary Scan

Outline

Bed-of-nails tester Motivation for boundary scan standard System view of boundary scan hardware Elementary scan cell Test Access Port (TAP) controller Boundary scan instructions Summary

Page 3: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 3 of 36Sharif University of Technology Lecture 28: Boundary Scan

Bed-of-Nails Tester Concept

Page 4: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 4 of 36Sharif University of Technology Lecture 28: Boundary Scan

Bed-of-Nails Tester

Page 5: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 5 of 36Sharif University of Technology Lecture 28: Boundary Scan

Motivation for Standard Bed-of-nails printed circuit board tester gone

We put components on both sides of PCB & replaced DIPs with flat packs to reduce inductance

Nails would hit components

Reduced spacing between PCB wires

Nails would short the wires

PCB Tester must be replaced with built-in test delivery system -- JTAG does that

Need standard System Test Port and Bus

Integrate components from different vendors

One chip has test hardware for other chips

Test bus identical for various components

Page 6: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 6 of 36Sharif University of Technology Lecture 28: Boundary Scan

Purpose of Standard Lets test instructions and test data be serially fed

into a CUT

Allows reading out test results

Allows RUNBIST command as an instruction

Too many shifts to shift in external tests

JTAG can operate at chip, PCB, & system levels

Allows control of tri-state signals during testing

Lets other chips collect responses from CUT

Lets system interconnect be tested separately from components

Lets components be tested separately from wires

Page 7: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 7 of 36Sharif University of Technology Lecture 28: Boundary Scan

System Test Logic

Page 8: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 8 of 36Sharif University of Technology Lecture 28: Boundary Scan

Instruction Register Loading with JTAG

Page 9: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 9 of 36Sharif University of Technology Lecture 28: Boundary Scan

System View of Interconnect

Page 10: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 10 of 36Sharif University of Technology Lecture 28: Boundary Scan

Boundary Scan Chain View

Page 11: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 11 of 36

Elementary Boundary Scan Cell

2. Scan mode: Shift DR = 1First scan FF is driven by TDI, Last scan FF drives TDO

3. Capture mode: Shift DR = 04. Update mode: Mode-control = 1

Sharif University of Technology Lecture 28: Boundary Scan

1. Normal mode: Mode-control = 0

Page 12: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 12 of 36Sharif University of Technology Lecture 28: Boundary Scan

Serial Board / MCM Scan

Page 13: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 13 of 36Sharif University of Technology Lecture 28: Boundary Scan

Parallel Board / MCM Scan

Page 14: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 14 of 36Sharif University of Technology Lecture 28: Boundary Scan

Independent Path Board / MCM Scan

Page 15: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 15 of 36Sharif University of Technology Lecture 28: Boundary Scan

Tap Controller Signals Test Access Port (TAP) includes these signals:

Test Clock Input (TCK) -- Clock for test logic

Can run at different rate from system clock

Test Mode Select (TMS) -- Switches system from functional to test mode

Test Data Input (TDI) -- Accepts serial test data and instructions -- used to shift in vectors or one of many test instructions

Test Data Output (TDO) -- Serially shifts out test results captured in boundary scan chain (or device ID or other internal registers)

Test Reset (TRST) -- Optional asynchronous TAP controller reset

Page 16: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 16 of 36Sharif University of Technology Lecture 28: Boundary Scan

Tap Controller State Diagram

Page 17: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 17 of 36

States of TAP Controller Test-Logic-Reset: normal mode Run-Test/Idle: wait for internal test such as BIST Select-DR-Scan: initiate a data-scan sequence Capture-DR: load test data in parallel Shift-DR: load test data in series Exit1-DR: finish phase-1 shifting of data Pause-DR: temporarily hold the scan operation (e.g., allow the

bus master to reload data) Exit2-DR: finish phase-2 shifting of data Update-DR: parallel load from associated shift registersNote: Controls for IR are similar to those for DR.

Sharif University of Technology Lecture 28: Boundary Scan

Page 18: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 18 of 36Sharif University of Technology Lecture 28: Boundary Scan

Tap Controller Timing

Page 19: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 19 of 36Sharif University of Technology Lecture 28: Boundary Scan

TAP Controller Power-Up Reset Logic

Page 20: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 20 of 36

Boundary Scan Instructions

Page 21: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 21 of 36

Major Modes of Operation Non-invasive mode: standard provides resources guaranteed to

be independent of system logic These resources enable asynchronous communication with the outside

world (serially read in test data and instructions or serially read out test results)

Activities are invisible to the normal IC behavior

Pin-permission modes: takes control of the IC I/O pins, thus disconnecting the system logic from the outside world. Allow testing of the system interconnect separately from component

testing, and also allow testing of components separately from system interconnect testing.

The testing activities totally disrupt the normal IC behavior.

Sharif University of Technology Lecture 28: Boundary Scan

Page 22: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 22 of 36Sharif University of Technology Lecture 28: Boundary Scan

SAMPLE / PRELOAD Instruction-- SAMPLEPurpose:1. Get snapshot of normal chip output signals2. Put data on boundary scan chain before next instruction

Page 23: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 23 of 36Sharif University of Technology Lecture 28: Boundary Scan

SAMPLE / PRELOAD Instruction -- PRELOAD

Page 24: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 24 of 36Sharif University of Technology Lecture 28: Boundary Scan

EXTEST Instruction Purpose: Test off-chip circuits and board-level interconnections

Page 25: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 25 of 36

Execution of EXTEST Instruction

Phase 1:Shift-DR (Chip1)

Sharif University of Technology Lecture 28: Boundary Scan

Phase 2:

Update-DR (Chip1)Capture-DR (Chip2)

Phase 3:

Shift-DR (Chip2)

Page 26: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 26 of 36

Execution of INTEST Instruction

Phase 1: Shift-DR

Sharif University of Technology Lecture 28: Boundary Scan

Phase 2: Update-DR

Purpose:

1. Shifts external test patterns onto component

2. External tester shifts component responses out

Page 27: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 27 of 36

Execution of INTEST Instruction (cont’d)

Phase 3: Capture-DR

Sharif University of Technology Lecture 28: Boundary Scan

Phase 4: Shift-DR

Page 28: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 28 of 36Sharif University of Technology Lecture 28: Boundary Scan

RUNBIST Instruction Purpose: Allows you to issue BIST command to

component through JTAG hardware

Optional instruction

Lets test logic control state of output pins

1. Can be determined by pin boundary scan cell

2. Can be forced into high impedance state

BIST result (success or failure) can be left in boundary scan cell or internal cell

Shift out through boundary scan chain

May leave chip pins in an indeterminate state (reset required before normal operation resumes)

Page 29: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 29 of 36Sharif University of Technology Lecture 28: Boundary Scan

CLAMP Instruction

Purpose: Forces component output signals to be driven by boundary-scan register

Bypasses the boundary scan chain by using the one-bit Bypass Register

Optional instruction

May have to add RESET hardware to control on-chip logic so that it does not get damaged (by shorting 0’s and 1’s onto an internal bus, etc.)

Page 30: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 30 of 36Sharif University of Technology Lecture 28: Boundary Scan

IDCODE Instruction

Purpose: Connects the component device identification register serially between TDI and TDO In the Shift-DR TAP controller state

Allows board-level test controller or external tester to read out component ID

Required whenever a JEDEC identification register is included in the design

Page 31: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 31 of 36Sharif University of Technology Lecture 28: Boundary Scan

Device ID Register --JEDEC Code

27 12Part

Number(16 bits)

11 1Manufacturer

Identity(11 bits)

0‘1’

(1 bit)

31 28 Version(4 bits)

MSB LSB

Page 32: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 32 of 36Sharif University of Technology Lecture 28: Boundary Scan

USERCODE Instruction

Purpose: Intended for user-programmable components (FPGA’s, EEPROMs, etc.) Allows external tester to determine user programming of component

Selects the device identification register as serially connected between TDI and TDO

User-programmable ID code loaded into device identification register On rising TCK edge

Required when Device ID register included on user-programmable component

Page 33: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 33 of 36Sharif University of Technology Lecture 28: Boundary Scan

HIGHZ Instruction Purpose: Puts all component output pin signals into high-

impedance state

Control chip logic to avoid damage in this mode

May have to reset component after HIGHZ runs

Optional instruction

Page 34: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 34 of 36Sharif University of Technology Lecture 28: Boundary Scan

BYPASS Instruction Purpose: Bypasses scan chain with 1-bit register

Page 35: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 35 of 36Sharif University of Technology Lecture 28: Boundary Scan

Optional / Required Instructions

InstructionBYPASSCLAMPEXTESTHIGHZ

IDCODEINTEST

RUNBISTSAMPLE / PRELOAD

USERCODE

StatusMandatoryOptional

MandatoryOptionalOptionalOptionalOptional

MandatoryOptional

Page 36: IEEE 1149.1 JTAG Boundary Scan Standard

Slide 36 of 36Sharif University of Technology Lecture 28: Boundary Scan

Summary Boundary Scan Standard has become absolutely

essential; No longer possible to test printed circuit boards with

bed-of-nails tester

Not possible to test multi-chip modules at all without it

Supports BIST, external testing with ATE, and boundary scan chain reconfiguration as BIST pattern generator and response compacter

Now getting widespread usage

Use scanedu for practicing with JTAG concepts