Blog
Latest
Your Development Board Can Do More Than You Think
Accelerating product development, protecting your investment and getting a head start on testing your own hardware.
Development and evaluation kits from leading semiconductor companies such as AMD and Altera have become an important part of modern product development.
Rather than waiting for their own custom hardware to arrive, engineering teams can start evaluating devices, developing firmware, experimenting with interfaces and proving application concepts using an established hardware platform.
But there is another opportunity that is perhaps less widely appreciated.
Why not use the development board to start developing your test strategy too?
Get a Head Start on Product Development
One of the biggest advantages of using a development board is that several engineering activities can progress in parallel.
While the hardware team is designing the custom PCB, other members of the development team can:
Evaluate semiconductor devices and their capabilities
Develop and debug firmware
Experiment with peripheral devices
Evaluate system performance
Learn from established reference designs
Develop programming and test procedures
This can significantly reduce the amount of work that needs to be completed after the first custom PCBs arrive.
And the benefits need not stop at firmware development.
Development Boards Can Have a Hard Life
Some of today's FPGA and SoC development platforms cost thousands of pounds, yet they can spend much of their working lives in relatively demanding environments.
Expansion cards are repeatedly fitted and removed, external hardware is connected, power is cycled frequently and experimental configurations are tried.
Accidental electrical overstress, connector damage and other hardware problems are all possibilities.
Development boards can also have relatively short warranty periods compared with their expected useful life.
Even with excellent manufacturer support, being able to independently establish whether your development hardware is still functioning correctly can be extremely valuable.
When a board stops behaving as expected, how much time could you spend investigating your firmware before discovering that the problem is actually with the hardware?
Look at How Much of the Board Can Be Tested
The image at the top of this article illustrates something that often surprises engineers who are unfamiliar with Boundary Scan.
Although many of the highlighted components do not themselves support JTAG, they can still be accessed for testing through the Boundary Scan logic within the FPGA or SoC.
Using XJTAG, this can include testing connections to and exercising aspects of the functionality of:
DDR and other memory devices
SPI Flash and EEPROM
Ethernet PHYs and CAN transceivers
I²C peripherals and power-management devices
SD/MMC interfaces
LEDs, switches and pushbuttons
Clocking devices and oscillators
Importantly, the coverage can extend to many of the smaller components that form part of these circuits too.
For example, a test that successfully communicates with a peripheral may also provide indirect evidence that associated series resistors, pull resistors, buffers and voltage translators are performing their intended functions.
Not every component needs a dedicated test to contribute to the overall test coverage.
There is, however, an important distinction between this implied coverage and directly verifying a component's functionality or electrical characteristics.
Testing Without Application Firmware
XJTAG uses IEEE 1149.1 and, where supported, IEEE 1149.6 Boundary Scan technology to access and test PCB interconnections.
This allows engineers to identify faults such as opens, shorts and stuck-at conditions, including on connections beneath BGA devices that may be physically inaccessible.
It can also provide access to surrounding non-JTAG circuitry without requiring application firmware or dedicated physical test fixtures.
That gives engineers an independent means of checking accessible areas of their development hardware when an application is not behaving as expected.
Faster Programming Means Faster Development
Another consideration is how often engineers need to reprogram their development hardware.
During firmware development, the cycle of modifying code, programming the hardware and checking the results may be repeated many times a day.
Reducing programming time can therefore make a meaningful difference to engineering productivity.
XJTAG's XJFlash technology uses FPGA-assisted programming to achieve speeds typically limited by the capabilities of the flash memory itself.
The same programming techniques can subsequently be incorporated into custom hardware development and production programming.
Take Your Tests with You
Perhaps one of the greatest opportunities is what happens when you move from the development board to your own PCB.
If your custom design uses similar memories, peripherals, power-management devices or communication interfaces, much of the test development work may already have been done.
XJTAG's device-centric approach allows existing device tests to be reused or adapted to the new design.
This means that, before your first custom PCB has even been manufactured, you could already have developed a significant proportion of the tests needed to begin verifying it.
You started your firmware development before your PCB arrived. Why not start your test development too?
Closing Thought
Development boards are purchased primarily to accelerate product development.
But with the right tools, they can also help engineers establish hardware confidence, develop reusable tests, accelerate programming and prepare for the bring-up of their own custom designs.
The development board then becomes more than a platform for evaluating semiconductor technology.
It becomes a starting point for your product's test strategy.
Board Design Tip of the Week
If you are using a semiconductor manufacturer's development board as the basis for a new product, don't just study its functional design.
Look at how its JTAG interface has been implemented, how its peripherals can be accessed independently of application firmware, and which elements of its test strategy could be transferred to your own hardware.
Developing that understanding before completing your schematic could significantly improve the testability of your finished product.
Is XJTAG Supporting Your Development Board?
We are expanding the range of development and evaluation platforms for which XJTAG provides pre-prepared test and programming projects.
These include:
AMD Spartan™ UltraScale+™ FPGA SCU35 Evaluation Kit
AMD Versal™ AI Edge Series Gen 2 VEK385 Evaluation Kit
AMD Versal™ AI Core Series VCK190 Evaluation Kit
Explore the individual board test coverage, flash programming performance and available XJTAG projects.
Discover which development and evaluation boards XJTAG supports.
If your development board isn't currently listed, you can also use this page to request support for your platform.
When JTAG Has Further to Travel: Designing for Larger Boards and Longer Chains
Last week, we looked at the basics of JTAG termination. On a relatively small PCB with short signal runs, that may be all you need. But larger boards introduce another challenge.
TCK and TMS may have to travel much further across the PCB. They may need to reach devices in several different areas, pass through buffers or feed multiple sections of the design.
At that point, the question becomes:
How do you preserve reliable JTAG access when the board starts getting bigger?
The answer is partly about good signal integrity. But just as importantly, it is about designing in options before you know whether you will need them.
Long Traces Change the Problem
On a compact board, a single TCK or TMS trace may pass a handful of devices without causing any difficulty.
On a physically larger design, simply branching the same signal around the PCB can create long stubs and reflections.
That can turn an otherwise simple JTAG interface into something considerably harder to diagnose.
Getting termination right matters for two reasons.
Reliability: reflections and ringing can stop JTAG working reliably, or lower the maximum TCK frequency the chain can support.
Device safety: poorly terminated signals can overshoot or undershoot significantly, potentially exceeding a pin’s absolute maximum ratings and stressing or damaging the device over time.
A useful rule is:
If splitting TCK or TMS would create significant stubs, use buffers rather than simply branching the trace.
The buffer inputs can be connected together, with each buffer output driving its own section of the board.
That turns one difficult distribution network into several much simpler point-to-point, or lightly loaded, traces.
Treat a Buffer Input Like a JTAG Device Input
Adding buffers doesn't change the basic signal-integrity principles.
The input to the buffer should effectively be treated in the same way as the input to a JTAG device.
That means:
Keep the stub to the buffer input short
Avoid unnecessary branches
If the buffer is the last load on the trace, terminate at the buffer input
Treat each buffer output as a new signal path requiring the same consideration
This principle works whether you use a star arrangement of buffers across a large board or place several buffers close to the JTAG connector, each feeding a separate area of the PCB.
Every new branch should become a controlled trace, not another long stub.
Terminate Every Branch at Its End
If TCK or TMS is split into several buffered paths, each path needs to be considered independently.
Last week, only TCK had RC termination. As the clock, it is edge-sensitive, so reflections or coupled noise that create an extra edge can upset the whole chain.
TMS is distributed to every device in the same way as TCK, so on a larger board, long or branched TMS runs can need the same treatment, for the same reliability and device-safety reasons. The usual pull-up still applies.
The RC termination should be located at the end of each trace, regardless of whether that trace finishes at:
A JTAG device
A buffer input
Several device inputs
A combination of these
The important thing is to terminate the trace at its electrical end.
In most cases, the RC termination at the end of the trace is all you need.
But some buffers drive very fast edges, and these can still cause ringing and overshoot on a long trace.
A small series resistor close to the buffer output can help, by slowing the edges slightly and damping reflections at the source.
Whether it's needed can be worked out through detailed simulation, but that takes time. It's often simpler to include the footprint to be on the safe side and fit it with 0 Ω initially.
That 0 Ω footprint is useful because it gives engineers somewhere to make changes during bring-up if the real board behaves differently from the simulation or expectation.
TDO needs a different approach.
It isn't RC terminated, but on a large board the TDO-to-TDI connections between devices, and the TDO return to the connector, can be long too.
A footprint for a small series resistor - typically around 22 Ω - close to each TDO output gives you a way to control the edges on those runs if they need it.
What About TCK Skew?
On a large board, TCK will not necessarily reach every device at exactly the same time.
Fortunately, JTAG has been designed to tolerate skew between devices in the chain.
In practice, increasing skew may eventually mean that TCK has to run at a lower frequency to maintain reliable operation.
If this is a concern, there is another useful design consideration.
Where practical, arrange the devices in the scan chain so that TDI enters the device with the least TCK delay, and then progresses through devices in approximately increasing order of TCK delay before TDO returns to the controller.
That way, any TCK delay between neighbouring devices adds to the timing margin rather than eating into it.
With XJTAG hardware, XJLink's Autoskew capability can compensate for delays between TCK and TDO, helping maintain reliable communication without unnecessarily reducing the JTAG clock frequency.
And because Autoskew can be applied independently to different TAPs during optimised scans, splitting a very large board into several JTAG chains can provide another useful option.
One Chain Isn't Always the Best Answer
There is sometimes a tendency to put every JTAG-capable device into one enormous chain.
That can work perfectly well.
But on a large board, several separate chains may provide advantages.
Different chains can serve physically separate regions of the PCB.
They can reduce the distance signals need to travel.
They can simplify buffering and termination.
And they can prevent one problematic section of the design from affecting access to everything else.
There is no universal answer.
The important thing is to consider the physical board architecture as well as the logical JTAG chain.
Build Flexibility into Revision One
The first revision is where flexibility matters most.
Before the board exists, you don't yet know exactly how those long traces, device inputs, buffers and connectors will behave together on real hardware.
Simulation and good design practice will take you a long way.
But providing a few low-cost adjustment points gives engineers options if reality turns out to be slightly different.
Useful provisions can include:
0 Ω series resistor positions
Unfitted termination resistor and capacitor footprints
Series resistor footprints on TDO outputs
Test points between sections of a scan chain
Links that allow sections of a chain to be isolated or bypassed
Optional buffer positions where long routes or additional branches may eventually be required
Individually, these are tiny design decisions.
Collectively, they can turn a difficult JTAG signal-integrity problem into something that can be resolved on the bench rather than through another PCB revision.
Closing Thought
As boards become larger, JTAG design becomes less about simply connecting TCK, TMS, TDI and TDO and more about how those signals are distributed across the PCB.
The underlying rules remain straightforward:
Keep stubs short.
Buffer where you need to split signals.
Terminate each branch at its end.
And design in adjustment points before you know you need them.
The goal isn't to make the first design unnecessarily complicated.
It is to make sure that if a problem appears, you still have options.
For more on buffering, fan-out and termination, see the XJTAG Design & Test Guidelines.
Board Design Tip of the Week
Label every unfitted JTAG footprint on the schematic with its purpose.
For example: "TCK RC termination - fit if ringing is seen at U12".
Whoever brings up the board may not be the person who designed it. A short note tells them what each footprint is for and when to use it.
A footprint nobody understands is a footprint nobody will use.
Discover more about your board design with the XJTAG Layout Viewer.
To get started find out how the XJTAG Layout Viewer can help you see on your board:
Download your XJTAG Layout Viewer today, did I mention it's Free!
Testing Times
View all ›
Your Device Has JTAG. But Can You Actually Use It?
Many engineers select an FPGA, processor or SoC and see JTAG support listed in the device specification.
That sounds reassuring.
The capability is there.
But there is an important catch:
If the PCB design doesn't provide practical access to that JTAG interface, much of the value has already been lost before the first board is built.
And that can mean giving up access to one of the most useful diagnostic capabilities already built into the silicon.
JTAG Is Easy to Overlook During Design
When a new PCB is being developed, there is a lot competing for attention. DDR, PCIe, Ethernet, Clocks, Power, High-speed interfaces and Peripherals. Compared with those, JTAG can look relatively unimportant.
It may be seen simply as something required to program an FPGA or connect a processor debugger. And if programming is going to happen through another mechanism, it can be tempting to think:
“We don't really need JTAG on the finished board.”
That decision may remove considerably more capability than expected.
JTAG Is More Than a Programming Interface
Programming and processor debug are probably the most familiar uses of JTAG.
But, as we've explored throughout Testing Times, many modern semiconductor devices also contain Boundary Scan logic. That can give engineers access to the signals around the device independently of the application software.
With the right board design, that access may help verify PCB connectivity, investigate memories and peripherals, exercise control signals and establish confidence in hardware before the application is even running.
The semiconductor manufacturer has already provided much of this capability inside the device. The PCB designer decides whether it remains accessible.
The Capability Is Already There
This is an important point.
Adding JTAG access doesn't mean adding an entirely new test technology to the design.
For many devices, the hardware is already in the silicon.
The design task is largely about making sensible provision for using it.
That might mean routing the JTAG signals to a connector, test pads or another accessible interface.
On a more complex board, it may mean considering how several devices should be arranged into one or more JTAG chains.
The incremental design effort can be small.
The potential value later can be considerable.
Think Beyond the First Prototype
The obvious time to value JTAG access is during bring-up.
If the processor doesn't boot or the FPGA application isn't ready, JTAG and Boundary Scan may provide another route into the hardware. But its usefulness doesn't necessarily stop once the prototype works.
The same access can potentially support:
Programming and configuration
Development and debug
Structural testing
Manufacturing test
Failure analysis
Repair and rework
Long-term product support
A connector that seems unnecessary during schematic capture may become extremely useful several years later when someone has to diagnose a board that no longer behaves as expected.
Don't Just Put the JTAG Pins on the Schematic
Providing JTAG access requires a little more thought than simply connecting TCK, TMS, TDI and TDO.
During design, it is worth asking:
Where will the interface actually be accessed?
Are all the devices you may want to reach included in a usable chain?
What happens if one device is unpowered or not fitted?
Are suitable pull resistors and termination options provided?
Can relevant mode or configuration pins be placed into the required state?
Would several JTAG chains provide better flexibility on a complex system?
Will JTAG still be accessible on the production board?
These are relatively easy questions to answer before layout. They become much harder to solve once assembled PCBs are sitting on the bench.
What Happens If You Don't Route It Out?
Perhaps nothing.
The board may work perfectly.
The firmware may work first time.
Production may run smoothly.
But if something does go wrong, one useful source of visibility is no longer available.
A processor that won't boot becomes harder to investigate.
An FPGA board with incomplete firmware may provide fewer diagnostic options.
A production failure may need to be approached entirely through functional testing or physical probing. The problem isn't that the product suddenly cannot be tested. It is that an existing diagnostic option has been designed away.
Closing Thought
Seeing “JTAG supported” in the device datasheet isn't enough.
The semiconductor manufacturer has provided the capability.
The PCB designer decides whether anyone will actually be able to use it.
Routing JTAG access may occupy only a very small part of the schematic.
But it can provide useful visibility throughout the life of the product.
And the easiest time to preserve that capability is before the PCB exists.
Board Design Tip of the Week
If you're providing JTAG access, build in a little flexibility rather than designing only for the configuration you expect to use today.
Consider providing footprints for appropriate JTAG pull resistors and termination components, even if some are initially left unpopulated. Where device configuration or mode pins can affect JTAG operation, consider providing resistor options that allow those states to be changed if necessary.
And if a permanent JTAG connector isn't desirable on the production PCB, consider retaining accessible test pads or another practical connection method.
Those small provisions cost very little at the design stage, but they can give engineers considerably more options during bring-up, test and fault diagnosis later.
Could JTAG boundary scan help you test your next design?
Discover how boundary scan can help you improve test coverage, diagnose faults faster and simplify board testing:
Find out more about JTAG boundary scan and how it can help you.
Discover more about your board design with the XJTAG Layout Viewer.
To get started find out how the XJTAG Layout Viewer can help you see on your board:
Download your free XJTAG Layout Viewer today
Can You Test a Board Before the Firmware Exists?
We were recently asked a very practical question:
“Can you test our board using Boundary Scan? The firmware isn’t available yet.”
The answer is yes, and this is exactly the kind of situation where Boundary Scan can provide real value.
When the first assembled PCBs arrive, hardware engineers want to start establishing confidence in them immediately. Waiting for firmware before meaningful hardware testing can begin creates an unnecessary dependency between two development activities that are often progressing in parallel.
The Hardware Often Arrives Before the Firmware
This is a familiar situation on many development projects.
The first assembled PCBs arrive.
The hardware team wants to begin bring-up.
But perhaps:
The processor firmware is still under development
The FPGA image is not yet available
Device drivers have not been written
The operating system is not running
None of this necessarily indicates a problem with the project.
Hardware and software development simply progress at different rates.
The important question is whether hardware testing has to wait.
Boundary Scan Doesn't Depend on Your Application
One of the key advantages of Boundary Scan is that the test capability is built into the semiconductor devices themselves.
It operates independently of the application software or FPGA design.
So the processor does not need to have booted and the FPGA does not need to be configured with the product design before useful structural testing can begin.
Boundary Scan can instead be used to gain access to PCB signals through the dedicated test logic already present in suitable devices.
That access can help engineers verify things such as:
PCB interconnections
Address, data and control buses
Connections to memories
Connections to peripherals
Resets, enables and other control signals
Accessible interfaces and discrete circuitry
The emphasis is primarily on establishing confidence in the connections between the devices and the PCB.
Those connections can also be used to exercise part of a non-JTAG device's functionality, providing additional evidence that the surrounding circuitry is behaving correctly.
Why That Matters During Bring-Up
Suppose the firmware eventually arrives and a memory interface doesn't work.
There are now several possibilities.
Is there a firmware problem?
Is the memory being initialised incorrectly?
Is the FPGA or processor configuration wrong?
Or is there a physical problem with one of the PCB connections?
If structural tests have already established confidence in the relevant hardware, one major area of uncertainty has already been reduced.
Instead of the hardware and firmware teams having to work out whose area contains the problem, they have independent evidence to help narrow the investigation.
That can make bring-up considerably more systematic.
Hardware and Firmware Can Progress in Parallel
This is perhaps the broader benefit.
Boundary Scan can help decouple initial hardware validation from firmware availability.
While the software team continues developing the application, the hardware team can begin verifying accessible areas of the PCB.
Then, when the firmware is ready, it starts from a stronger position.
Some of the underlying hardware has already been independently checked.
That does not remove the need for functional testing.
It means functional testing begins with greater confidence in the hardware underneath it.
It Helps the Firmware Team Too
Firmware engineers are often among the first people to expose hardware problems because their software begins exercising interfaces that may never previously have been used.
If a peripheral fails to respond, they can spend considerable time investigating code before discovering that the cause is actually a PCB connectivity problem, an incorrectly fitted component or another hardware issue.
Providing the firmware team with boards that have already passed useful structural tests gives them a much better starting point.
They can concentrate on developing and debugging the software without automatically becoming the first stage of hardware diagnosis.
Start Building Confidence Earlier
Functional testing usually needs enough of the system to be operational for the application to run.
Boundary Scan works differently.
It uses dedicated test logic within the semiconductor devices to provide access to the PCB independently of the application.
That means useful hardware testing can begin much earlier in the development process.
And when hardware and software teams are both working towards the same deadline, removing unnecessary dependencies between them can be extremely valuable.
Closing Thought
The question we were asked was:
“Can you test the board even though the firmware isn't ready?”
Yes.
But perhaps the more useful question is:
“Why wait for firmware before starting to build confidence in the hardware?”
Hardware and firmware development often happen in parallel.
The test strategy can too.
Boundary Scan provides a way to start checking the PCB earlier, establish confidence in accessible areas of the hardware and reduce uncertainty before the application ever runs.
Board Design Tip of the Week
When planning a new design, ask what you could verify if no application software were available at all.
Can important resets and enables be controlled?
Can key interfaces and memory connections be accessed?
Can critical signals be driven and observed?
Is the JTAG chain readily accessible?
Thinking about those questions during the design stage can give the hardware team useful diagnostic capability from the moment the first assembled PCB arrives — rather than from the moment the firmware does.
Could boundary scan help you test your next design?
Discover how boundary scan can help you improve test coverage, diagnose faults faster and simplify board testing:
Find out how XJTAG can help you.
Discover more about your board design with the Free XJTAG Layout Viewer.
To get started find out how the Free XJTAG Layout Viewer can help you see on your board:
Download your Free XJTAG Layout Viewer today
“It’s Only a Small Board Change…” What Could Possibly Go Wrong?
We recently spoke to an engineer about a new revision of an existing PCB.
The message was:
“It’s only an iterative change.”
The implication was understandable: the design changes are small, so the additional test work should also be small.
And they may be absolutely right.
But it raises an important question:
How do you know?
A small PCB revision does not automatically mean a small test impact.
How Much Test Work Does a Small PCB Revision Really Create?
The answer depends less on how many things changed and more on what those changes affect.
A reset signal may have moved.
A buffer may have been added.
A memory device may have been replaced.
A previously unused FPGA pin may now be connected.
A power rail or enable sequence may have changed.
Each change may be small on the schematic, but if an existing test depends on it, the impact can be much greater.
Every test makes assumptions about the hardware: which devices are fitted, how signals are connected, what can be controlled and observed, and how devices behave during test.
Change one of those assumptions and the existing test may need to change too.
What If the Change Is at the Centre of the Board?
Now consider replacing the FPGA or processor at the heart of the design.
Perhaps the new device performs essentially the same function and most of the surrounding circuitry is unchanged.
It may look like a straightforward substitution.
But that device may interact with a significant proportion of the board and therefore affect many existing tests.
For teams using Boundary Scan, there is another important consideration:
Is the BSDL file correct for the exact device and package now fitted?
Boundary Scan software relies on the BSDL file to describe the device's pins, Boundary Scan cells, instructions and test capability.
So a change that appears on the design change list as:
“FPGA changed from A to B”
could potentially affect considerably more of the existing test strategy than the change list initially suggests.
This is why test effort isn't proportional to the number of changes.
It depends on how central those changes are to the tests already developed.
Regression Testing Isn't Just for Software
Software engineers are familiar with regression testing.
A small code change doesn't mean rewriting the entire application, but it does mean understanding what else could have been affected.
PCB test deserves the same approach.
For every revision, ask:
What changed?
Which existing tests depend on it?
Which assumptions are still valid?
Which tests can remain unchanged?
Which tests need modifying?
Is any additional test coverage required?
The objective isn't to assume everything has changed.
It's to avoid assuming nothing has.
Reuse Should Still Be the Goal
Last week, we looked at the value of reusing tests developed during bring-up through production, repair and support.
A new board revision shouldn't change that principle.
Good reusable tests should make iterative development easier.
The aim is to preserve everything that remains valid and concentrate engineering effort only on the tests affected by the new design.
Reuse the test — but validate the assumptions behind it.
That is far more efficient than designing a complete test strategy again for every PCB revision.
Closing Thought
“It’s only an iterative change” may be completely true.
And the additional test-development work may genuinely be trivial.
But that should be the conclusion of an impact review, not the assumption at the start of one.
When the next PCB revision is released, ask:
What changed?
Which of our existing tests depend on those changes?
Are the assumptions behind those tests still valid?
Then preserve everything that still works.
The objective isn't to design a complete test from scratch. It's to know which tests need changing — and why.
Board Design Tip of the Week
When documenting your next PCB revision, add one more item to the change list:
Test impact.
For each design change, consider whether it affects:
Component functionality or pinout
Signal routing or connectivity
Resets, enables or mode settings
Power rails or sequencing
Interfaces and control signals
Physical test access
Programming or configuration
Existing test assumptions
And if Boundary Scan forms part of your test strategy, also check whether the change affects the BSDL/device model or JTAG architecture.
A short review at this stage can prevent a “small change” from becoming an unexpected test-development problem when the revised boards arrive.
Discover more about your board design with the Free XJTAG Layout Viewer.
To get started find out how the Free XJTAG Layout Viewer can help you see on your board:
Download your Free XJTAG Layout Viewer today
Find out what else you could test on your board.
See at a glance where XJTAG could extend your existing test coverage and uncover faults that are difficult to reach with traditional testing methods.
