How to overcome/avoid High Frequency Effects on Debug Interfaces Trace Port Design Guidelines

Similar documents
Tools to Debug Dead Boards

Saving time & money with JTAG

"shell" digital storage oscilloscope (Beta)

Optimizing BNC PCB Footprint Designs for Digital Video Equipment

SignalTap Plus System Analyzer

ARM JTAG Interface Specifications

A BBD replacement and adjustment procedure

Avoiding False Pass or False Fail

APPLICATION NOTE 4312 Getting Started with DeepCover Secure Microcontroller (MAXQ1850) EV KIT and the CrossWorks Compiler for the MAXQ30

Switching Solutions for Multi-Channel High Speed Serial Port Testing

Logic Analysis Basics

Logic Analysis Basics

CoLinkEx JTAG/SWD adapter USER MANUAL

Low-speed serial buses are used in wide variety of electronics products. Various low-speed buses exist in different

Dual Link DVI Receiver Implementation

IQDEC01. Composite Decoder, Synchronizer, Audio Embedder with Noise Reduction - 12 bit. Does this module suit your application?

IMPACT ORTHOGONAL ROUTING GUIDE

Solutions to Embedded System Design Challenges Part II

DMC550 Technical Reference

JTAGcable II In Circuit Emulator for Atmel AVR microcontrollers. User s Guide REV 1.0. Many ideas one solution

Certus TM Silicon Debug: Don t Prototype Without It by Doug Amos, Mentor Graphics

NewScope-7A Operating Manual

Logic Analysis Fundamentals

A 400MHz Direct Digital Synthesizer with the AD9912

Microcontrollers and Interfacing week 7 exercises

Using SignalTap II in the Quartus II Software

Step What to do Expected result What to do if test fails Component tested 1 Visual inspection. Board is accurately assembled

Remote Diagnostics and Upgrades

HMC958LC5 HIGH SPEED LOGIC - SMT. Typical Applications. Features. Functional Diagram. General Description

ELECTRICAL PERFORMANCE REPORT

Physics 217A LAB 4 Spring 2016 Shift Registers Tri-State Bus. Part I

Troubleshooting EMI in Embedded Designs White Paper

On-Chip Instrumentation and In-Silicon Debug Tools for SoC Dr. Neal Stollon HDL Dynamics

Efficient analysis of power and signal integrity and EMC

Logic Analyzer Triggering Techniques to Capture Elusive Problems

Pandora rev6a testing:

Field Programmable Gate Array (FPGA) Based Trigger System for the Klystron Department. Darius Gray

Analyze Frequency Response (Bode Plots) with R&S Oscilloscopes Application Note

Dual Link DVI Receiver Implementation

3G-HD/SD SDI Pattern Generator. User Manual

Interfacing the TLC5510 Analog-to-Digital Converter to the

EE 367 Lab Part 1: Sequential Logic

SWITCH: Microcontroller Touch-switch Design & Test (Part 2)

EXOSTIV TM. Frédéric Leens, CEO

Scan. This is a sample of the first 15 pages of the Scan chapter.

FOM-1090 FOM-1090 FOM FOM-1090 w/ DB-25 Female FOM-1091 w/ DB-25 Male

New Serial Link Simulation Process, 6 Gbps SAS Case Study

Debugging Memory Interfaces using Visual Trigger on Tektronix Oscilloscopes

Vorne Industries. 87/719 Analog Input Module User's Manual Industrial Drive Itasca, IL (630) Telefax (630)

Quick Signal Integrity Troubleshooting with Integrated Logic Analyzers & Oscilloscopes

MSO-28 Oscilloscope, Logic Analyzer, Spectrum Analyzer

How advances in digitizer technologies improve measurement accuracy

AN2939 Application note

Quick Start. RSHS1000 Series Handheld Digital Oscilloscope

MS-32. Oscilloscope Mixed Signal Option. Add 32 Digital Channels to a 4 Channel Oscilloscope

EECS150 - Digital Design Lecture 2 - CMOS

Electrical and Electronic Laboratory Faculty of Engineering Chulalongkorn University. Cathode-Ray Oscilloscope (CRO)

Experiment # 4 Counters and Logic Analyzer

DE2-115/FGPA README. 1. Running the DE2-115 for basic operation. 2. The code/project files. Project Files

FPGA Design. Part I - Hardware Components. Thomas Lenzi

DSO138mini Troubleshooting Guide

Digital Audio Design Validation and Debugging Using PGY-I2C

Application Note. 3G SDI Evaluation Board. Revision Date: July 2, 2009

NanoCom ADS-B. Datasheet An ADS-B receiver for space applications

Logic Devices for Interfacing, The 8085 MPU Lecture 4

XJTAG. Boundary Scan Tool. diagnosys.com

Build A Video Switcher

Future of Analog Design and Upcoming Challenges in Nanometer CMOS

Practical De-embedding for Gigabit fixture. Ben Chia Senior Signal Integrity Consultant 5/17/2011

Oscilloscopes for debugging automotive Ethernet networks

Ashling Product Brief APB219 v1.0.3, 12 th October 2018

Innovations in PON Cost Reduction

Equivalence Checking using Assertion based Technique

MS-32 OSCILLOSCOPE MIXED SIGNAL OPTION. Add 32 Digital Channels to a 4 Channel Oscilloscope

EBU INTERFACES FOR 625 LINE DIGITAL VIDEO SIGNALS AT THE 4:2:2 LEVEL OF CCIR RECOMMENDATION 601 CONTENTS

L, LTC, LTM, LT are registered trademarks of Linear Technology Corporation. Other product

3. Configuration and Testing

100g cfp Health check Jean-Marie Vilain, Product Specialist, Transport and Datacom

Integration of Virtual Instrumentation into a Compressed Electricity and Electronic Curriculum

Dynamic Animation Cube Group 1 Joseph Clark Michael Alberts Isaiah Walker Arnold Li

ASNT_PRBS20B_1 18Gbps PRBS7/15 Generator Featuring Jitter Insertion, Selectable Sync, and Output Amplitude Control

Operator's Manual. MS-250 Mixed Signal Oscilloscope Option

Designing High Performance Interposers with 3-port and 6-port S-parameters

SMPTE STANDARD Gb/s Signal/Data Serial Interface. Proposed SMPTE Standard for Television SMPTE 424M Date: < > TP Rev 0

Procedure for DDR Clock Skew and Jitter Measurements

Impact of Intermittent Faults on Nanocomputing Devices

Sharif University of Technology. SoC: Introduction

PCIe-FRM21. User s Manual

T-BERD /MTS 5800 Network Tester Fiber Channel Layer 2 Traffic

Evaluating Oscilloscopes to Debug Mixed-Signal Designs

VHDL Design and Implementation of FPGA Based Logic Analyzer: Work in Progress

Meeting Embedded Design Challenges with Mixed Signal Oscilloscopes

DX-10 tm Digital Interface User s Guide

FV_CIC2 interface manual_v

Hello and welcome to this presentation of the STM32L4 Analog-to-Digital Converter block. It will cover the main features of this block, which is used

ScanExpress JET. Combining JTAG Test with JTAG Emulation to Reduce Prototype Development Time. Ryan Jones Corelis, Inc. An EWA Technologies Company

EMI/EMC diagnostic and debugging

Spider. datasheet V 1.0. Communication and fault injection of embedded chips. rev 1

R&S RT-ZM Modular Probe System

Overview of BDM nc. The IEEE JTAG specification is also recommended reading for those unfamiliar with JTAG. 1.2 Overview of BDM Before the intr

Transcription:

How to overcome/avoid High Frequency Effects on Debug Interfaces Trace Port Design Guidelines An On-Chip Debugger/Analyzer (OCD) like isystem s ic5000 (Figure 1) acts as a link to the target hardware by standard debug interfaces such as JTAG, OnCE, DAP, NEXUS, ETM, etc. Some of these interfaces - especially the latter two - offer so called trace ports through which information of an embedded application can be retrieved. Depending on the amount and quality of these on-chip trace data the OCD offers debugging functionality for software development as well as extensive software tests. One example is tracing and analyzing the execution of the running software. Program states can be inspected and program execution can be halted based on complex trigger conditions. In addition the OCD also supports performance optimization by function as well as data profiling and code coverage analysis. Figure 1: ic5000 connection to embedded hardware Due to the continuously increasing demands of today s embedded applications, MCUs get more and more complex by higher integration, performance acceleration and power saving requirements. Upcoming multi-core processors and new debug interfaces impose even bigger challenges in terms of more bandwidth at higher frequencies on trace ports. However physically all trace ports consist of several data lines and clock. With higher integration and frequencies the on-chip trace signals are subject to (increased) signal distortion. And high signal distortion can prevent a trace tool (e.g. OCD) from capturing the trace stream correctly. The quality of on-chip trace signals depends mostly on the way how the debug interface is realized by the semi-conductor vendor but also on the PCB design itself. In this document we will discuss design considerations for the Printed Circuit Board (PCB) itself and will give some guidelines on how to design PCBs to minimize high frequency effects. Trace Port PCB Desgin Guidelines 2011-06-17 1/7

High Frequency Trace Signals Before we talk about provisions to avoid signal distortion let s talk about high frequencies trace signals. On-chip debug functionality on most of today s controllers is realized by compressing the CPU activity on-chip and delivering it to a trace port to enable an external tool (e.g. OCD) to record, analyze and display this information. The trace port consists of data lines and clock line which is used to capture the data in a moment, when it is valid and stable. The data can be captured on rising edge of the clock ( Full Rate ) or on both clock edges ( Half Rate ). At lower frequencies and good signal integrity we can consider the clock and data lines as pure digital signals, which are correctly phase aligned. The OCD can capture the data accurately in this scenario. Figure 2: Good signal integrity at low frequency with large "Data Eyes" Beside figures show the data and clock signals measured with an oscilloscope. The data signal is shown in blue, the clock signal is yellow. The different blue lines show one signal at different time periods - the oscilloscope ran in persistence mode, so the curves drawn on the oscilloscope s screen are accumulated. The dark area within the signal is called the data eye sampling within this region yields a reliable trace recording (Figure 2: pink squares). Figure 3: Higher frequency: Valid "Data Eyes require clock shift (pink arrows) However when the frequency rises, the capturing of data becomes challenging due to increased signal integrity issues (noise, skew, crosstalk, reflections, ground bounce ). As you see in Figure 3 with higher frequencies the data eye shrinks (pink circle) and the clock has to get shifted (pink arrows). Trace Port PCB Design Guidelines 2011-06-17 2/7

Examples of High Frequency Effects The following two examples show how the length of trace lines is reflected in signal integrity and consequently in functionality. A typical evaluation board was used (figure 4 and 5), where the CPU sits on the upper piggyback board, which is optionally fitted to a lower, larger measurement board using high quality inter-board connectors. The debug interface is located on the CPU board. Figure 4: Upper Piggyback Board with CPU and Debug Interface Figure 5: Lower Measurement Board with Interboard Connectors The Line Calibration Result (figure 6 and 8) shows a view at the signal from the OCD perspective. The dotted sampling points indicate a stable signal, and the X positions indicate a changing (unstable) signal. A more detailed description how the signal is sampled and interpreted by the OCD you find in the chapter Auto calibration. The Oscilloscope (figure 7 and 9) shows the same signal measured by an oscilloscope. The yellow line is the trace clock and the blue lines are the trace data, the dark area within the signal is the data eye. The oscilloscope ran again in persistence mode. Trace Port PCB Design Guidelines 2011-06-17 3/7

Trace lines with short stubs This trace was made directly on the CPU board where the debug port is located. The CPU board is not attached to the measurement board this time. Due to short stubs, the size of the data eye is large and the tool has no problems in recording the trace. Figure 6: Trace Line Calibration Result Figure 7: Measured by Oscilloscope Trace lines with longer stubs (over connector to other board) This trace was also made on the CPU board (because there is the debug port located) but now the CPU board is fitted (piggyback) to the lower measurement board. All trace lines are linked through the inter-board connector to the lower board. By passing through the connector, the stubs on the trace lines get much longer and due to that the data eye shrinks. Auto calibration can still find a safe sampling position, but any additional obstacle (CPU socket, longer PCB lines ) could shrink the data eye to a point where no safe sampling point could be established. Figure 9: Measured by Oscilloscope Figure 8: Trace Line Calibration Result Trace Port PCB Design Guidelines 2011-06-17 4/7

Recommended Measures To avoid signal distortion and to retrieve a high quality trace already the PCB designer should consider several aspects to provide a stable environment. The CPU should be soldered on the PCB. Any socket can reduce the signal integrity dramatically. All trace port lines on the PCB should be as short as possible (max ~2,5 cm), Trace lines should run on the same layer or on layers with the same impedance. Preferred layer impedance is 50 Ohm. Mictor ground pins should be connected directly to PCB s GND plane. Trace clock should be serially terminated by 47 Ohm resistor as close as possible to the driver. The value of the resistor may be changed depending on driver characteristics. Trace clock should be clean of crosstalk if possible with double distance to closest nets. Trace clock should have only point-to-point connection any stubs should be avoided. It is strongly recommended also for other (data) lines to be point-to-point only. If any stubs are needed, they should be as short as possible. If longer are required, there should be a possibility to optionally disconnect them (e.g. by jumpers). Trace port data bus inner crosstalk is not so important, but it is critical to isolate the whole bus from other signals (including from the trace port clock). Auto Calibration Auto calibration is a feature of isystem s powerful on-chip debuggers to reduce noise, skew, crosstalk, etc. and to ensure a high quality trace data. Auto calibration allows the on-chip debugger to adjust the sampling position by shifting the sampling voltage and sampling delay in reference to the clock. This allows the tool to fine tune the instant when the signal is sampled to a moment where the signal is more stable. Auto calibration is implemented for the ic5000 and the itrace Probe2 (see Figure 10). Figure 10: ic3000 with itrace GT and itraceprobe2 Auto calibration is realized by different means. The ic5000 can shift the capturing threshold voltage and delay the clock line. On all channels and for all reference voltages the signal is sampled twice and checked when the signal is stable. To achieve that, any input signal is routed parallel into two registers that use different clocks. The clock delay is programmable, but it is ~1ns apart. The voltage level based on Vref is also Trace Port PCB Design Guidelines 2011-06-17 5/7

shifted. It can be adjusted in both directions to allow sampling at several different threshold voltages. Then the (two) signals are sampled using different threshold values. If the signal is not changing in the 1ns period, the signal is considered stable and sampled good. If the signal changes then it is sampled unpredictable. The sampling results are shown in winidea s Trace Line Calibration results view (see Figures 6, 8). The graph is based on Vref and Phase which is the clock delay. If the signal is stable it shows a.. If the signal is traveling from low to high (or opposite), an X is shown. Although Figure 11 shows a trace with much noise, you can establish from the graph data eye areas, where it is save to sample. Usually the auto calibration logic in the Blue Box decides automatically on Recommended Vref and Phase values (shown as R ). But in cases of huge noise (Figure 11) this might not be possible and the user has to set these values manually in Current input boxes (shown as o in the graph). On the itrace Probe 2 every signal line can be shifted and delayed individually (important for PCB designs where the onboard debug lines have different lengths and therefore different shifts). Additionally differential signaling is used that transports every signal over two lines where one line runs the inverted signal in the opposite direction. This way any signal distortion should be very limited across both lines. What has Auto calibration to do with the PCB design? Auto calibration helps to receive high quality trace data because flaws in the PCB design are mitigated and even overcome. An on-chip debugger using Auto calibration can achieve much higher data transmission rates over the debug interface than tools without it. With Auto calibration the ic5000 can capture up to 2Gbps data over a 16bit port. With the itrace Probe 2 a data bandwidth of 5600Mbps can be achieved on a 16bit port and using 4 itrace Probes 2 up to 20000Mbps (=20Gbps!) data bandwidth are possible. Figure 11: winidea's Trace Line Calibration view- much noise on line Trace Port PCB Design Guidelines 2011-06-17 6/7

isystem s Reference Targets To provide a stable environment isystem will offer so called reference targets. These are simple boards with little peripheral devices that are verified to provide a high quality trace. The big advantages for customers are the potential to start prototyping when the final target hardware is not yet available to assess application s behavior on a certified target to evaluate and audit isystem products, e.g. winidea, testidea in a stable environment to prove isystem s product quality within a company s internal qualification process For more information on isystem Reference Targets contact info@isystem.com. Links The Trace Port PCB Design Guidelines document can be downloaded here. Background information on the Possibilities and Limits of Software Debugging Techniques Depending on the Microcontroller/Microprocessor can be found here. Explanation of Differential signaling. Trace Port PCB Design Guidelines 2011-06-17 7/7