Self-checking simulations using dynamic data loading
AssigneeSun Microsystems, Inc.
InventorsNasser Nouri, Victor A. Chang
Life of this patent
Estimating the term…
Abstract
A system for evaluating a simulation includes a reference simulator configured to execute a simulation image to obtain golden data, a test simulator configured to execute the simulation image to obtain test data, and a comparator configured to generate a comparison result by comparing a portion of the golden data to a portion of the test data before the execution of the simulation image on the test simulator has completed.
Claims18
A system for evaluating simulators using a circuit design comprising:
- a processor;
- a reference simulator configured to generate golden data by executing a first simulation image using the processor, wherein the first simulation image is compiled from a first implementation of the circuit design;
- a test simulator configured to generate test data by executing a second simulation image, wherein the second simulation image is compiled from a second implementation of the circuit design;
- and
- a comparator configured to select a portion of the test data, use a mapping rule of a plurality of mapping rules to identify a portion of the golden data associated with the portion of the test data, and generate a comparison result by comparing the portion of the golden data to the portion of the test data before the execution of the second simulation image on the test simulator has completed,
- wherein the plurality of mapping rules map an internal hierarchy of the first implementation to an internal hierarchy of the second implementation,
- wherein the comparison result is used to debug the test simulator by correcting and displaying an error detected in the comparison result, and
- wherein the reference simulator executes the first simulation image in lockstep with execution of the second simulation image.
A method of evaluating a test simulator using a circuit design comprising:
- executing a first simulation image on a reference simulator to obtain golden data, wherein the first simulation image is obtained by compiling a first implementation of the circuit design;
- executing a second simulation image on the test simulator to obtain test data, wherein the second simulation image is obtained by compiling a second implementation of the circuit design;
- selecting a portion of the test data;
- using a mapping rule of a plurality of mapping rules to identify a portion of the golden data associated with the portion of the test data;
- comparing the portion of the golden data to the portion of the test data to obtain a comparison result,
- wherein the plurality of mapping rules map an internal hierarchy of the first implementation to an internal hierarchy of the second implementation;
- and
- debugging the test simulator by correcting and displaying an error detected in the comparison result,
- wherein executing the first simulation image on the reference simulator is performed in lockstep with executing the second simulation image.
A computer system for evaluating a test simulator using a circuit design comprising:
- a processor;
- a memory;
- a storage device;
- and
- software instructions stored in the memory for enabling the computer system to:
- execute a first simulation image on a reference simulator to obtain golden data, wherein the first simulation image is obtained by compiling a first implementation of the circuit design;
- execute a second simulation image on the test simulator to obtain test data, wherein the second simulation image is obtained by compiling a second implementation of the circuit design;
- select a portion of the test data;
- use a mapping rule of a plurality of mapping rules to identify a portion of the golden data associated with the portion of the test data;
- compare the portion of the golden data to the portion of the test data to obtain a comparison result,
- wherein the plurality of mapping rules map an internal hierarchy of the first implementation to an internal hierarchy of the second implementation;
- and
- debug the test simulator by correcting and displaying an error detected in the comparison result,
- wherein the reference simulator executes the first simulation image in lockstep with execution of the second simulation image.
Dependencies are inferred from the claim text.