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

Comparescan User Guide

Application Examples

The following command specifies both the negative and positive tolerances as 10. The -tol option is a shortcut for specifying both the positive and negative tolerances.

datafile2 test.trn -tol 10

Special Syntax Examples

The examples in this section demonstrate Comparescan rule syntax. For more detail, see Chapter 6, “Writing Comparescan Rules.”

Commenting

Use a pound character (#) or two forward slashes (//) at the beginning of a comment.

# Comment to the end of the line. // Comment to the end of the line.

datafile1 golden.trn # Comment to the end of the line. datafile2 test.trn // Comment to the end of the line.

Continuing Long Lines

Use a backslash character (\) at the end of a line to continue that line on the next line.

compare top.module1.module2.module25.signalA \

top.module1.module4.module25.signalZ \

-neg 10 -pos 20

Note: The backslash must be the last character on a continued line.

Specifying Both a Golden and a Test File

The file that is specified as datafile1 is treated as the golden file, and the file that is specified as datafile2 is treated as the secondary file.

datafile1 file1.trn

datafile2 file2.trn

Specifying Filenames Using UNIX Filename Syntax

You can specify filenames in a rules file, on the comparescan command line, or on the

Compare Options form. The ../.. and ~ path specifiers are supported, as shown in the following examples:

December 2000

53

Product Version 1.9

Comparescan User Guide

Application Examples

datafile1 ../../file1.trn -start 200 -end 2000 datafile1 /tmp/file2.trn -start 200 -end 2000 datafile1 ~/sim/file2.trn -start 200 -end 2000 datafile1 ~bobh/../sim/file2.trn -start 200 -end 2000

Options Can Be Specified in Any Order

The following commands are equivalent:

datafile1 golden.trn -start 200 -end 2000

datafile1 golden.trn -end 2000 -start 200

December 2000

54

Product Version 1.9

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