Test & Measurement

Getting To The Heart Of The Problem

9th May 2013
ES Admin
0
In this article from ES Design Magazine, Daniel Ruebusch of Agilent asks: How do you test and debug a device with hundreds of thousands of internal logic cells and transceiver speeds up to 28Gbit/s? Such is the challenge facing designers employing today’s industry leading FPGAs.
Debugging FPGAs is inherently challenging, due to the large numbers of internal logic nodes that are inaccessible to traditional probing. Limitations on pin count bound a designer’s ability to ‘brute force’ a solution. Innovations such as JTAG and the internal logic analyser have helped alleviate these problems and route important signals out of the FPGA for analysis. Traditionally, logic analysers have been used to debug FPGAs, however more recently mixed signal oscilloscopes (MSO) have become commonly used due to their ability to measure both analogue and digital signals. In recent years, a new class of applications have placed incredible demands on FPGA transceiver speeds, increasing the need for accurate and high bandwidth analogue measurements along with digital analysis in FPGA debug.

From the perspective of digital debug, the biggest challenges arise from the inaccessibility of critical logic nodes and a limitation on the number of available physical pins. Innovations such as internal signal muxing, JTAG communication, and internal logic analysers have helped alleviate these challenges. However, all of these techniques offer tradeoffs and require the correct test and measurement equipment.

Digital debug of FPGAs has traditionally been the domain of logic analysers. Offering from 32 to hundreds or even thousands of digital channels, synchronous and asynchronous acquisition, and complex state triggering conditions. The logic analyser is, by design, a powerful tool for analysis and debug of digital signals. However, for many applications logic analysers are not the best tool for the job. The mixed signal oscilloscope (MSO) is an extremely powerful tool for applications that require both digital and analogue measurements.

Analogue channels allows designers to make critical analogue measurements on their digital devices; for instance, testing the transceiver on an FPGA. Further, if something in the logic appears incorrect the designer has correlated analogue channels readily available for deeper investigation. MSOs offer broad analogue and digital triggering capabilities and deep memory in a familiar and easy-to-use interface. While the MSO is not without its tradeoffs (typically being limited to a maximum channel count of 20 and only capable of asynchronous acquisition based on an internal sampling clock), it is a critical tool for designers of mixed signal systems such as an FPGA.

The MSO has traditionally been found on low and medium bandwidth scopes in order to address the heart of the mixed signal market. However, new applications have demanded ever higher data rates, as evidenced by the 28Gbit/s transceiver speeds available on today’s FPGAs, driving the need for high bandwidth mixed signal oscilloscopes that can handle both logic analysis and the critical signal integrity challenges of high speed serial measurements.

Digital Debug

Given the challenges of a lack of internal visibility, different approaches have emerged in FPGA debug. The most common approaches to FPGA debug are: direct routing from logic nodes to pins, muxing out signals to pins, and internal logic analysers.

The simplest way to access internal nodes in an FPGA is to leverage the programmability of the device to route these signals out to physical pins where they can be probed by the digital channels of a mixed signal oscilloscope. A simplified diagram of this approach is shown in Figure 1.


Figure 1: Routing signals out to physical pins to be probed by the digital channels of a mixed signal oscilloscope

This method, while effective, comes with significant limitations. First, in many cases designers are limited by the number of physical pins available on the FPGA package. This approach requires the designer to make a tradeoff between the number of physical pins available and the number of internal nodes available to probe for test and debug. Further, it is often difficult to predict which nodes will need to be observed while debugging the FPGA logic. This challenge becomes aggravated when directly routing nodes to pins and only 8 or 16 pins are available to dedicate to debug. If new signals need to be probed, the FPGA must be redesigned to route these signals out to the physical pins. This process of manually managing design and node-to-pin routing results in equal (and relatively long) time investment between iterations. Inefficiencies aside, this tried and true debug technique is simple and provides both state and timing modes for thorough analysis of the probed signals.

Muxing Out Signals

A variation on direct routing to pins, signals can be muxed out to physical pins on the FPGA, as shown in Figure 2. This approach offers many critical benefits; primarily, the designer is no longer so constrained by physical pins, as the number of internal nodes available to probe is many times the number of physical pins. Using the example shown in Figure 2, let’s assume the designer has dedicated 16 pins to logic debug. A 16:1 mux allows the designer to route 256 internal nodes to the multiplexer, and observe them all using only 16 physical pins. In most implementations, the mux selection is controlled using the JTAG interface on the FPGA. This flexibility dramatically reduces the need to redesign the FPGA to observe additional nodes and improves the time between iterations. Further, as signals are still being directly observed at the physical pins, both state and timing modes remain available.


Figure 2: Diagram of FPGA debug using digital channels of Agilent MSO 90000 X-Series. 256 logic nodes are routed out to 16 physical pins through a 16:1 Mux

In many instances, FPGA vendors provide internal logic analysers (ILAs) built into their FPGAs to aid debug. The ILA features trigger circuitry and uses the internal memory to store traces. JTAG communication between the FPGA and a PC is used to configure the ILA and read the logic signals it outputs (shown in Figure 3). The convenience of this setup is that no incremental physical pins are needed and only a PC is required for basic logic analysis. However, there are many limitations to this technique. The ILA can be a resource hog, monopolising FPGA slices and internal memory needed for the working logic. Further, only state mode is available using an ILA, timing mode, which allows designers to observe signals relative to one another and measure asynchronous events, is not supported.


Figure 3: Diagram of FPGA debug using digital channels of Agilent MSO 90000 X-Series. Internal logic analyser communicates logic information to MSO via JTAG interface

That being said, ILAs are common and many vendors offer hybrid debug solutions where both an ILA and muxing can be employed for maximum flexibility. In order to remain a truly multipurpose tool, mixed signal oscilloscopes offer JTAG decode software so that logic signals output by an ILA can be analysed directly on the scope.

Analogue Measurements

There are certainly many instances where analogue measurements can be invaluable to a digital designer. For instance, being able to see the underlying analogue signal can clarify anomalous behaviours in the logic. That being said, state of the art FPGA testing represents a class of truly mixed signal applications where the analogue and digital challenges can be equally critical to device performance. The latest FPGAs offer transceiver speeds up to 28Gbit/s. Research and development into ever faster ethernet speeds — a critical market supported by FPGA makers — has driven the need for these bleeding edge transceiver speeds. Current work on 100Gbit Ethernet has focused on 10 lanes at 10Gbit/s implemented in CFP modules. A second generation of 100GbE is being developed employing a 4 by 25Gbit/s architecture to be integrated into CFP2 and ultimately CFP4 modules.

The advantages of increasing serial data rates and reducing parallelism include a significant reduction in power dissipation and module size enabling higher densities. In order to support the 25Gbit/s serial data lanes demanded by the standard, FPGAs have pushed transceiver speeds out to 28Gbit/s. Peering another generation into the future, 400GbE calls for 16 by 25Gbit/s.

Designing and measuring a serial data stream at 28Gbit/s is very much an analogue problem. Insertion loss, reflections, cross talk, and other analogue challenges that can be safely ignored at data rates less than 1Gbit/s can be catastrophic at 28Gbit/s, often resulting in completely closed eye diagrams. Real-time oscilloscopes, including MSOs, offer signal integrity software that can dramatically improve the quality of analogue measurements at these data rates. For example, a lossy channel can be de-embedded from the signal path. This allows the user to observe the signal as it appeared prior to propagation through the channel.

The old adage of needing to see at least the 3rd harmonic would require a measurement system with a minimum of 42GHz bandwidth to measure a 28Gbit/s signal. However, this is often not the case. In Figure 4 a 28Gbit/s PRBS^7 signal is measured at both 33 and 63GHz of acquisition bandwidth. There is very little difference in these measurements, aside from the unavoidable high frequency noise in the 63GHz acquisition. An FFT of this signal shows the third harmonic is 30dB below the fundamental and almost entirely negligible in real world measurements. Still, only recently have MSOs expanded into analogue bandwidths high enough to capture this 28Gbit/s signal. The industry’s highest analogue bandwidth MSOs have achieved 20, and most recently 33GHz.


Figure 4: 28Gbit/s PRBS^7 signal measured on Agilent 90000 Q-Series oscilloscope at 33GHz (left) and 63GHz (right) acquisition bandwidth. The third harmonic of the signal (at 42GHz) has too little energy to make a difference in these two acquisitions

There are critical challenges in both digital and analogue test and debug of state-of-the-art FPGAs. Digital signals are difficult to access and physical pin count is limited. Meanwhile, transceiver speeds reaching 28Gbit/s bring analogue non-idealities to the forefront. Making measurements in this challenging environment calls for a high bandwidth mixed signal oscilloscope combining >30GHz analogue bandwidth, superior signal integrity, and 16 digital channels into one integrated instrument. Until recently, such an instrument didn’t exist. However, the latest class of high bandwidth MSOs are uniquely positioned to support these challenging measurements.

Author Bio: Daniel Ruebusch manages strategic marketing of high performance oscilloscopes at Agilent Technologies. Daniel joined Agilent in 2011. He has past experience in semiconductor device physics and processing and consumer sales and marketing. Daniel holds a B.S. from Cornell University in both Electrical Engineering and Materials Science and an M.S. in Electrical Engineering from U.C. Berkeley. He is a published technical author.

Featured products

Product Spotlight

Upcoming Events

View all events
Newsletter
Latest global electronics news
© Copyright 2024 Electronic Specifier