SlimLinkComponentManager Class

Bases: CbfComponentManager

A component manager for a SLIM link, which is made up of a Tx and Rx device from the ds-slim-tx-rx HPS device server.

The name of the HPS tx device that the link is associated with.

Returns:

the tx device name.

Return type:

str

The name of the HPS rx device that the link is associated with.

Returns:

the rx device name.

Return type:

str

The name of the SLIM link.

Returns:

the link name.

Return type:

str

The idle control word set in the tx device. Initially generated in the HPS by hashing the tx device’s FQDN.

Returns:

the tx idle control word.

Raises:

Tango exception – if the tx device is not set.

Return type:

int

The last idle control word received in the datastream by the HPS rx device.

Returns:

the rx idle control word.

Raises:

Tango exception – if the rx device is not set.

Return type:

int

The bit-error rate in 66b-word-errors per second.

Returns:

The bit error rate.

Raises:

Tango exception – if the rx device is not set.

Return type:

float

Get the simulation mode.

An array holding the counter values from the HPS tx and rx devices in the order: [0] rx_word_count [1] rx_packet_count [2] rx_idle_word_count [3] rx_idle_error_count [4] rx_block_lost_count [5] rx_cdr_lost_count [6] tx_word_count [7] tx_packet_count [8] tx_idle_word_count

Returns:

The read_counters array.

Raises:

Tango exception – if link is not enabled.

Return type:

list[int]

Establish communication with the component, then start monitoring.

Stop communication with the component.

Link the HPS tx and rx devices by synchronizing their idle control words and disabling serial loopback. Begin monitoring the Tx and Rx.

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(ResultCode, str)

Performs a health check on the SLIM link. No check is done if the link is not active; instead, the health state is set to UNKNOWN.

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(ResultCode, str)

Stops controlling and monitoring the HPS tx and rx devices. The link becomes inactive. Serial loopback is re-established.

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(ResultCode, str)

Clears the HPS tx and rx device’s read counters.

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.

Return type:

(ResultCode, str)