Testing ddr3 Memory Boundary Scan Jtag
Testing ddr3 Memory Boundary Scan Jtag
EBOOK
BY KENT ZETTERBERG
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
2
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
Table of Contents
Executive Summary ........................................................................................................................ 4
Learn More.................................................................................................................................... 11
Table of Figures
Figure 1: Example board with memory architecture ..................................................................... 8
Figure 2: General architecture of a circuit board with memory................................................... 10
ASSET and ScanWorks are registered trademarks while the ScanWorks logo is a trademark of ASSET InterTech, Inc. All other
trade and service marks are the properties of their respective owners.
3
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
Executive Summary
A recent survey by the International Electronics Manufacturing Initiative (iNEMI) asked test
engineers in the electronics industry what were their biggest problems with testing circuit boards.
Of the 11 possible problems listed, characterizing and testing memory soldered to circuit boards
were among the top three. Memory test was at the top of the list of prevalent problems along
with ‘loss of access to test points’ and ‘the need to perform debug/diagnostics on board failures.’
When asked which type of built-in self-test (BIST) instruments would solve the engineer’s
problem, memory BIST was rated the second most needed, virtually tied with BIST instruments
for validating high-speed I/O buses. Clearly, the ability to thoroughly test, characterize and
diagnose problems with soldered-down memory is one of the most pressing problems in the
industry. Using DDR3 memory as an example, this eBook discusses how boundary-scan test
(BST) and JTAG methods based on the IEEE 1149.1 standard can be used to test and diagnose
soldered-down memory devices. It is assumed that a BST tool is being used to test the DDR3
memory.
Note that circuit board test engineers participated in the iNEMI survey mentioned above. In most
cases, board test engineers assume that the memory devices themselves are not causing a failure
since the memory chips are tested and qualified before they are assembled on a board. As a
result, a memory test failure in many cases will indicate a failure in the connectivity channel
to/from the memory. For some time now, the decreasing level of test point access on circuit
boards has made BST the most effective method for acquiring pin-level diagnostic on structural
faults early in the production flow. BST is able to perform thorough tests on the interconnects
linking memory management units (MMU), field programmable gate arrays (FPGA), processors
and memory devices. Later in the test process, functional test of some sort can be employed to
ensure the quality of the assembly. The remainder of this eBook is limited to explaining the
advantages of BST to test memory early in the production flow.
4
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
During system design and new product introduction (NPI), testing memory in a timely fashion is
particularly critical if the new system is to be delivered promptly to the marketplace. One of the
critical points in the NPI process is the production of prototypes of the circuit board design.
These prototypes must be evaluated for structural faults quickly so that board bring-up and
development feedback can be completed effectively. Structural memory tests will be performed
during the initial phase of board bring-up to identify the root cause(s) of faults, failures or errors
in the design as well as identifying problems in the early production equipment. The intent of
these tests is to correct the problems prior to the design’s release to high-volume production.
When memory structures on early prototypes are found to be functioning properly, functional
software can be executed more easily and the functional system can be debugged sooner. The
best way to quickly transition into functional test is to first identify any structural defects early in
the process. This is where boundary scan excels. Products can then flow through design faster
and move into full production, shortening the product’s time-to-market. Various delays and a
longer-than-expected board bring-up phase could jeopardize revenues.
Once the NPI/board bring-up phase has been completed, the design is ready to transition into
manufacturing. At this point, the nature of memory tests is the same, but the faults found may
differ considerably. By the time design and board bring-up testing have achieved a ‘known good
board,’ manufacturing test engineers assume that any errors in the design’s memory architecture
have already been corrected because the design has been released to production. Consequently,
the memory tests performed during production are intended to determine whether individual
circuit boards are ready to be released to users, not to identify any underlying errors in the
memory architecture itself. Instead, production testing involves determining whether the
5
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
manufacturing and assembly processes have added any defects to the circuit boards. These types
of memory tests with shorter test application times will be essentially go/no-go tests that can be
applied quickly in order to keep pace with a predetermined beat rate on the production line.
When the rate of production has achieved its predetermined beat rate, boards that fail due to
systemic defects must be debugged and diagnosed so that the root cause or source issue in the
manufacturing process can be understood and corrected. This will improve manufacturing yields
and increase the volume of product available to the market. In most cases, a test that uncovered a
fault that affected manufacturing yields is retained as part of the manufacturing test suite so that
this condition can be quickly identified should it occur again.
During post-production phases of the life cycle – that is, when systems have been sold and are
installed in the field – memory tests are performed by repair personnel to troubleshoot
malfunctioning systems and maintain user satisfaction. The two main goals during this phase are:
1) identify any reliability concerns such as memory chips or board structures that are failing
sooner than expected; and 2) identify changes in the board design or component selection that
may make the system better suited for deployment to the market.
Structural test techniques like boundary scan can be quite effective during every phase in a
product’s life cycle for capturing faults as early and as quickly as possible.
For example, a simple board-level interconnect test may be accomplished by writing and reading
the physical equivalent of 5s and then As on the data bus, simultaneous with applying these same
values to select locations representing 5 and A on the physical address lines (true board routes
may not be in “logical” order, but may be physically scrambled). This ensures that all routes are
6
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
7
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
Figure 1 shows that a MMU with a boundary-scan Test Access Port (TAP) can test connected
memory devices for specific faults, such as those defined by the PCOL/SO board test fault
spectrum. (PCOLA/SOQ is a fault spectrum originally defined by Agilent Technologies and now
adopted and supported by iNEMI. For a description, see ASSET Test Data Out blog post, “Ever
heard of PCOLA/SOQ/FAM?”) Figure 1 illustrates a case where shorts or opens have corrupted
the interconnect to the first DRAM device, the next DRAM does not have power, another
DRAM is missing and the last memory device is the wrong type of memory and its orientation is
incorrect (upside down). All of these fault types are included in PCOLA/SOQ fault spectrum
definition. (Note that the “A” and “Q” are inspection items and not covered by boundary-scan
electrical tests.)
The rate and efficiency at which boundary-scan tests can be applied to memory buses are limited
by the clock speed of the boundary-scan resources in the chips on the board and the length of a
particular device’s boundary-scan register. For example, 50 MHz may be the maximum
boundary-scan clock speed of the slowest device on the JTAG scan chain. This limits the speed
of the entire chain to 50 MHz. In Figure 1 above, the capabilities of the MMU would dictate
8
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
these factors. Moreover, multiple scans typically comprise a memory test. When each scan can
only be applied at a slow speed, the time needed to apply an entire memory test made up of
multiple scans is affected. Fortunately, the auto-refresh functions of DDR3 memories, together
with smart test patterns like the Wagner algorithm, effectively address these issues so that
reasonable test times are achieved by applying boundary-scan tests to memory interconnects.
For a BST tool to test DDR3 memory, it must be provided certain information, including the
following:
Figure 2 below shows the general architecture of a circuit board with a bank of DDR3 memory
and the buses that connect it to a boundary-scan device.
9
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
On many board designs the connection between a boundary-scan device and the DDR3 memory
array will also contain non-boundary-scan devices such as series resistors, buffers and other
types of devices. When this is the case, information on these so-called ‘cluster’ devices must be
provided to the boundary-scan test tool. Model-based boundary-scan test tools capture the
needed information on these cluster devices in device models. The more accomplished suppliers
of boundary-scan test tools provide these models to users in a cluster device library. Advanced
tools can then automatically generate memory test sequences and patterns using boundary-scan
actions.
10
eBook: Testing DDR3 Memory with Boundary Scan / JTAG
Non-intrusive memory test methodologies such as BST can effectively replace most of these
legacy intrusive methods. In addition, BST can function as an effective bridge into the non-
intrusive world of test, validation and debug technologies. Today’s highly automated boundary-
scan tools can be applied through cost-effective, compact and standalone or integrated testers
that provide comprehensive fault coverage, including production-related memory diagnostics
that isolate faults to pin or net levels in a matter of seconds.
In addition to the memory test coverage from BST, other non-intrusive memory test
methodologies can complement this coverage, including processor-controlled test (PCT),
microprocessor-based memory BIST technologies like Intel’s Interconnect Built-In Self Test
(IBIST) and FPGA-controlled test (FCT). Separately or together these methodologies have
reached the point where they can exceed the memory test coverage provided by legacy intrusive
methods. These non-intrusive technologies are available as automated software tools that can be
applied through cost-effective, compact and standalone testers. When these non-intrusive
memory test technologies are deployed together, the coverage derived from each complements
the others and, taken together, they can comprise a memory test toolkit capable of meeting the
requirements of any test strategy. Because these non-intrusive test technologies are software-
based, they are extremely flexible and, as a result, can be targeted to the specific characteristics
and restrictions of a particular board design. Combining the strengths of all of these non-
intrusive test methods creates a powerful and versatile memory test platform that solves the test
problems created by today’s high-speed memory and memory architectures.
Learn More