calix.hagen.HagenCalibResult
-
class
calix.hagen.
HagenCalibResult
(target: Optional[CalibTarget], options: Optional[CalibOptions], cadc_result: cadc.CADCCalibResult, neuron_result: neuron.NeuronCalibResult, synapse_driver_result: synapse_driver.SynapseDriverCalibResult) Bases:
calix.common.base.CalibResult
Data class containing results of cadc, neuron and synapse driver calibration, all what is necessary for operation in hagen mode when using integration on the neurons’ membranes.
Refer to the documentation of
calix.hagen.cadc.CADCCalibResult
,calix.hagen.neuron.NeuronCalibResult
andcalix.hagen.synapse_driver.SynapseDriverCalibResult
for details about the contained result objects.-
__init__
(target: Optional[CalibTarget], options: Optional[CalibOptions], cadc_result: cadc.CADCCalibResult, neuron_result: neuron.NeuronCalibResult, synapse_driver_result: synapse_driver.SynapseDriverCalibResult) → None Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(target, options, cadc_result, …)Initialize self.
apply
(builder)Apply the calib to the chip.
to_hagen_synin_result
(connection, *[, …])Reconfigure calibration result for integration on synaptic input lines.
-
apply
(builder: calix.common.base.WriteRecordingPlaybackProgramBuilder) Apply the calib to the chip.
Assumes the chip to be initialized already, which can be done using the stadls ExperimentInit().
- Parameters
builder – Builder or dumper to append instructions to.
-
cadc_result
: cadc.CADCCalibResult
-
neuron_result
: neuron.NeuronCalibResult
-
synapse_driver_result
: synapse_driver.SynapseDriverCalibResult
-
to_hagen_synin_result
(connection: pyhxcomm_vx.ConnectionHandle, *, cadc_target: Optional[calix.common.cadc.CADCCalibTarget] = None, cadc_options: Optional[calix.common.cadc.CADCCalibOptions] = None, synapse_dac_bias: Optional[int] = None) → calix.hagen.HagenSyninCalibResult Reconfigure calibration result for integration on synaptic input lines. The new result is applied to the chip.
Only the missing parts are recalibrated, which should only take seconds to run. Note that the neuron calibration is dropped as it is not required for integration on synaptic inputs.
- Parameters
connection – Connection to the chip to calibrate.
cadc_target – Target parameters for CADC calibration.
cadc_options – Further options for CADC calibration.
synapse_dac_bias – Target value for the synapse DAC bias calibration.
- Returns
Hagen-mode calibration result for integration on synaptic input lines.
-