Tile updates for TPM_1_6

Overview

This is the class which contains methods for monitoring and control of TPM hardware boards.

Note

tile_1_6.py inherits all of the methods from tile.py and adds or overloads methods to make it compatible with the updated TPM 1.6 version.

Python Class & Methods Index

Hardware functions for the TPM 1.6 hardware.

class pyaavs.tile_1_6.Tile_1_6(ip='10.0.10.2', port=10000, lmc_ip='10.0.10.1', lmc_port=4660, sampling_rate=800000000.0, logger=None)[source]

Tile hardware interface library. Methods specific for TPM 1.6.

connect(initialise=False, load_plugin=True, enable_ada=False, enable_adc=True, dsp_core=True, adc_mono_channel_14_bit=False, adc_mono_channel_sel=0)[source]

Connect to the hardware and loads initial configuration.

Parameters:
  • initialise (bool) – Initialises the TPM object

  • load_plugin (bool) – loads software plugins

  • enable_ada (bool) – Enable ADC amplifier (usually not present)

  • enable_adc (bool) – Enable ADC

  • dsp_core (bool) – Enable loading of DSP core plugins

  • adc_mono_channel_14_bit (bool) – Enable ADC mono channel 14bit mode

  • adc_mono_channel_sel (int) – Select channel in mono channel mode (0=A, 1=B)

f2f_aurora_test_check()[source]

Get test results for Aurora f2f link Tests printed on stdout.

f2f_aurora_test_start()[source]

Start test on Aurora f2f link.

f2f_aurora_test_stop()[source]

Stop test on Aurora f2f link.

initialise(station_id=0, tile_id=0, lmc_use_40g=False, lmc_dst_ip=None, lmc_dst_port=4660, lmc_integrated_use_40g=False, src_ip_fpga1=None, src_ip_fpga2=None, dst_ip_fpga1=None, dst_ip_fpga2=None, src_port=4661, dst_port=4660, dst_port_single_port_mode=4662, rx_port_single_port_mode=4662, netmask_40g=None, gateway_ip_40g=None, active_40g_ports_setting='port1-only', enable_adc=True, enable_ada=False, enable_test=False, use_internal_pps=False, pps_delay=0, time_delays=0, is_first_tile=False, is_last_tile=False, qsfp_detection='auto', adc_mono_channel_14_bit=False, adc_mono_channel_sel=0)[source]

Connect and initialise.

Parameters:
  • enable_ada (bool) – enable adc amplifier, Not present in most TPM versions

  • enable_test (bool) – setup internal test signal generator instead of ADC

  • enable_adc (bool) – Enable ADC

  • use_internal_pps (bool) – use internal PPS generator synchronised across FPGAs

  • qsfp_detection (str) – “auto” detects QSFP cables automatically, “qsfp1”, force QSFP1 cable detected, QSFP2 cable not detected “qsfp2”, force QSFP1 cable not detected, QSFP2 cable detected “all”, force QSFP1 and QSFP2 cable detected “none”, force no cable not detected

  • adc_mono_channel_14_bit (bool) – Enable ADC mono channel 14bit mode

  • adc_mono_channel_sel (int) – Select channel in mono channel mode (0=A, 1=B)

is_qsfp_module_plugged(qsfp_id=0)[source]

Initialise firmware components.

Returns:

True when cable is detected

tpm_version()[source]

Determine whether this is a TPM V1.2 or TPM V1.6 :return: TPM hardware version :rtype: string

pyaavs.tile_1_6.connected(f)[source]

Helper to disallow certain function calls on unconnected tiles.

Parameters:

f (callable) – the method wrapped by this helper

Returns:

the wrapped method

Return type:

callable