beautypg.com

Valid ranges block – Teledyne LeCroy User-Defined Decoding (UDD) Advanced Script Language (ASL) Reference Manual User Manual

Page 13

background image

10

Valid Ranges Block

ValidRanges

fieldId 1 = ( Value1 , Value2 );

fieldId 2 = ( Value1 , Value2 );

...

EndValidRanges

Remark

This statement specifies valid range of data that can be in a field. In run time, if data that is set in
specified field is not in given range, a protocol error generates in packet.

Parameters

Value1 is lower range for data of the field with specified fieldId.

Value2 is upper range for data of the field with specified fieldId.


Example

/*F4, F1, BlockID are fields.*/

ValidRanges

F4=(0x00, 0xAA);
BlockID = (0,32);
F1=(0b00001,0b0101010);

EndValidRanges