beautypg.com

2 verification script structure – Teledyne LeCroy SierraFC Verification Script Engine Reference Manual User Manual

Page 7

background image

Verification Script Engine Reference Manual

2

2 Verification Script Structure

Writing verification scripts is easy so long as you follow a few rules and have some

understanding of how SierraFC Protocol Suite application interacts with running scripts.

The main script file that contains the text of the varification script should have extension .vse,

and be located in the subfolder ..\Scripts\VFScripts of the main SierraFC Protocol Suite folder. Some
other files might be included in the main script file using directive %include. (see CATC Script
Language (CSL) manual for details).


The following schema can present the common structure of verification script:

#
#
# VS1.vse
#
# Verification script
#
# Brief Description:
# Verify something…
#


############################################################################################
# Module info
#
############################################################################################
# Filling of this block is necessary for proper verification script operation...
#
############################################################################################

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;


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