layer1_adv module
The layer1_adv module offers high-level functions for advanced Layer 1 configurations and operations.
|
Get the current Tx frequency in Hz of the specified port. |
|
Get the current Rx frequency in Hz of the specified port. |
|
Get the minimum Rx frequency in Hz since last query. |
|
Get the maximum Rx frequency in Hz since last query. |
|
Get the current, minimum, and maximum Rx frequencies in Hz of the specified port. |
|
Get the current and latched CDR LOL status of the specified Serdes. |
|
Get Rx relative skew measured in bits of the specified PCS lanes. |
|
Get the current and latched HI-BER status of the specified port. |
|
Get the current and latched HI-SER status of the specified port. |
|
Get the current and latched Degraded SER status of the specified port. |
|
Configure signaling Degraded SER thresholds of the port. |
|
Get signaling Degraded SER thresholds of the port. |
|
Get the number of erroneous 64b/66b codewords since the previous query per port. |
|
Get the number of invalid 256b/257b transcode blocks since the previous query per port. |
|
Get the number of cumulated Loss of Alignment (LOA) events since the previous query per port. |
Get the number of cumulated link sync loss events since the previous query per port. |
|
Get the number of cumulated local fault conditions since the previous query per port. |
|
Get the number of cumulated remote fault conditions since the previous query per port. |
Module Contents
The Advanced Layer 1 functions
- async get_tx_freq_curr(port)[source]
Get the current Tx frequency in Hz of the specified port.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
The current Tx frequency in Hz.
- Return type:
- async get_rx_freq_curr(port)[source]
Get the current Rx frequency in Hz of the specified port.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
The current Rx frequency in Hz.
- Return type:
- async get_rx_freq_min(port)[source]
Get the minimum Rx frequency in Hz since last query.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
The minimum Rx frequency in Hz since last query.
- Return type:
- async get_rx_freq_max(port)[source]
Get the maximum Rx frequency in Hz since last query.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
The maximum Rx frequency in Hz since last query.
- Return type:
- async get_rx_freq_all(port)[source]
Get the current, minimum, and maximum Rx frequencies in Hz of the specified port.
The minimum and maximum values are since last query.
- async get_cdr_lol_since_last(port, serdes_indices)[source]
Get the current and latched CDR LOL status of the specified Serdes.
- async get_rx_lane_skew(port, lane_indices)[source]
Get Rx relative skew measured in bits of the specified PCS lanes.
- async get_hi_ser(port)[source]
Get the current and latched HI-SER status of the specified port.
HI-SER is signalled if 5560 RS-FEC symbol errors are detected in contiguous block of 8192 non-overlapping RS-FEC codewords.
- async get_deg_ser(port)[source]
Get the current and latched Degraded SER status of the specified port.
The thresholds for signaling Degraded SER is programmable using
set_deg_ser_thresholds().
- async set_deg_ser_thresholds(port, activate_threshold, deactivate_threshold, interval)[source]
Configure signaling Degraded SER thresholds of the port.
If more than activate_threshold number of RS-FEC symbol errors are detected in a contiguous block of interval RS-FEC codewords, Degraded SER is signalled on the port.
If less than deactivate_threshold number of RS-FEC symbol errors are detected in a contiguous block of interval RS-FEC codewords, Degraded SER is no longer signalled on the port.
interval must be an even number and a multiple of the number of PCS flows:
100G: 2 (one flow, but must be even)
200G/400G: 2 (two flows)
800G/1.6T: 4 (four flows)
An uncorrectable codeword is counted as 16 erroneous RS-FEC symbols.
- async get_cw_err_since_last(port)[source]
Get the number of erroneous 64b/66b codewords since the previous query per port.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
Number of erroneous 64b/66b codewords since the previous query per port.
- Return type:
- async get_itb_since_last(port)[source]
Get the number of invalid 256b/257b transcode blocks since the previous query per port.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
Number of invalid 256b/257b transcode blocks since the previous query per port.
- Return type:
- async get_link_sync_loss_since_last(port)[source]
Get the number of cumulated link sync loss events since the previous query per port.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
Number of cumulated link sync loss events since the previous query per port.
- Return type:
- async get_local_fault_since_last(port)[source]
Get the number of cumulated local fault conditions since the previous query per port.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
Number of cumulated local fault conditions since the previous query per port.
- Return type:
- async get_remote_fault_since_last(port)[source]
Get the number of cumulated remote fault conditions since the previous query per port.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
Number of cumulated remote fault conditions since the previous query per port.
- Return type:
- async get_total_loa_since_last(port)[source]
Get the number of cumulated Loss of Alignment (LOA) events since the previous query per port.
- Parameters:
port (
Z800FreyaPort) – The port instance.- Returns:
Number of cumulated Loss of Alignment (LOA) events since the previous query per port.
- Return type: