calix.spiking.synapse_driver

Provides a calibration class for the synapse driver STP offset for the usual spiking mode.

Classes

STPCalibOptions()

Set bias parameters for the STP circuitry.

STPCalibResult(target, options, offsets)

Result from STP calibration.

STPCalibTarget()

Target for STP calibration.

STPMultiplication(synram, *, num_sends, …)

Perform vector-matrix multiplications, but without hagen-mode pulse length encoding.

STPOffsetCalib(v_stp, numpy.ndarray] = 180, …)

Calibrate synapse driver STP ramp offsets for usage in spiking mode.

Functions

calix.spiking.synapse_driver.calibrate(connection: pyhxcomm_vx.ConnectionHandle, *, target: Optional[calix.spiking.synapse_driver.STPCalibTarget] = None, options: Optional[calix.spiking.synapse_driver.STPCalibOptions] = None)calix.spiking.synapse_driver.STPCalibResult

Calibrate all synapse drivers’ STP offsets.

The STP ramp current is set as provided in the options. The other STP voltages, as given in the options, are configured after calibration.

Requirements: * CADCs and Synapse DAC biases are calibrated.

Parameters
  • connection – Connection to the chip to calibrate.

  • target – Target parameters for calibration.

  • options – Further options for calibration, including STP voltages.

Returns

STP calib result.

calix.spiking.synapse_driver.dataclass(cls=None, /, *, init=True, repr=True, eq=True, order=False, unsafe_hash=False, frozen=False)

Returns the same class as was passed in, with dunder methods added based on the fields defined in the class.

Examines PEP 526 __annotations__ to determine fields.

If init is true, an __init__() method is added to the class. If repr is true, a __repr__() method is added. If order is true, rich comparison dunder methods are added. If unsafe_hash is true, a __hash__() method function is added. If frozen is true, fields may not be assigned to after instance creation.