- •Contents
- •Introducing Comparescan
- •Features
- •Applications
- •Organization of this Guide
- •Getting Started
- •Starting Comparescan
- •Specifying Input Files
- •Specifying Simulation Results Databases for Comparison
- •Specifying a Comparescan Rules File
- •Specifying a Comparescan Error Database for Viewing
- •Using Automatically Generated Files
- •Using the State File
- •Using the Preferences File
- •Using X Resources
- •Understanding Comparescan Exit Status Codes
- •Comparescan Tutorial
- •Accessing the Tutorial Source Files
- •Simulation Results Databases
- •Comparescan Rules Files
- •Generating a Comparescan Error Database
- •Viewing a Comparescan Error Database
- •Viewing Errors in Hierarchical Order
- •Viewing Errors in Signalscan Waves
- •Viewing Multiple Objects in Signalscan Waves
- •Viewing Errors in Time Order
- •Exiting Comparescan
- •Giving More Information in the Rules File
- •Reviewing the demo.rules Rules File
- •Using the demo.rules Rules File
- •Viewing Clocked Miscompares in Signalscan Waves
- •Comparescan Graphical User Interface
- •Comparescan Window
- •Menu Bar
- •File Menu
- •Tools Menu
- •View Menu
- •Window Menu
- •Button Bar
- •Application Examples
- •Making Absolute Comparisons
- •Specifying the Filename of an Object
- •Comparing Two Objects from the Same File
- •Comparing Two Objects on a Condition
- •Making Clocked Comparisons
- •Using One Clock and Two Simulation Files
- •Using One Clock and One Simulation File
- •Using Two Clocks and Two Simulation Files
- •Using Two Clocks and One Simulation File
- •Performing a Clock Compare with Timing Checks
- •Checking Stability
- •Specifying Objects in the Design Hierarchy
- •Command Option Examples
- •Specifying Start and End Times for Golden and Test Files
- •Specifying Start and End Times for Comparison
- •Specifying a Time Shift
- •Specifying compare Command Tolerance Windows
- •Special Syntax Examples
- •Commenting
- •Continuing Long Lines
- •Specifying Both a Golden and a Test File
- •Specifying Filenames Using UNIX Filename Syntax
- •Writing Comparescan Rules
- •Default Comparison Rules
- •Absolute and Clocked Comparisons
- •Rules File Parsing and Execution
- •Command Syntax and Options
- •General Command Syntax
- •Command Summary
- •General Command Options
- •datafile1
- •datafile2
- •compare
- •clkdef
- •clkcompare
- •stability
- •sequencetime
- •nosequencetime
- •statemapping
- •threshold
- •report
- •savedata
- •loaddata
- •translate
- •Frequently Asked Questions
- •Comparescan Input
- •Comparescan Output
- •How do I view a comparison report that I have generated?
- •Can I print a report of my errors?
- •Can I run the tool in batch mode?
- •Graphical User Interface (GUI)
- •How do I run the program without the user interface?
- •Why can’t Comparescan allocate colors?
- •How do I change the colors in the GUI?
- •Why can’t I read the text in the GUI?
- •Comparescan Features
- •How can I compare a digital simulation with an analog simulation?
- •How do I match an X value?
- •How do I compare only the top-level signals in my design?
- •How do I compare modules at different levels in the hierarchy?
- •What if I want a different tolerance window for every signal?
- •Comparescan Error Messages
- •What does “Out of Memory” mean?
- •What does “fork failed” mean?
- •Index
|
Comparescan User Guide |
|
Getting Started |
|
|
Table 2-1 Comparescan Command-Line Options, continued |
|
|
|
Option |
Description |
|
|
-r 1 |
Print a summary report to the standard output. A summary |
|
report consists of the first 10 errors, sorted by time, that are |
|
listed in the current error database. You must type a space |
|
character between the r and the 1. See “report” on page 91 for |
|
more information on using summary reports. |
-r 2 |
Print a full report to the standard output. A full report consists |
|
of all of the errors in the current error database. You must type a |
|
space character between the r and the 2. See “report” on |
|
page 91 for more information on using full reports. |
-run |
Run a comparison immediately upon startup. |
-save filename |
Save the binary error database into the file called filename |
|
at the end of the comparison. See “savedata” on page 92 for |
|
more information on saving error databases. |
-state filename |
Specify a state filename and location, overriding the default of |
|
~/.comparescan.state. |
-v[ersion] |
Display the Comparescan version number. |
|
|
Specifying Input Files
Comparescan operates on one of the following inputs:
■One simulation results database. (You can compare two objects from the same database.)
■Two simulation results databases.
■A Comparescan database of comparison mismatches.
Specifying Simulation Results Databases for Comparison
There are three ways to specify simulation results databases for comparison:
■Include the database filename on the command line. You must specify the golden file
first. If you use the -batch option described above, you must specify your database files on the command line. See “Generating a Comparescan Error Database” on page 18 for an example that uses comparescan -batch.
December 2000 |
12 |
Product Version 1.9 |
Comparescan User Guide
Getting Started
■Use the datafile1 and datafile2 commands in a rules file. You specify the name of the golden file with the datafile1 command. See ““Specifying a Comparescan Rules File” on page 13” and “Reviewing the demo.rules Rules File” on page 31 for more information and for examples of using the datafile commands.
■Use the Compare Options form. See “Compare Options Form” on page 40 for instructions on how to do this.
You can specify any supported simulator results files. If your database files are not in SST2 database format, then Comparescan converts them for you. For example, if you enter the following command:
% comparescan adder1.trn adder1-fast.dump
Your directory will contain the files adder1-fast.dsn and adder1-fast.trn after you run Comparescan.
See “translate” on page 94 for information on how Comparescan translates a database into SST2 format.
Important
If you specify simulation results files that are not in SST2 database format (.trn files), some information, such as port or connectivity information, may be lost.
Specifying a Comparescan Rules File
There are two ways to specify a Comparescan rules file:
■Include the name of your rules file on the command line. See “Generating a Comparescan Error Database” on page 18 for an example.
■Use the Compare Options form. See “Compare Options Form” on page 40 for instructions on how to do this.
If you do not specify a Comparescan rules file (see Chapter 6, “Writing Comparescan Rules” for instructions on creating rules files), Comparescan uses either the rules file that is specified in the state file, ~/.comparescan.state (from the last time you ran Comparescan) or a built-in default set of rules. (See “Default Comparison Rules” on page 56 for a listing of the default comparison rules.)
If your rules file specifies the two simulation results files that you want to compare, then you only need to specify the rules file on the command line, as follows:
% comparescan completecompare.rules
December 2000 |
13 |
Product Version 1.9 |