Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
dsd1-10 / dsd-07=Verilog / comparescan.pdf
Скачиваний:
78
Добавлен:
05.06.2015
Размер:
760.57 Кб
Скачать

Comparescan User Guide

Product Version 1.9

December 2000

© 1996-2000 Cadence Design Systems, Inc. All rights reserved. Printed in the United States of America.

Cadence Design Systems, Inc., 555 River Oaks Parkway, San Jose, CA 95134, USA

Trademarks: Trademarks and service marks of Cadence Design Systems, Inc. (Cadence) contained in this document are attributed to Cadence with the appropriate symbol. For queries regarding Cadence’s trademarks, contact the corporate legal department at the address shown above or call 1-800-862-4522.

All other trademarks are the property of their respective holders.

Restricted Print Permission: This publication is protected by copyright and any unauthorized use of this publication may violate copyright, trademark, and other laws. Except as specified in this permission statement, this publication may not be copied, reproduced, modified, published, uploaded, posted, transmitted, or distributed in any way, without prior written permission from Cadence. This statement grants you permission to print one (1) hard copy of this publication subject to the following conditions:

1.The publication may be used solely for personal, informational, and noncommercial purposes;

2.The publication may not be modified in any way;

3.Any copy of the publication or portion thereof must include all original copyright, trademark, and other proprietary notices and this permission statement; and

4.Cadence reserves the right to revoke this authorization at any time, and any such use shall be discontinued immediately upon written notice from Cadence.

Disclaimer: Information in this publication is subject to change without notice and does not represent a commitment on the part of Cadence. The information contained herein is the proprietary and confidential information of Cadence or its licensors, and is supplied subject to, and may be used only by Cadence’s customer in accordance with, a written agreement between Cadence and its customer. Except as may be explicitly set forth in such agreement, Cadence does not make, and expressly disclaims, any representations or warranties as to the completeness, accuracy or usefulness of the information contained in this document. Cadence does not warrant that use of such information will not infringe any third party rights, nor does Cadence assume any liability for damages or costs of any kind that may result from use of such information.

Restricted Rights: Use, duplication, or disclosure by the Government is subject to restrictions as set forth in FAR52.227-14 and DFAR252.227-7013 et seq. or its successor.

Comparescan User Guide

Contents

1

 

Introducing Comparescan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. 7

Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. 8

Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

8

Organization of this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9

2

 

Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

10

Starting Comparescan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

11

Specifying Input Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12

Specifying Simulation Results Databases for Comparison . . . . . . . . . . . . . . . . . . . .

12

Specifying a Comparescan Rules File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

13

Specifying a Comparescan Error Database for Viewing . . . . . . . . . . . . . . . . . . . . . .

14

Using Automatically Generated Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

14

Using the State File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

Using the Preferences File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

Using X Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

Understanding Comparescan Exit Status Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

16

3

 

Comparescan Tutorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

17

Accessing the Tutorial Source Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

18

Simulation Results Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

18

Comparescan Rules Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

18

Generating a Comparescan Error Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

18

Viewing a Comparescan Error Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

19

Viewing Errors in Hierarchical Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

21

Viewing Errors in Signalscan Waves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

23

Viewing Multiple Objects in Signalscan Waves . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

26

Viewing Errors in Time Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

29

December 2000

3

Product Version 1.9

Comparescan User Guide

Exiting Comparescan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

31

Giving More Information in the Rules File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

31

Reviewing the demo.rules Rules File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

31

Using the demo.rules Rules File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

32

Viewing Clocked Miscompares in Signalscan Waves . . . . . . . . . . . . . . . . . . . . . . . . .

34

4

 

Comparescan Graphical User Interface . . . . . . . . . . . . . . . . . . . . . . .

36

Comparescan Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

37

Menu Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

38

File Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

38

Tools Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39

View Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

42

Window Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

43

Button Bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

44

5

 

Application Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

46

Making Absolute Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

47

Specifying the Filename of an Object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

47

Comparing Two Objects from the Same File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

Comparing Two Objects on a Condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

Creating Clock Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

48

Making Clocked Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

49

Using One Clock and Two Simulation Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

49

Using One Clock and One Simulation File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

49

Using Two Clocks and Two Simulation Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

50

Using Two Clocks and One Simulation File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

50

Performing a Clock Compare with Timing Checks . . . . . . . . . . . . . . . . . . . . . . . . . . .

50

Checking Stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

51

Specifying Objects in the Design Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

51

Command Option Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

52

Specifying Start and End Times for Golden and Test Files . . . . . . . . . . . . . . . . . . . .

52

Specifying Start and End Times for Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . .

52

Specifying a Time Shift . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

52

December 2000

4

Product Version 1.9

Comparescan User Guide

Specifying compare Command Tolerance Windows . . . . . . . . . . . . . . . . . . . . . . . . .

52

Special Syntax Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

53

Commenting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

53

Continuing Long Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

53

Specifying Both a Golden and a Test File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

53

Specifying Filenames Using UNIX Filename Syntax . . . . . . . . . . . . . . . . . . . . . . . . .

53

Options Can Be Specified in Any Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

54

6

 

Writing Comparescan Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

55

Default Comparison Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

56

Absolute and Clocked Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

56

Rules File Parsing and Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

57

Command Syntax and Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

58

General Command Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

58

Command Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

59

General Command Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

61

datafile1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

65

datafile2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

66

compare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

67

clkdef . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

77

clkcompare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

78

stability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

84

sequencetime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

85

nosequencetime . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

85

statemapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

86

threshold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

89

report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

91

savedata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

92

loaddata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

93

translate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

94

December 2000

5

Product Version 1.9

Comparescan User Guide

 

A

 

Frequently Asked Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. 97

Comparescan Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

98

Can I compare VCD files? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

98

Is it better to use SST2 files in Comparescan? . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

98

Can I translate a VCD file to an SST2 database file? . . . . . . . . . . . . . . . . . . . . . . . .

98

Can I compare a VCD file with a file in some other format? . . . . . . . . . . . . . . . . . . . .

98

Comparescan Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

98

How do I view a comparison report that I have generated? . . . . . . . . . . . . . . . . . . . .

98

Can I print a report of my errors? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

99

Can I run the tool in batch mode? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

99

Graphical User Interface (GUI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

99

How do I run the program without the user interface? . . . . . . . . . . . . . . . . . . . . . . . .

99

Why can’t Comparescan allocate colors? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

99

How do I change the colors in the GUI? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

100

Why can’t I read the text in the GUI? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

100

I just changed my .Xdefaults file. Why has nothing happened? . . . . . . . . . . . . . . . .

100

Comparescan Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

101

How can I compare a digital simulation with an analog simulation? . . . . . . . . . . . . .

101

How do I match an X value? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

101

How do I compare only the top-level signals in my design? . . . . . . . . . . . . . . . . . . .

101

How do I compare modules at different levels in the hierarchy? . . . . . . . . . . . . . . .

101

What if I want a different tolerance window for every signal? . . . . . . . . . . . . . . . . . .

101

I specified times in the rules file. What are the default units? . . . . . . . . . . . . . . . . . .

102

Comparescan Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

102

What does “Out of Memory” mean? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

102

What does “fork failed” mean? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

102

How do I find out how big my processes are? . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

103

How do I find out how much memory my machine has? . . . . . . . . . . . . . . . . . . . . .

103

Index..............................................................................................................................

104

December 2000

6

Product Version 1.9

Соседние файлы в папке dsd-07=Verilog