· AtlasPCB Engineering · Engineering  · 8 min read

Boundary Scan (JTAG) Testing for PCB Assembly: IEEE 1149.1 Implementation, DFT Guidelines, and Fault Coverage

Learn how boundary scan (JTAG/IEEE 1149.1) testing verifies PCB assembly integrity, detects BGA opens and shorts without physical access, and integrates with flying probe and ICT for maximum fault coverage.

Learn how boundary scan (JTAG/IEEE 1149.1) testing verifies PCB assembly integrity, detects BGA opens and shorts without physical access, and integrates with flying probe and ICT for maximum fault coverage.

The Access Problem in Modern PCB Assembly Testing

As PCBs grow denser with BGA packages, 0201 passives, and fine-pitch QFN components, a fundamental testing challenge emerges: how do you verify that solder joints are good when you cannot physically touch the pins?

Traditional test methods — in-circuit test (ICT) with bed-of-nails fixtures and flying probe systems — require physical access to test points. But modern board designs have:

  • BGA packages with hundreds of connections hidden under the package body
  • Component-on-both-sides assemblies that limit bottom-side access
  • 0.4 mm pitch QFP and CSP packages where probe tips cannot reach individual pins
  • Dense routing that eliminates space for dedicated test pads

This is where boundary scan becomes essential. By leveraging test logic already built into digital ICs, boundary scan can verify every connection between JTAG-capable devices without any physical test probe access.

Boundary scan JTAG chain connecting MCU, FPGA, and memory with TAP controller

How Boundary Scan Works

The IEEE 1149.1 Standard

IEEE 1149.1 (commonly called JTAG, after the Joint Test Action Group that developed it) defines:

  1. Boundary Scan Register (BSR): A shift register cell at every I/O pin of a compliant device
  2. Test Access Port (TAP): A 4-wire (optionally 5-wire) serial interface for controlling the test logic
  3. TAP Controller: A state machine that sequences test operations
  4. Instruction Register: Selects what the BSR does (sample, drive, or bypass)

TAP Interface Signals

SignalDirectionFunction
TCKInputTest clock — synchronizes all boundary scan operations
TMSInputTest mode select — navigates the TAP state machine
TDIInputTest data in — serial input to the scan chain
TDOOutputTest data out — serial output from the scan chain
TRSTInput (optional)Test reset — asynchronous reset of TAP controller

The Scan Chain Concept

In a boundary scan implementation, multiple JTAG-capable devices are connected in a daisy chain:

TDI → [Device 1 BSR] → [Device 2 BSR] → [Device 3 BSR] → TDO

To test the interconnect between Device 1’s output pin and Device 2’s input pin:

  1. Load a known pattern into Device 1’s output boundary cell
  2. Drive that pattern onto the physical PCB trace
  3. Capture the value at Device 2’s input boundary cell
  4. Shift out and compare — if the captured value matches, the connection is good

This process happens simultaneously for all connections in the chain, testing thousands of nets in a single shift operation.

Types of Boundary Scan Tests

Infrastructure Test

The simplest test — verify the JTAG chain itself is intact:

  • Shift a known pattern through all devices in the chain
  • If TDO output matches expected pattern (delayed by total chain length), all devices are connected and functional
  • Detects: broken TDI/TDO chain, dead devices, wrong device orientation

Interconnect Test (Most Valuable for Manufacturing)

Tests every connection between JTAG-capable devices:

  • Opens detection: Drive a logic level on one device’s output, capture on the receiving device’s input. Mismatch = open joint
  • Shorts detection: Drive opposite values on adjacent nets. If both read the same value, they are shorted together
  • Stuck-at faults: Pins that always read high or low regardless of driven value

Cluster Testing (Testing Non-JTAG Components)

Boundary scan can test components that have no JTAG capability by using adjacent JTAG devices as drivers and sensors:

Example — Testing a pull-up resistor:

  1. Device A’s boundary cell drives the shared net LOW
  2. Read back through Device A’s cell: if the net reads HIGH, the pull-up resistor is connected and functioning
  3. If the net stays LOW: either the resistor is missing or the VCC connection is open

Testable non-JTAG components:

  • Pull-up/pull-down resistors
  • LEDs (drive and sense voltage drop)
  • Bus transceivers and buffers
  • Reset ICs and voltage supervisors
  • Discrete transistor switching circuits

In-System Programming (ISP)

Beyond testing, the same JTAG interface enables:

  • FPGA configuration (bitstream loading)
  • CPLD programming
  • Flash memory programming through JTAG-capable controllers
  • Microcontroller firmware loading

This allows programming after assembly, supporting late-stage customization and field updates.

Design for Testability Review

AtlasPCB's DFT review ensures your JTAG chain routing, test point placement, and connector selection maximize boundary scan fault coverage before fabrication.

Request DFT Review →

PCB Design Guidelines for Boundary Scan

Component Selection

When choosing components, prioritize IEEE 1149.1 compliance:

  • Processors and MCUs: Nearly all ARM, x86, and RISC-V processors include JTAG
  • FPGAs and CPLDs: All major vendors (Xilinx/AMD, Intel/Altera, Lattice, Microchip) support 1149.1
  • Memory controllers: DDR4/5 PHY typically has boundary scan for address/data validation
  • Ethernet PHYs: Many include JTAG for manufacturing test
  • Non-compliant: Discrete analog ICs, passive components, power regulators, oscillators

Target: ≥80% of net connections should be between JTAG-capable device pins for effective boundary scan coverage.

JTAG Header Design

Standard connector options:

ConnectorPinsStandardUse Case
ARM 10-pin10ARM Cortex DebugSingle MCU boards
ARM 20-pin20ARM Standard JTAGMulti-device, with reset and SWD
IEEE 1149.72Compact JTAGSpace-constrained designs
Mictor 3838High-speed traceProcessor debug with trace

Placement rules:

  • Locate JTAG header at board edge for cable access during production test
  • Include all standard signals: TCK, TMS, TDI, TDO, TRST, GND, VCC
  • Add a key pin (pin removed) for connector orientation
  • Provide ESD protection diodes if the header will be used in field service

Daisy Chain Routing

The TDI-to-TDO chain order should follow physical proximity:

JTAG Header → Processor (closest) → FPGA → Memory Controller → PHY → TDO back to header

Routing rules:

  • TCK and TMS are shared buses — route as short stubs from a common trunk
  • TCK requires controlled impedance if chain length > 20 cm or clock > 20 MHz
  • Add series termination resistors (33Ω) on TCK and TMS near the driving source
  • Pull TDI HIGH and TMS HIGH with 10kΩ resistors for safe startup state
  • Provide individual pull-ups on each device’s TRST if used

Test Point Strategy

For maximum fault coverage, combine boundary scan with selective physical access:

  1. Power rail test points: At least one test point per voltage rail for power-up verification
  2. Non-JTAG net access: Provide test pads for signals that only connect between non-JTAG devices
  3. Analog signals: Boundary scan cannot test analog — these need probe access
  4. Clock outputs: Add test points on critical clocks for frequency verification

Test point specifications:

  • Minimum pad size: 0.9 mm diameter (for flying probe)
  • Minimum pitch: 2.0 mm center-to-center (for fixture probes)
  • Grid alignment: 2.54 mm (100 mil) grid preferred for bed-of-nails

Fault Coverage Analysis

Coverage Calculation

Boundary scan fault coverage = (Testable connections / Total connections) × 100%

Typical coverage levels:

Board CategoryJTAG Device %Structural CoverageNotes
FPGA-heavy (server)>90%92-98%Excellent, most nets between JTAG devices
Processor board60-80%75-85%Good, add test points for analog/power
Mixed analog-digital30-50%40-55%Supplement with ICT/flying probe
Analog-dominant<20%<25%Boundary scan alone insufficient

Combined Test Strategy

The industry best practice is a layered test approach:

  1. Boundary scan (seconds): Verify all BGA/CSP interconnects, program devices
  2. ICT or flying probe (seconds to minutes): Test passive values, analog circuits, power
  3. Functional test (variable): System-level verification, boot test, communication checks

This combination achieves >99% fault coverage while keeping test time under 2 minutes for most assemblies.

Economic Justification

Cost of Not Testing

For a board with 2,000 solder joints:

  • Industry average solder defect rate: 20-50 DPMO (defects per million opportunities)
  • Expected defects per board: 0.04-0.1
  • Without testing: 4-10% of boards ship with latent defects
  • Field failure cost: 10-100× the cost of factory detection

Boundary Scan ROI

  • Equipment cost: Software license ($5,000-$50,000/year) + JTAG controller hardware ($2,000-$15,000)
  • Per-board test cost: $0.02-$0.10 (electricity + depreciation)
  • Test time: 2-10 seconds per board
  • Break-even: Typically 500-2,000 boards depending on assembly complexity

Compare with:

  • ICT fixture: $10,000-$50,000 per board design + $0.05/board test cost
  • Flying probe: No fixture, but $0.50-$2.00/board and 1-5 minutes per board

Advanced Boundary Scan Standards

IEEE 1149.6 (AC-Coupled Boundary Scan)

Standard 1149.1 cannot test AC-coupled connections (capacitor in series on differential links like PCIe, USB). IEEE 1149.6 extends boundary scan to test differential pairs with coupling capacitors by using edge-sensitive test logic.

IEEE 1149.7 (Compact JTAG)

Reduces the TAP interface from 4/5 wires to 2 wires (TMSC and TCKC), enabling:

  • Fewer pins dedicated to test on space-constrained packages
  • Star topology (not just daisy chain) for faster access to individual devices
  • Zero-bit bypass for reduced scan chain length

IEEE 1500 (Embedded Core Test)

Extends the boundary scan concept inside SoCs, wrapping IP cores with test wrappers for internal interconnect testing between embedded modules.

Common Pitfalls and Solutions

Pitfall 1: Missing Pull-Resistors

Without proper pull-ups on TMS and TDI, the JTAG chain can be in an undefined state at power-up, potentially causing device lock-up or bus contention.

Solution: 10kΩ pull-up on TMS and TDI to VCC, pull-down on TCK if required by any device in the chain.

Pitfall 2: Clock Integrity on Long Chains

TCK distributed as a star from the JTAG connector can have significant skew between devices if trace lengths vary widely.

Solution: Match TCK trace lengths to within 10% of the longest trace, or use a clock buffer for chains longer than 30 cm total.

Pitfall 3: Mixed Voltage Chains

When devices in the chain operate at different I/O voltages (1.8V, 2.5V, 3.3V), TDI/TDO level translation is needed.

Solution: Use voltage-tolerant I/O or add level translators between voltage domains in the chain. Group same-voltage devices together to minimize translations.

Pitfall 4: JTAG Used Only for Debug, Not Test

Many designs include a JTAG header for debug during development but don’t optimize the chain for manufacturing test coverage.

Solution: At schematic stage, plan the JTAG chain order and identify cluster-testable non-JTAG components. Include boundary scan as a requirement in DFT reviews.

Further Reading


Design It Right, Test It Right

AtlasPCB manufactures boards with IPC Class 3 workmanship and supports DFT-optimized designs with tight pad tolerances for BGA escape routing and controlled impedance JTAG signal routing. Whether you need prototypes or production volumes, our engineering review catches testability gaps before fabrication.

Get a Quote → | Our Testing Capabilities →

About AtlasPCB — We specialize in complex PCB manufacturing for HDI, RF, and high-reliability applications. Explore our HDI PCB manufacturing capabilities . Every order includes free engineering review. Get your quote.

Reviewed by AtlasPCB Engineering Team — IPC-certified manufacturing specialists with 15+ years of production experience in HDI, RF, and high-reliability PCB fabrication. Content based on factory floor data and real customer design reviews.

  • boundary scan
  • JTAG
  • IEEE 1149.1
  • PCB testing
  • DFT
  • BGA testing
  • interconnect test
  • flying probe
  • assembly verification
  • fault coverage
Share:

Related Posts

View All Posts »