Chapter 2: verification script structure, Chapter 2, Verification script structure – Teledyne LeCroy SAS_SATA Protocol Suite Verification Script Engine Reference Manual User Manual

Page 7

Advertising
background image


7

Chapter 2: Verification Script Structure

Writing a verification script is easy, as long as you follow a few rules and have some
understanding of how the SASSuite/SATASuite application interacts with running scripts.

The main script file, which contains the text of the verification script, should have extension
.sasvs and be in the subfolder SASVFScripts of the main SASSuite/SATASuite folder. Some
other files might be included in the main script file using directive %include.
(See the CATC Scripting Language Reference Manual for details.)

The following schema presents a common structure of a verification script. This script is similar
to the content of the script template VSTemplate.sasv_ included with VSE:

#
#
# VS1.sasvs
#
# Verification script
#
# Brief Description:
# Performs specific verification
#
######################################################################################
# Module info
######################################################################################
# Filling of this block is necessary for proper verification script operation.
######################################################################################
set ModuleType = "Verification Script"; # Should be set for all verification scripts.
set OutputType = "VS"; # Should be set for all verification scripts
# that output only Report string and Result.
set InputType = "VS";

set DecoderDesc = "<Your Verification Script description>"; # Optional

######################################################################################
# include main Verification Script Engine definitions
#
%include "VSTools.inc"

# Should be set for all verification scripts.


######################################################################################
# Global Variables and Constants
######################################################################################
# Define your verification script-specific global variables and constant
# in this section.
# (Optional)

#
const MY_GLOBAL_CONSTANT = 10;
set g_MyGlobalVariable = 0;

######################################################################################

######################################################################################
# OnStartScript()
######################################################################################
#
# It is a main intialization routine for setting up all necessary
# script parameters before running the script.
#
######################################################################################






Advertising