HALDLS
constants.h
Go to the documentation of this file.
1 #pragma once
2 #include "haldls/vx/genpybind.h"
3 #include "haldls/vx/timer.h"
4 
6 
7 inline static const GENPYBIND(visible) Timer::Value pll_and_omnibus_settling_duration =
8  Timer::Value(Timer::Value::fpga_clock_cycles_per_us * 100);
9 // TODO: This value is empirically safe, but might be too long, measure this value, see Issue #3406
10 inline static const GENPYBIND(visible) Timer::Value xboard_dac_settling_duration =
11  Timer::Value(Timer::Value::fpga_clock_cycles_per_us * 1000);
12 inline static const GENPYBIND(visible) Timer::Value chip_reset_high_duration = Timer::Value(10);
13 inline static const GENPYBIND(visible) Timer::Value chip_reset_low_duration = Timer::Value(100);
14 inline static const GENPYBIND(visible) Timer::Value reference_generator_reset_duration =
15  Timer::Value(1000);
16 // Reference frequency (in Hz) for the PLL, which is created, depending on the setup, by a dedicated
17 // IC or FPGA. This frequency can in theory be altered but this is not implemented yet and is not
18 // planned to be implemented.
19 inline static const GENPYBIND(visible) double nominal_pll_f_reference = 5e7;
20 
21 // The madc sample signal is active in one cycle at every 12-clock cycle (and can be extended via
22 // sample_duration_adjust, enable_madc_clock_scaling and madc_clock_scale_value). For one-channel
23 // ADC the sampling rate is 1/12th of the clock frequency (cf.
24 // https://gerrit.bioai.eu/gitweb?p=hicann-dls-private.git;a=blob_plain;f=hicann-dls/units/hx_madc/doc/MADC.pdf;hb=HEAD;js=1).
25 static constexpr GENPYBIND(visible) uint_fast8_t minimal_madc_clock_cycles_per_sample = 12;
26 
27 } // namespace haldls::vx
#define GENPYBIND_TAG_HALDLS_VX
Definition: genpybind.h:4
static const Timer::Value pll_and_omnibus_settling_duration
Definition: constants.h:7
static constexpr uint_fast8_t minimal_madc_clock_cycles_per_sample
Definition: constants.h:25
static const Timer::Value chip_reset_high_duration
Definition: constants.h:12
static const Timer::Value xboard_dac_settling_duration
Definition: constants.h:10
static const double nominal_pll_f_reference
Definition: constants.h:19
static const Timer::Value chip_reset_low_duration
Definition: constants.h:13
static const Timer::Value reference_generator_reset_duration
Definition: constants.h:14