prbsCapture

prbsCapture - captures PRBS packets on a port.

SYNOPSIS

prbsCapture sub-command options

DESCRIPTION

The prbsCapture command is enabled on a per-port basis for capture of PRBS packets. Wide packet group must be enabled when using PRBS.

STANDARD OPTIONS
referencePacket

Hex representation of the current frameNumber's good packet data (default= 0)

receivedPacket

Hex representation of the current frameNumber's bad packet data (default= "")

numPackets

Total number of packets that are available in the PRBS capture buffer. (default= "")

timestamp

Packet arrival time. (default= 0)

COMMANDS

The prbsCapture command is invoked with the following sub-commands. If no sub-command is specified, returns a list of all sub-commands available.

prbsCapture cget option

Returns the current value of the configuration option given by option. Option may have any of the values accepted by the prbsCapture command.

prbsCapture config option value

Modify the configuration options of the port. If no option is specified, returns a list describing all of the available options (see STANDARD OPTIONS).

prbsCapture setDefault

Sets to IxTclHal default values for all configuration options.

prbsCapture get chasID cardID portID from to

Retrieves the captured PRBS data from the server.

prbsCapture getPacket packetNum

Brings into scope a particular frame out of all the retrieved captured PRBS data.

EXAMPLES

 

class TCLPrbsCapture

{

public:

 

TCLPrbsCapture();

virtual ~ TCLPrbsCapture();

 

VOID setDefault();

INT get(INT chassID, INT cardId, INT portId, INT from = 1, INT to = 1 );

INT getPacket( INT packetNum );

 

// read-only parameters

hexstring referencePacket;

hexstring receivedPacket;

int numPackets;

__int64 timestamp;

 

private:

Copy(???);

};

 

SEE ALSO

port (receiveMode >portRxPrbs) (isValidFeature > portFeaturePRBS)

autoDetectInstrumentation (enablePrbs)

packetGroupStats (prbsBitsReceived, prbsErroredBits, and prbsBerRatio)

portGroup (clearPrbsCapture, startPrbsCapture, stopPrbsCapture)

stat (prbsFramesReceived, prbsHeaderError, prbsBitsReceived, prbsErroredBits, and prbsBerRatio)