Page 1
2403 Walsh Avenue, Santa Clara, CA 95051-1302 Tel: +1/408.727.6600 Fax: +1/408.727.6622 IBTracer Verification Script Engine User Manual IBTracer VSE Manual Version 1.0 For IBTracer Software Version 2.2 or Higher 1 November, 2002...
A varification script file should have extension *.dec, and be located in the subfolder ..\Scripts\VFScripts of the main IBTracer 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.dec...
Page 5
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 set DecoderType = "<Your VScript name>"; # Should be set for all verification scripts set DecoderDesc = "<Your Verification Script description>"; # Optional ############################################################################################ ########## # include main Verification Script Engine definitions %include "VSTools.inc"...
Page 6
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 ###################################################################################### ProcessData() ###################################################################################### ###################################################################################### # It is a main script function called by the application when the next waited event # occured in the evaluated trace. # !!! REQUIRED !!! – MUST BE IMPLEMENTED IN VERIFICATION SCRIPT...
3. Interaction between IBTracer and verification script The following describes how IBTracer interacts with a verification script to test an open trace: 1. When a verification script is run, VSE looks for the function OnStartScript() and calls it if it is found.
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 4. Running verification scripts from IBTracer To run a verification script over a trace –run the command Report>Run verification scripts… from the menu or push the button shown below on the main toolbar ( if it is not hidden ):...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Verification Script description. Verification Script List. Descriptions for scripts are defined in Name for scripts are defined in set DecoderDesc= "MyDescription"; set DecoderType = "MyName"; Start running selected verification scripts...
Page 11
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Right-click in script list to open a pop-up menu with options for performing additional operations over selected scripts: – starts running selected script. Run verification script Page 11 of 35...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 – allows you to edit selected scripts using whatever editor application has been Edit script specified in ‘Editor settings’. – creates a new script file using the template specified in ‘Editor settings’.
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Trace event-independent set of members. This set of members is defined and can be used for any event passed to script: - time of the event( type : list, having format : 2 sec 125 ns -> [2 , 125]) in.Time...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 - current link state(Opcode) in.LinkStateCurr 6. Verification Script Engine Output Context members All verification scripts have output contexts –special structures whose members are set by the script and can be used inside of the application ( For more details about output contexts – please refer to the CATC Script Language(CSL) Manual ).
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Skips _PKT_SKIPS Notification events. VSE defines a group of notification events that can be passed to a verification script for evaluation or for retrieving and displaying some contained information. The information about the type of event can be seen in in.TraceEvent.
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 SendEvent () This function specifies what kind of events should be sent to script. Format : SendEvent( event ) Parameters: event – This parameter can be combination of the following values:...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 SendLinkPkt () This function specifies more precise tuning for sending link packets. Format : SendLinkPkt( opcode = _ALL, vl = _ALL ) Parameters: opcode – This parameter specifies that only link packets with this Opcode will be sent ( _ALL –...
Page 18
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 shown in CATC trace) and value equal to field_value will be sent ( This field makes sense only if one of the previous parameters are not equal to _ALL ) field_value –...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 9. Timer functions This group of functions covers VSE capability to work with timers -an internal routines that repeatedly measures a timing intervals between different events. VSE time object A VSE time object –...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 timer_id – a unique timer identifier. Example: KillTimer(); # - stop timing for timer with id = 0; KillTimer(23); # - stop timing for timer with id = 23;...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Parameters: nanoseconds – number of nanoseconds in specified time seconds – number of seconds in specified time Example: Time ( 50 * 1000 ); # - create time object of 50 microseconds Time (3, 100);...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Parameters: time_1 - VSE time object presenting first time interval time_2 - VSE time object presenting second time interval Example: t1 = Time(100); t2 = Time(2, 200); t3 = AddTime( t1, t2 ) # - returns VSE time object = 2 sec 300 ns.
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 11.4 DivTimeByInt() Divides VSE time object by integer value Format : DivTimeByInt (time, div) Return values: Returns VSE time object presenting time interval equal to time / div Parameters:...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 If( IsEqualTime( t1, t2 ) ) DoSomething(); 12.2 IsLessTime() Verifies that one VSE time object is less than the other VSE time object Format : IsLessTime (time1, time2) Return values:...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Time text functions This group of functions covers VSE capability to convert VSE time objects into text strings. 13.1 TimeToText() Converts a VSE time object into text. Format :...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 14.2 EnableOutput() Enables showing information in the output window. Format : EnableOutput () Example: EnableOutput ( ); 14.3 DisableOutput() Disables showing information in the output window. Format : DisableOutput () Example: DisableOutput ();...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Before calling this function - in.Payload and in.PayloadLength are empty but some other retrieving functions can be used to receive all information about fields in link packets, packet headers and MAD decoded fields.
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 16.2 GetBTHField() Extracts information about BTH header field Format : GetBTHField ( bth_fld ) Parameters: bth_fld - BTH field identifier that can be one of the following values: Identifier...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 16.6 GetAtomicETHField() Extracts information about AtomicETH header field Format : GetAtomicETHField ( aeth_fld ) Parameters: aeth_fld - AtomicETH field identifier that can be one of the following values: Identifier...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 16.8 GetRDETHField() Extracts information about AtomicAckETH header field Format : GetRDETHField ( rdeth_fld ) Parameters: rdeth_fld - RDETH field identifier that can be one of the following values: Identifier...
MAD decoded fields retrieving functions This group of functions covers VSE capability to extract information about MAD decoded fields. 17.1 GetDecodedMADField() Extracts information about MAD decoded field how it is shown in IBTracer trace view or “View MAD” dialog. Format :...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 str = GetDecodedMADField ( “PortState” ); # extract the decoded value of PortState # field. Remark: The name of field should be exactly the same as it seen in the trace ( case included ) 17.2 GetHexMADField()
NOTE : Some other useful miscellaneous functions can be found in the file : VSTools.inc The VSE important script files The VSE working files are located in ..\Scripts\VFScripts subfolder of the main IBTracer folder. The current version of VSE includes following files: File Description VSTools.inc...
Computer Access Technology Corporation IBTracer Verification Script Engine Manual, version 1.0 Appendix A How to Contact CATC TYPE OF SERVICE CONTRACT Call for technical support… US and Canada: 1 (800) 909-2282 Worldwide: 1 (408) 727-6600 Fax your questions… Worldwide: 1 (408) 727-6622 Write a letter …...