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

Comparescan User Guide

Application Examples

Command Option Examples

The examples in this section demonstrate some of the common options that you can use with

Comparescan rules file commands. See “General Command Options” on page 61 and “Command Syntax and Options” on page 58 for more information on these options.

Specifying Start and End Times for Golden and Test Files

The following commands compare golden.trn and test.trn, starting at simulation time

300 and ending at 1000. The end time for the comparison is the minimum end time that is specified. The start time for the comparison is the maximum start time that is specified.

datafile1 golden.trn -start 300 -end 2000

datafile2 test.trn -start 200 -end 1000

Specifying Start and End Times for Comparison

The following rule compares signalA to signalB, beginning at simulation time 1000.

compare signalA signalB -start 1000

Note: Parameters that you specify in a compare command override any datafile1 or datafile2 specifications, such as those in the previous example.

The following rule compares signalA to signalB, ending at simulation time 100000.

compare signalA signalB -end 100000

Specifying a Time Shift

The following command tells Comparescan to shift test.trn –40 time units, relative to golden.trn, for all comparisons.

datafile1 golden.trn

datafile2 test.trn -shift -20

Specifying compare Command Tolerance Windows

Tolerance is the window of time during which a pair of signals can be determined to be equal. The -neg option specifies the amount of time before the golden event, and the -pos option specifies the amount of time after the golden event.

datafile2 test.trn -pos 10 -neg 20

December 2000

52

Product Version 1.9

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