1. Field of the Invention
The invention relates to the process of verifying a design for an integrated circuit. More specifically, the invention relates to a method and an apparatus for integrating a simulation log, which is generated during simulation of the design, into a verification environment.
2. Related Art
During the design of an integrated circuit, designers typically use a high-level hardware design language such as Verilog or VHDL to create a register transfer language (RTL) description of the integrated circuit.
The RTL description is typically processed through a simulator to verify correct operation of the design. During this simulation, the simulator writes messages containing information generated during the simulation to a log file. These messages typically contain information related to key events which occur during the simulation run. Designers use this log file to review the operation of the integrated circuit design.
During a review of the log file (either during the simulation run or during post-processing of the simulation run), the designer typically locates an entry for an event of interest in the log file and attempts to correlate this entry with other files associated with the simulation. These other files can include: the RTL source, hierarchical views of circuits within the integrated circuit, and circuit waveforms generated during the simulation.
Unfortunately, in existing systems, the process of associating the entry in the log file to specific locations in the other files is a time-consuming manual process. Furthermore, because this process is manual, it is prone to errors, such as associating a log file entry with the wrong circuit, or associating a log file entry with the wrong portion of a waveform.
Hence, what is needed is a method and an apparatus for integrating a simulation log into a verification environment without the problems cited above.
One embodiment of the invention provides a system that facilitates integrating a simulation log into a verification environment. The system operates by first creating the simulation log during a simulation of a register transfer language description of an integrated circuit design. Next, for each entry in the simulation log, the system places a corresponding entry in a “log entry table.” When a user selects an entry from the simulation log, the system determines a file offset for the entry within the simulation log. Next, the system locates the corresponding entry in the log entry table. The system then uses the log entry table to locate entries within simulator state files, which describe which portion of the integrated circuit is being simulated. This enables the system to display the corresponding entries from the simulator state files to a user.
In a variation of this embodiment, the simulation log includes raw text entries describing events that occur during the simulation.
In a further variation, each entry in the log entry table identifies the simulation log and a corresponding entry in the simulation log.
In a further variation, the system displays the simulation log in a user interface. In this variation, the user selects an entry by locating the entry with a pointing device in the user interface, and selecting the entry by activating a button associated with the pointing device.
In a further variation, the simulator state files includes a source file containing register transfer language statements describing the integrated circuit; a wave file contains selected waveforms generated by the simulation; and a hierarchy file which specifies hierarchical relationships between the circuits comprising the integrated circuit.
In a further variation, a given entry in the log entry table specifies a simulation time, which can be used to access the wave file; a position in an instance tree, which can be used to access the hierarchy file; and a source identifier stack, which can be used to access the source files.
In a further variation, displaying the associated entries from the simulator state files to the user provides the user with an integrated view of the simulation.
Simulation System
During operation, run module 104 provides value changes (waves) 117, coverage data 121, status 119, and log 112. Log 112 is comprised of raw text 113 and log entry table 115.
Simulation State Files
Source view 202 displays the RTL source for the integrated circuit. Wave view 204 displays output waveforms generated during the simulation run of the integrated circuit. Finally, hierarchical view 206 displays the circuit hierarchy for the various circuits comprising the integrated circuit. Taken together, simulation state files 110 provide a continuous state output for the integrated circuit during a simulation run.
Simulation Log
Simulation Log Details
Event descriptor 404 stores the simulation time, a source line identifier for the source line from the source file that is being simulated, and a position indicator for the position in the hierarchy that is being simulated. Note that other information can be stored in event descriptor 404 and that additional view files can be supported.
During operation, a user can click on an entry in log file 302. The system determines the offset into log file 302 for the entry and then searches log entry table 304 for a matching record. Note that the search can be very fast if log entry table 304 is organized to be monotonically increasing. In this case, a binary search can be used to locate the matching entry. Alternatively, a lookup structure such as a hash table or a heap can be used.
After locating the matching entry, the system uses event descriptor 404 to access the associated data form source view 202, wave view 204, and hierarchical view 206. The entry from log file 302 and the associated data from the various view files are presented to the user on a computer display.
Creating a Simulation Log
After receiving the log event, the system places a log entry in the log file (step 506). Finally, the system places the log file offset, the simulation time, a source line identifier from the source file, and the position in the integrated circuit's hierarchy into a corresponding log entry table (step 508). Note that additional data can be placed into the log entry table.
Using the Simulation Log
After determining the offset, the system searches the log entry table for a matching file offset (step 606). Note that entries in the log entry table can be monotonically increasing to allow use of a fast search technique such as a binary search.
Upon finding the matching entry for the log entry in the log entry table, the system uses the data in the matching entry to locate entries within the associated simulation state files (step 608). Specifically, the time value can be used to locate a position in the wave view corresponding to the logged event, the source identifier can locate the source line within the design source file that is being simulated, and the hierarchy position can be used to locate where the circuit resides in the hierarchy of the integrated circuit. Note that additional data in the log entry table can be used to locate other associated data.
The system then displays the log entry and the associated data from the simulation state files to a user (step 610). The user can use this correlated information to examine the progress of the simulation and to determine exactly what is happening within the simulation when the event is logged.
The foregoing description is presented to enable one to make and use the invention, and is provided in the context of a particular application and its requirements. It is not intended to be exhaustive or to limit the invention to the forms disclosed. Various modifications to the disclosed embodiments will be readily apparent, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the invention. Thus, the invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein. Accordingly, many modifications and variations will be apparent. The scope of the invention is defined by the appended claims.
The data structures and code described in this detailed description can be stored on a computer readable storage medium, which may be any device or medium that can store code and/or data for use by a computer system. This includes, but is not limited to, magnetic and optical storage devices such as disk drives, magnetic tape, CDs (compact discs) and DVDs (digital versatile discs or digital video discs), and computer instruction signals embodied in a transmission medium (with or without a carrier wave upon which the signals are modulated). For example, the transmission medium may include a communications network, such as the Internet.
Note that the invention can be applied to any type of lithographic process for fabricating semiconductor chips, including processes that make use of, deep-ultraviolet (DUV) radiation, extreme ultraviolet (EUV) radiation, X-rays, and electron beams, along with suitably modified masks.
Number | Name | Date | Kind |
---|---|---|---|
5220512 | Watkins et al. | Jun 1993 | A |
5325309 | Halaviati et al. | Jun 1994 | A |
5517432 | Chandra et al. | May 1996 | A |
5539680 | Palnitkar et al. | Jul 1996 | A |
5838949 | Hassoun | Nov 1998 | A |
5867399 | Rostoker et al. | Feb 1999 | A |
6408265 | Schultz et al. | Jun 2002 | B1 |
6434517 | Le | Aug 2002 | B1 |
6470482 | Rostoker et al. | Oct 2002 | B1 |
6687662 | McNamara et al. | Feb 2004 | B1 |
6754763 | Lin | Jun 2004 | B2 |
6810442 | Lin et al. | Oct 2004 | B1 |
7099812 | Boehm | Aug 2006 | B2 |
7124376 | Zaidi et al. | Oct 2006 | B2 |
7181473 | Lacouture et al. | Feb 2007 | B1 |
20020018066 | Vizer | Feb 2002 | A1 |
20020038401 | Zaidi et al. | Mar 2002 | A1 |
20030093252 | Frankel et al. | May 2003 | A1 |
20030122584 | Boehm | Jul 2003 | A1 |
20030125917 | Rich et al. | Jul 2003 | A1 |
20030144828 | Lin | Jul 2003 | A1 |
20040117167 | Neifert et al. | Jun 2004 | A1 |
20050144580 | Berkram et al. | Jun 2005 | A1 |
20060122817 | Baumgartner et al. | Jun 2006 | A1 |
20060161354 | Mandema et al. | Jul 2006 | A1 |
Number | Date | Country |
---|---|---|
2001142385 | May 2001 | JP |
Number | Date | Country | |
---|---|---|---|
20060136189 A1 | Jun 2006 | US |