Development · production

Design for manufacturing and testing (DFM and DFT)

The design largely determines the cost of a product. A board that is easy to manufacture, assemble and test is cheaper in every unit and has less scrap. How to do it, and what to think about in the schematic already.

Reading time 7 minutesBoard, assembly, testing and 6 test methods

Short answer

Design the board with standard technology that any manufacturer can handle, and place components so that a machine can assemble them without manual work. Add test points, a programming connector and, where possible, boundary scan. Before ordering, have the PCB manufacturer and assembly house check the data. All this costs little in design and saves a lot in production.

Why it mattersA change in the schematic or layout is almost free. The same change after prototypes means a new board revision and weeks of delay. In series production, every extra manual step is multiplied by the number of units.

DFM, DFA and DFT

DFMDesign for ManufacturingThe board can be made with standard technology, without unnecessarily expensive requirements and with a minimum of scrap.
DFADesign for AssemblyComponents can be placed and soldered automatically, quickly and reliably.
DFTDesign for TestingEvery unit produced can be tested quickly, and a faulty unit is easy to diagnose.

Together this is sometimes called DFx: designing with manufacturing, assembly, testing, service and cost in mind.

BGA rework station in the workshop
Replacing a BGA chip in our workshop. Good design also accounts for repairs.

1. Board manufacturing (DFM)

Every PCB manufacturer has its technological limits and price list. The closer the design is to standard values, the cheaper and more reliable it is.

  • Standard technology. Choose track widths, clearances, drill sizes and layer count within the usual capabilities of PCB manufacturers. Every requirement “at the limit” raises price and scrap rate.
  • Expensive technology only where needed. Blind and buried vias, microvias or special materials have their place, but they raise the board price considerably. Often they are needed under a single chip only.
  • Symmetrical layer stack-up. A balanced copper distribution across layers limits board warpage during soldering.
  • Consult the manufacturer. Before ordering prototypes, have the PCB manufacturer check the data. They will catch problems that would otherwise only show up on finished boards.

2. Assembly (DFA)

An assembly line is fast until a person has to step in. Assembly quality is assessed according to IPC-A-610.

  • Components on one side. Where possible, populate only one side of the board. You save one pass through the soldering line.
  • Land patterns per standards and vendors. Solder pads (footprints) according to the component manufacturer’s recommendation or IPC-7351. A bad pad means cold joints or “tombstoning” of small parts.
  • Same orientation and spacing. Orient polarised components the same way and leave room between them for automated optical inspection and rework.
  • Marks for the placement machine. Fiducial marks on the board and on the panel, which the machine uses for precise alignment.
  • Panelisation. Small boards are made and assembled in a panel with a process rail. Agree the panel size and depaneling method with the assembly house.
  • Less manual work. Through-hole parts and hand soldering make production more expensive. Where possible, use an SMD variant or group them in one place.
  • Thermal relief. Pads connected to large copper areas need thermal relief, otherwise they will not solder evenly.
  • Shorter bill of materials. Fewer different values and part types mean fewer feeders in the machine, simpler purchasing and a lower price.

3. Testing (DFT)

Every unit produced has to be tested. The goal is a test that takes seconds, not tens of minutes, and that shows immediately where the fault is on a bad unit.

  • Test points. On power rails and important signals, ideally on one side of the board and spaced far enough apart for the fixture’s probes.
  • Programming and debug connector. Firmware has to be loaded into every unit. An easily accessible connector or pads for spring contacts saves time on every unit.
  • Boundary scan (JTAG). Processors, FPGAs and other chips supporting IEEE 1149.1 can test connections even under BGA packages, where a probe cannot reach. The JTAG chain has to be planned in the schematic.
  • Self-test in firmware. The product checks its memory, interfaces and power itself and shows the result on an LED or reports it over a serial line.
  • Separable sections. Jumpers or 0 Ω resistors that let you disconnect power or part of a circuit during diagnosis.
  • Functional test. A procedure and fixture that verify the product does what it should. It is designed alongside the product, not after it.
Measuring probe in a 3D-printed holder on a printed circuit board
A measuring probe in a fixture. We 3D print our own fixtures.

How boards are tested

Methods are combined depending on volume, board complexity and fixture cost. The design should account for the ones that will actually be used in production.

MethodWhat it isWhat for
AOIAutomated optical inspectionA camera checks that components are in place and soldered. A standard part of the line.
X-rayInspection of hidden jointsJoints under BGA and QFN packages that cannot be seen.
Flying probeMoving probesMoving probes test the board without a dedicated fixture. Suitable for prototypes and smaller batches.
ICTIn-circuit testA bed-of-nails fixture tests the whole board at once. Fast for large series, but the fixture costs money.
Boundary scanJTAG, IEEE 1149.1Tests connections through the chips on the board, even where a probe cannot reach.
Functional testFCTThe product is switched on and checked that it does what it should. The final check before shipping.

When to think about it

  1. In the brief: the expected annual volume decides which technology and which tests make sense.
  2. In the schematic: test points, JTAG, programming connector, firmware self-test.
  3. In the board layout: technology, placement, panel, fiducials.
  4. Before ordering prototypes: data check by the PCB manufacturer and assembly house.
  5. On prototypes: verify the test and assembly on real units before series production starts.
What about EMC?Changes for manufacturing can affect electromagnetic compatibility: different placement, a different stack-up, test points on fast signals. Think about both at once. More in Designing hardware to pass EMC.

How we help

  1. We design the board with manufacturing and testing in mind from the first schematic.
  2. We arrange board manufacturing and assembly with proven partners and take responsibility for them.
  3. We prepare production data and test procedures for the transfer to series production. We 3D print our own test fixtures.
  4. We also review boards that were not designed by us and propose what to change for reliable series production.

Getting a board ready for production?

Send us the design data or describe the product. We will review it from a manufacturing and testing point of view and suggest changes. We reply within 24 hours.