NoC Silicon IP for RISC-V based chips supporting the TileLink protocol
On-chip instrumentation aids OCP debugging
EE Times: On-chip instrumentation aids OCP debugging | |
Neal Stollon (09/26/2005 9:00 AM EDT) URL: http://www.eetimes.com/showArticle.jhtml?articleID=171100311 | |
Leading embedded processor and intellectual property (IP) developers have adopted the Open Chip Protocol (OCP) socket as a standards-based approach to on-chip bus integration. An emerging capability for OCP design is On-Chip Instrumentation (OCI) for analysis and debugging. OCP-based buses allow a range of high bandwidth implementations, and define a number of features and capabilities in addition to baseline data transfer. These features include the extensions for special bus command modes, burst operations and multiple data tags, and threads that increase the number of traced signals. In addition to bus interface signals that address the basic address and data operations, OCP provides a range of optional signals that address specialized processor specific performance enhancement features such as data alignment, bursting, and multi-thread operations. All these options are defined at the core to bus interface “socket,” and are largely independent of specifics of the bus fabric itself. But OCP does present additional considerations in coordinating the operation of more complex implementations. Analysis considerations include the multi-cycle operations specific to a given OCP interface, and more global issues like on-chip bus subsystem performance of shared interfaces and peripherals. These require analyzing and optimizing bus parameters like transmission efficiency, latency, saturation, resource conflicts, and other operational considerations, all of which can have a direct impact on the performance and operation of the processor components and overall system operation. Simulation is always an important part of the development flow, but it has limitations, especially for system analysis. In many cases, it is just as important to be able to analyze the hardware itself during prototyping and system verification, and on the final products themselves. But analyzing information at the embedded bus level in hardware devolves to a visibility problem it is difficult to fix what you cannot see. Visibility cannot be adequately addressed by traditional on-chip test methods such as JTAG scan for several reasons:
OCI is widely used for debug and run control of embedded processors and for logic analysis traces to add crucial visibility to embedded designs. Many OCI blocks typically operate via a JTAG port configured as a dedicated debug port. OCI solutions that address the SoC specific issues of on-chip bus analysis, and are able to provide sufficient debug visibility of non-observable bus interfaces, have only recently started to be addressed.
Figure 1 A general OCP based multi-core debug architecture
Figure 1 shows a generic multi-core architecture (dual processors, memory interfaces, and custom IP using an OCP bus). OCI blocks and interfaces provide visibility and control to make this subsystem simpler and more effective to debug. These include:
Processor debug Instrumentation blocks for processor cores provide processor specific run control, monitoring of hardware and software breakpoints for triggering, and real-time trace of instruction and data. Processor run control (start and stop based on software and hardware breakpoints) and single-stepping are features that provide debug control, but not much visibility. To address this, some processors also provide some real-time trace, to allow capture of cycle by cycle instruction information triggered on instruction execution, memory, I/O operations, address range, or op code value. Since instructions have a well defined flow, execution trace can be compressed for storage or transmission efficiency and later expanded for integration with code debugger tools, using techniques such as branch trace messaging, which focuses on instruction flow discontinuities. Most processor debug instrumentation is controlled via JTAG. Logic and bus navigator instrumentation In most designs, processors are only one of several subsystems that should be included in any systems analysis. Customized logic or IP in many designs includes co-processors or accelerators for specific applications, memory controllers, peripherals and a host of other functions. Logic Analyzer instrumentation blocks are widely used, especially in FPGA design. Logic Analyzer IP monitors and traces user-defined signals selected prior to synthesis. Logic trace is controlled on-chip by combinatorial or sequential triggers. Typically the more complex the triggering resources, the slower the trigger speed supported. Bus level instrumentation is an application specific version of logic analysis instrumentation, with additional bus-specific inline and post processing of the bus and protocol information. Bus analysis typically takes one of two forms signals of interest are traced at the interface (OCP Socket), or are traced from within the bus fabric (as example, the OCP based Sonics Silicon Backplane fabrics).
OCP bus analyzers must support parameterized features such as data word size and configurable numbers of sideband and optional signals for a given design. Cross trigger interfaces to the other debug blocks or processors are often used for low latency triggering of bus trace start and stop or other debug operations. In this discussion, we consider the simpler case of OCP socket level debug of traced signals from each bus master being routed and multiplexed to the bus navigator IP. Multiplexed trace (shown in example in Figure 1) can be used to trace information from one socket at a time, or selected signals (all the control signals as an example) from all sockets as supported by the bus trace resources for a given application. Other bus trace and analysis issues that relate to trace display and efficiency involve two types of inline processing cycle alignment and cycle dropping. Since bus operations are pipelined, information related to a given operation may be distributed over several cycles, where bus elements exchange commands and information. For OCP buses, this is typically a minimum of command, response, and a handshake cycle. Some trace approaches synchronize and align these portions of a given bus cycle to display as a single cycle. This “Bus Mode” trace provides a view that is cycle aligned with an operation, which is how software perceives bus operations and which allows more intuitive triggering and trace display for software analysis. Tracing every bus operation on a cycle by cycle basis is not very efficient due to the latencies involved in bus operations. Many cycles are idle or “not ready,” and use up the trace memory without providing useful information. One approach to conserve trace RAM resources and keep the trace more readable is to include triggering instrumentation for dropping of idle and “not ready” cycles from bus traces. Often some time stamping is added to the trace to maintain synchronization of the trace. An example showing trace synchronization and idle cycle dropping, along with bus trace mode for a simple command and response case, is illustrated in Figure 2.
Figure 2 OCP bus mode trace alignment
Other debug considerations Properly implemented on-chip instrumentation can compliment the testability, maintainability and analysis throughout the lifecycle of a chip design. Implementing on chip debug requires an understanding of how debug tools are planned to be used in hardware verification as well as the considerations for integrating instrumentation solutions into a design. Some features that users should consider follow. Flexible on-chip triggering, trace, performance analysis When there is a lot of data passing through an OCP based bus, it is important to get access to signals you need, but only when they are doing what you care about. One lower cost approach is to allow on-chip performance analysis to monitor and send only summary information. As an example, it is overkill to trace data every time a bus is saturated, if you only care about the relative amount of times it was saturated. The former requires detailed trace; the latter can be addressed with a relatively small performance analysis block. Interoperability and cross triggering for system debug Few systems work in isolation, so neither should a debug solution. Bus and processor operations and performance are frequently correlated, interdependent or synchronized in systems. A system level debug solution should include instrumentation blocks supporting the entire system of interest. Integration with other debugger/verification tools Processor software tool chain support should be able to access processor instruction trace and correlate it to source code for simpler and more intuitive analysis. Similarly, logic and bus analysis is starting to find closure with EDA tools on methods of importing trace into verification tools for comparison of actual versus simulated logic information. Keeping pace with internal signal speeds and maintaining reasonable gate size Debug is seldom a reason for additional timing closure issues or pushing to the next size die or package. Debug instrumentation can be small (in some cases a few thousand gates or less) or very large, especially if there are a lot of complex triggering operations or very large defined trace. Typically interfaces are JTAG based, so impact to chip I/O is minimal. OCI speed varies with overall features, but is typically designed with low gate delays to run as fast as everything else in your system. Configurable to system needs Extensive debug is not needed if only a limited amount of the design requires visibility. Likewise you don’t want too limited a solution if you are debugging big problems. Debug solutions should be able scale to the need at different parts of a development cycle larger on prototypes or emulators, smaller on production releases allowing the same features and interfaces, with less capability or options, to be used across the lifecycle of the product.
Figure 3 Instrumentation control infrastructure
On chip instrumentation is not just IP, and is only as useful as the ability to interpret the information provided. OCI is typically a paired IP and software solution, and requires a certain features for effective use. Most instrumentation includes specific drivers and APIs that format and communicate information between the JTAG port and hardware instrumentation and trace and control GUI and interfaces. Standards based drivers and APIs have obvious advantages in terms of flexibility, customization and integration, and in many cases, ease of use. Some industry standards that are relevant to the instrumentation tools flow include:
Dr. Neal Stollon (neals@fs2.com) is Director of Technical Marketing and Program Manager of systems level products for First Silicon Solutions. He has over 20 years digital design, EDA and processor development experience at Texas Instruments, LSI Logic, Alcatel, and other companies.
| |
All material on this site Copyright © 2005 CMP Media LLC. All rights reserved. - - | |
Related Articles
- Enabling Composable Platforms with On-Chip PCIe Switching, PCIe-over-Cable
- Risks and Precautions to take care while using On-Chip temperature sensors in Safety critical automotive applications
- On-Chip Interconnect Costs Spawn Research
- The growing role of analog-digital on-chip integration in saving energy
- Display Driver with on-chip frame buffer and a scalable image compression engine
New Articles
Most Popular
- System Verilog Assertions Simplified
- System Verilog Macro: A Powerful Feature for Design Verification Projects
- Synthesis Methodology & Netlist Qualification
- Enhancing VLSI Design Efficiency: Tackling Congestion and Shorts with Practical Approaches and PnR Tool (ICC2)
- Demystifying MIPI C-PHY / DPHY Subsystem
E-mail This Article | Printer-Friendly Page |