Detector Interface Frontend (DIF)

API

cmd_dif.set_mode_bit_dif(dif_id, bit, value)[source]

set a specific bit in the mode register of a dif

cmd_dif.set_sort_readout_dif(dif_id, active)[source]

(des)activate the readout sorting of a dif

cmd_dif.set_pwrpls_dif(dif_id, active)[source]

(des)activate the power pulsing alimentation of a dif

cmd_dif.set_alim_mode_dif(dif_id, alim_mode)[source]

Set the alimentation mode of dif: CC for continuous current, PP for power pulsing

cmd_dif.set_dif_mode_dif(dif_id, mode)[source]

set the running mode of the dif: BT for beam test mode, BTBCLK for beam test beam clock mode, BCLK for beam clock mode or ILC

cmd_dif.send_fc_dif(dif_id, fcnum)[source]

send a fast command to a dif

cmd_dif.send_btcmd_dif(dif_id, cmd, param)[source]

send a block transfer command the a dif

cmd_dif.init_dif(dif_id, parent, gdcc_port, dcc_nibble, ref, cnh, bxpn_thresh, plane_thresh, min_energy, spill_period, bx_period, mapping_filename, plan, offset_x, offset_y, offset_z, simul)[source]

initialize a dif

cmd_dif.start_converter_dif(dif_id)[source]

Start converters for dif_id

cmd_dif.init_fin_dif(dif_id)[source]

Finalize initialization after processing of ASU and DIFs

cmd_dif.deinit_dif(dif_id)[source]

deinitialize dif

cmd_dif.config_dif(dif_id, mode, alim)[source]

configure the dif

cmd_dif.config_fin_dif(dif_id)[source]

Finalize configuration of dif

cmd_dif.validate_dif(dif_id)[source]

validate the configuration after any reconfiguration

cmd_dif.inval_dif(dif_id)[source]

invalidate the dif configuration

cmd_dif.read_borb_dif(dif_id, borbid)[source]

read and display the borb register of a dif

cmd_dif.read_status_dif(dif_id)[source]

read and display the status register of a dif

cmd_dif.read_BTCstatus_dif(dif_id)[source]

read and display the BTCstatus register of a dif to know if a block transfer command is finished or not

cmd_dif.read_mode_dif(dif_id)[source]

read and display the mode register of a dif

cmd_dif.set_difid_dif(dif_id)[source]

set the difid in the mode register of a dif

cmd_dif.synchro_dif(dif_id)[source]

set a dif in synchronisation mode: waiting for a trigger impulsion

cmd_dif.enable_ram1_dif(dif_id)[source]

enable the ram for external writing

cmd_dif.disable_ram1_dif(dif_id)[source]

disable the ram for external writing

cmd_dif.read_ram1_dif(dif_id)[source]

read the content of the ram of a dif

cmd_dif.load_ram1_byfile_dif(dif_id, filename)[source]

load a file in the ram of a dif

cmd_dif.set_rgen_dif(dif_id, delay, pktnb, pktsize)[source]

set the random generator of a dif

cmd_dif.stop_rgen_dif(dif_id)[source]

stop the random generator of a dif

cmd_dif.set_SC_selectbit_dif(dif_id, value)[source]

set the slow control select bit of all rocs on a dif

cmd_dif.set_roc_bitchain_dif(dif_id, chainid)[source]

select the roc chainid: slow control or probe for loading

cmd_dif.load_probe_dif(dif_id)[source]

load the rocs probe from the ram of a dif

cmd_dif.reset_rocs_sc_dif(dif_id)[source]

reset the roc slow control of every rocs of a dif

cmd_dif.reset_rocs_probe_dif(dif_id)[source]

reset the probes of every rocs of a dif

cmd_dif.reset_rocs_dif(dif_id)[source]

reset every rocs of a dif

cmd_dif.send_rocconfig_dif(dif_id)[source]

send the configuration to every roc of a dif

cmd_dif.save_rocconfig_dif(dif_id, filename)[source]

save in a file the configuration of all the rocs of a dif

cmd_dif.reset_dif(dif_id)[source]

reset a dif

cmd_dif.acq_start_int_dif(dif_id)[source]

start the acquisition on a dif with a fast command

cmd_dif.acq_start_ext_dif(dif_id)[source]

start the external acquisition on a dif with a fast command

cmd_dif.acq_stop_dif(dif_id)[source]

stop the acquisition on a dif with a fast command

cmd_dif.ro_stop_dif(dif_id)[source]

Force stop of data read-out (FIFO not flushed)

cmd_dif.ro_cont_dif(dif_id)[source]

Continue data read-out