Outline Bed-of-nails tester Motivation for boundary scan standard - - PowerPoint PPT Presentation

outline
SMART_READER_LITE
LIVE PREVIEW

Outline Bed-of-nails tester Motivation for boundary scan standard - - PowerPoint PPT Presentation

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 Slide 1 of 36 Outline Bed-of-nails


slide-1
SLIDE 1

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

slide-2
SLIDE 2

Slide 2 of 36 Sharif 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

slide-3
SLIDE 3

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

Bed-of-Nails Tester Concept

slide-4
SLIDE 4

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

Bed-of-Nails Tester

slide-5
SLIDE 5

Slide 5 of 36 Sharif 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

slide-6
SLIDE 6

Slide 6 of 36 Sharif 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

slide-7
SLIDE 7

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

System Test Logic

slide-8
SLIDE 8

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

Instruction Register Loading with JTAG

slide-9
SLIDE 9

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

System View of Interconnect

slide-10
SLIDE 10

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

Boundary Scan Chain View

slide-11
SLIDE 11

Slide 11 of 36

Elementary Boundary Scan Cell

2.

Scan mode: Shift DR = 1

First scan FF is driven by TDI, Last scan FF drives TDO 3.

Capture mode: Shift DR = 0

4.

Update mode: Mode-control = 1

Sharif University of Technology Lecture 28: Boundary Scan

1.

Normal mode: Mode-control = 0

slide-12
SLIDE 12

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

Serial Board / MCM Scan

slide-13
SLIDE 13

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

Parallel Board / MCM Scan

slide-14
SLIDE 14

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

Independent Path Board / MCM Scan

slide-15
SLIDE 15

Slide 15 of 36 Sharif 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

  • f 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

slide-16
SLIDE 16

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

Tap Controller State Diagram

slide-17
SLIDE 17

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 registers

Note: Controls for IR are similar to those for DR.

Sharif University of Technology Lecture 28: Boundary Scan

slide-18
SLIDE 18

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

Tap Controller Timing

slide-19
SLIDE 19

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

TAP Controller Power-Up Reset Logic

slide-20
SLIDE 20

Slide 20 of 36

Boundary Scan Instructions

slide-21
SLIDE 21

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

slide-22
SLIDE 22

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

SAMPLE / PRELOAD Instruction-- SAMPLE

Purpose:

1.

Get snapshot of normal chip output signals

2.

Put data on boundary scan chain before next instruction

slide-23
SLIDE 23

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

SAMPLE / PRELOAD Instruction -- PRELOAD

slide-24
SLIDE 24

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

EXTEST Instruction

 Purpose: Test off-chip circuits and board-level interconnections

slide-25
SLIDE 25

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)

slide-26
SLIDE 26

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
slide-27
SLIDE 27

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

slide-28
SLIDE 28

Slide 28 of 36 Sharif 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)

slide-29
SLIDE 29

Slide 29 of 36 Sharif 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.)

slide-30
SLIDE 30

Slide 30 of 36 Sharif 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

slide-31
SLIDE 31

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

Device ID Register --JEDEC Code

27 12 Part Number (16 bits) 11 1 Manufacturer Identity (11 bits) ‘1’ (1 bit)

31 28 Version (4 bits)

MSB LSB

slide-32
SLIDE 32

Slide 32 of 36 Sharif 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

slide-33
SLIDE 33

Slide 33 of 36 Sharif 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

slide-34
SLIDE 34

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

BYPASS Instruction

 Purpose: Bypasses scan chain with 1-bit register

slide-35
SLIDE 35

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

Optional / Required Instructions

Instruction BYPASS CLAMP EXTEST HIGHZ IDCODE INTEST RUNBIST SAMPLE / PRELOAD USERCODE Status Mandatory Optional Mandatory Optional Optional Optional Optional Mandatory Optional

slide-36
SLIDE 36

Slide 36 of 36 Sharif 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