Académique Documents
Professionnel Documents
Culture Documents
Cadence Incisive Enterprise Simulator provides advanced debug capabilities through SimVision, which enables users to visualize the convergence of the SystemVerilog testbench and the design under test (DUT). SimVision offers SystemVerilog Universal Verification Methodology (UVM)/Open Verification Methodology (OVM) users the ability to post-process and provides a broad set of advanced features to this audience.
Introduction
Contents
Introduction ................................. 1 Preparing for Post-Process Debug ..................... 3 Using Saved Data for Post-Processing ............................ 4 Accessing Instance-Specific Data .................. 4 Accessing Class Objects in the Class Browser ..................... 6 Other Verification Methodologies ............................ 6 Learning More ............................. 7
Many users of SystemVerilog have relied upon $display statements for obtaining debug information for their verification testbenches. However, this approach takes debug back two decades. Starting in the 9.2 version of Cadence Incisive Enterprise Simulator, this is no longer required. You can take advantage of the advanced debug capabilities provided by SimVision to both interactively debug and post-process your verification environments. By using this new approach, you can visualize the convergence of your SystemVerilog testbench and the design under test (DUT), even if that DUT contains Verilog, VHDL, and SystemC code. This transaction level of abstraction allows the verification engineer and the design engineer to more easily discuss the design and testbench intent, which enables a more efficient path to Silicon Realization.1 SimVision supports the two most common use models for debug. The first use model is to perform interactive simulation with SimVision to display simulation results, set break points, and interact with the DUT while running the simulation. The other common use model is to run simulation in batch mode, record data to a waveform database, and then analyze the results after simulation is complete. This latter use model presents challenges when trying to post-process results when the DUT is being driven by a class-based verification environment, such as the Open Verification Methodology (OVM) or Universal Verification Methodology (UVM). In a traditional module-based testbench environment, the hierarchy of the design and verification testbench is known at time zero since the modulebased environment is elaborated into the simulation image. OVM/UVM, like other class-based verification environments, are quasi-static. This means that
For more information on Silicon Realization, please refer to the whitepaper on http://www.eda360.com.
the verification hierarchy does not exist until it is constructed during runtime simulation, and once constructed, the verification hierarchy does not change. Since it does not exist until constructed, the simulation image created during elaboration does not contain the verification environment hierarchy. SimVision takes advantage of the quasi-static nature of OVM/UVM to display the verification hierarchy along with the design hierarchy. This hierarchy is available after the build phase of the OVM/UVM environment. Figure 1 shows the verification hierarchy at time zero, before the UVM build phase is complete. You will notice that uvm _ top _ levels does not have any children.
Figure 2 shows the hierarchy after the build phase. In this image, uvm _ top _ levels has children and displays the quasi-static verification hierarchy.
www.cadence.com
Upon completion of simulation, all of the data necessary for viewing the verification environment in a postprocessing mode is now ready. The necessary data is the debug.tcl file, the ncsim.shm database, and the postconstruction simulation snapshot. If additional probes are required for full debug, they can be added to the debug. tcl file. It should be noted that probing the scope containing the OVM/UVM top level will not include the dynamic hierarchy. In order for the dynamic hierarchy to be recorded to the database, you must explicitly probe it as in the above example.
You can now select a component and display the waveform for it, and send the instance to the Source Browser to view instance-specific source value annotation. You can also select data members from an object and display the data members in the source as well. This will show the instance in the source window with the declaration line of the data member highlighted. Figure 4 shows a component displayed in the waveform window with the object referenced by the bus monitor expanded to show the data members of the object.
www.cadence.com
When viewing an object in the source, you can enable source value annotation to display values for data members of that object instance. In Figure 5, the source for the bus monitor instance is displayed.
Notice that line 131 is highlighted. This is because the data member named data was selected in the waveform prior to sending it to the Source Browser.
www.cadence.com
www.cadence.com
Learning More
SimVision offers SystemVerilog OVM/UVM users a broad set of advanced features beyond the ability to postprocess. A great way to become familiar with these is to either schedule a lunch-and-learn session with your local account team or access the SimVision workshop in the Incisive Verification Kit. The Incisive Verification Kit is supplied with the Incisive Enterprise Simulator XL starting with the 9.2 release. When you access the Kit, you will find a reference design and verification environment that will allow you to explore SystemVerilog class debug, tracing of dynamic objects, OVM/UVM-specific features, key Tcl commands, instructions on how to access the automatic transaction recording, using the stripe charts, using the heap analysis, and TLM debug. For information on installing and using the Incisive Verification Kit, please refer to the Incisive Verification Kits Getting Started manual online or contact your local support engineer.
Cadence is transforming the global electronics industry through a vision called EDA360. With an application-driven approach to design, our software, hardware, IP, and services help customers realize silicon, SoCs, and complete systems efficiently and profitably. www.cadence.com
2011 Cadence Design Systems, Inc. All rights reserved. Cadence and the Cadence logo are registered trademarks of Cadence Design Systems, Inc., All rights reserved. Cadence and the Cadence logo are registered trademarks of Cadence Design Systems, Inc., All rights reserved. Cadence and the Cadence logo are registered trademarks of Cadence Design Systems, Inc. 21761 12/11 MK/DM/PDF