STADLS
stadls::vx Namespace Reference

Namespaces

 detail
 
 v2
 
 v3
 

Classes

struct  PlaybackGeneratorReturn
 Return type of generate() call on playback sequence. More...
 
class  PlaybackProgram
 Sequential stream of executable instructions for the executor and result-container for event response data during execution.Get MADC samples as 2D matrix, i.e. More...
 
class  ReinitStackEntry
 

Typedefs

typedef fisch::vx::RunTimeInfo RunTimeInfo
 

Functions

attr attr ("to_numpy")
 
lola::vx::v2::Chip convert_to_chip (DumperDone const &dumperdone) SYMBOL_VISIBLE
 Convert the dumper result to a Chip config. More...
 
lola::vx::v2::Chip convert_to_chip (DumperDone const &dumperdone, lola::vx::v2::Chip const &previous) SYMBOL_VISIBLE
 Convert the dumper result to a Chip config. More...
 
lola::vx::v3::Chip convert_to_chip (DumperDone const &dumperdone, lola::vx::v3::Chip const &previous) SYMBOL_VISIBLE
 Convert the dumper result to a Chip config. More...
 
template<>
void decode_ones (haldls::vx::CHIP_REVISION_STR::CapMemBlockConfig &)
 
template<>
void decode_ones (lola::vx::CHIP_REVISION_STR::CapMem &)
 
template<class T >
void decode_ones (T &config)
 Decode data with all bits set to one into a container. More...
 
template<>
void decode_random (std::mt19937 &gen, haldls::vx::CHIP_REVISION_STR::CapMemBlockConfig &config)
 
template<>
void decode_random (std::mt19937 &gen, haldls::vx::JTAGIdCode &config)
 
template<>
void decode_random (std::mt19937 &gen, lola::vx::CHIP_REVISION_STR::CapMem &config)
 
template<>
void decode_random (std::mt19937 &gen, lola::vx::v2::Chip &config)
 
template<>
void decode_random (std::mt19937 &gen, lola::vx::v3::Chip &config)
 
template<class T >
void decode_random (std::mt19937 &gen, T &config)
 Decode random data into a container. More...
 
template<typename Seq >
auto generate (Seq const &seq)
 Generate function to be called on an object implementing the PlaybackGenerator concept. More...
 
 pybind11::bind_vector< stadls::vx::PlaybackProgram::madc_samples_type > (parent, "madc_samples_type")
 
template<typename Connection >
RunTimeInfo run (Connection &connection, PlaybackProgram &&program)
 Transfer and execute the given playback program and fetch results. More...
 
template<typename Connection >
RunTimeInfo run (Connection &connection, PlaybackProgram &program)
 Transfer and execute the given playback program and fetch results. More...
 
template<typename Connection >
RunTimeInfo run (Connection &connection, std::shared_ptr< fisch::vx::PlaybackProgram > const &program)
 Transfer and execute the given fisch playback program and fetch results. More...
 

Variables

auto attr = parent.attr("madc_samples_type")
 
auto ism = parent->py::is_method(attr)
 
constexpr size_t playback_memory_size_to_fpga
 Playback memory FIFO size on FPGA in instructions for playback execution. More...
 
auto const to_numpy = [](_values_type const& self) { pybind11::array_t<haldls::vx::MADCSampleFromChip::MADCSampleFromChipDType> ret( {static_cast<pybind11::ssize_t>(self.size())}, reinterpret_cast< haldls::vx::MADCSampleFromChip::MADCSampleFromChipDType const*>( self.data())); return ret; }
 

Typedef Documentation

◆ RunTimeInfo

typedef fisch::vx::RunTimeInfo stadls::vx::RunTimeInfo

Definition at line 8 of file run_time_info.h.

Function Documentation

◆ attr()

attr stadls::vx::attr ( "to_numpy"  )

◆ convert_to_chip() [1/3]

lola::vx::v3::Chip stadls::vx::convert_to_chip ( DumperDone const &  dumperdone)

Convert the dumper result to a Chip config.

This conversion is not bijective.

Parameters
dumperdoneDumper result

◆ convert_to_chip() [2/3]

lola::vx::v2::Chip stadls::vx::convert_to_chip ( DumperDone const &  dumperdone,
lola::vx::v2::Chip const &  previous 
)

Convert the dumper result to a Chip config.

This conversion is not bijective.

Parameters
dumperdoneDumper result
previousOptional previous ChipConfig to apply changes to

◆ convert_to_chip() [3/3]

lola::vx::v3::Chip stadls::vx::convert_to_chip ( DumperDone const &  dumperdone,
lola::vx::v3::Chip const &  previous 
)

Convert the dumper result to a Chip config.

This conversion is not bijective.

Parameters
dumperdoneDumper result
previousOptional previous ChipConfig to apply changes to

◆ decode_ones() [1/3]

template<>
void stadls::vx::decode_ones ( haldls::vx::CHIP_REVISION_STR::CapMemBlockConfig &  )
inline

Definition at line 218 of file decode.h.

◆ decode_ones() [2/3]

template<>
void stadls::vx::decode_ones ( lola::vx::CHIP_REVISION_STR::CapMem &  )
inline

Definition at line 259 of file decode.h.

◆ decode_ones() [3/3]

template<class T >
void stadls::vx::decode_ones ( T &  config)
inline

Decode data with all bits set to one into a container.

Template Parameters
TContainer type
Returns
Filled container

Definition at line 133 of file decode.h.

◆ decode_random() [1/6]

template<>
void stadls::vx::decode_random ( std::mt19937 &  gen,
haldls::vx::CHIP_REVISION_STR::CapMemBlockConfig &  config 
)
inline

Definition at line 172 of file decode.h.

◆ decode_random() [2/6]

template<>
void stadls::vx::decode_random ( std::mt19937 &  gen,
haldls::vx::JTAGIdCode &  config 
)
inline

Definition at line 154 of file decode.h.

◆ decode_random() [3/6]

template<>
void stadls::vx::decode_random ( std::mt19937 &  gen,
lola::vx::CHIP_REVISION_STR::CapMem &  config 
)
inline

Definition at line 224 of file decode.h.

◆ decode_random() [4/6]

template<>
void stadls::vx::decode_random ( std::mt19937 &  gen,
lola::vx::v2::Chip &  config 
)
inline

Definition at line 13 of file decode.h.

◆ decode_random() [5/6]

template<>
void stadls::vx::decode_random ( std::mt19937 &  gen,
lola::vx::v3::Chip &  config 
)
inline

Definition at line 13 of file decode.h.

◆ decode_random() [6/6]

template<class T >
void stadls::vx::decode_random ( std::mt19937 &  gen,
T &  config 
)
inline

Decode random data into a container.

Template Parameters
TContainer type
Parameters
genRNG
Returns
randomly filled container

Definition at line 107 of file decode.h.

◆ generate()

template<typename Seq >
auto stadls::vx::generate ( Seq const &  seq)

Generate function to be called on an object implementing the PlaybackGenerator concept.

The PlaybackGenerator concept for a type Generator is comprised of having a nested Result type and a constant function with signature PlaybackGeneratorReturn<Generator::Result> generate() const;.

Definition at line 33 of file playback_generator.h.

◆ pybind11::bind_vector< stadls::vx::PlaybackProgram::madc_samples_type >()

stadls::vx::pybind11::bind_vector< stadls::vx::PlaybackProgram::madc_samples_type > ( parent  ,
"madc_samples_type"   
)

◆ run() [1/3]

template<typename Connection >
RunTimeInfo stadls::vx::run ( Connection &  connection,
PlaybackProgram &&  program 
)

Transfer and execute the given playback program and fetch results.

Template Parameters
ConnectionConnection type to be used for running the program
Parameters
connectionConnection instance to be used for running the program
programPlaybackProgram to run
Returns
Run time information

◆ run() [2/3]

template<typename Connection >
RunTimeInfo stadls::vx::run ( Connection &  connection,
PlaybackProgram program 
)

Transfer and execute the given playback program and fetch results.

Template Parameters
ConnectionConnection type to be used for running the program
Parameters
connectionConnection instance to be used for running the program
programPlaybackProgram to run
Returns
Run time information

◆ run() [3/3]

template<typename Connection >
RunTimeInfo stadls::vx::run ( Connection &  connection,
std::shared_ptr< fisch::vx::PlaybackProgram > const &  program 
)

Transfer and execute the given fisch playback program and fetch results.

Template Parameters
ConnectionConnection type to be used for running the program
Parameters
connectionConnection instance to be used for running the program
programPlaybackProgram to run
Returns
Run time information

Variable Documentation

◆ attr

auto stadls::vx::attr = parent.attr("madc_samples_type")

Definition at line 252 of file playback_program.h.

◆ ism

auto stadls::vx::ism = parent->py::is_method(attr)

Definition at line 252 of file playback_program.h.

◆ playback_memory_size_to_fpga

constexpr size_t stadls::vx::playback_memory_size_to_fpga
constexpr
Initial value:
=
constexpr size_t playback_memory_size_to_fpga
Playback memory FIFO size on FPGA in instructions for playback execution.
Definition: constants.h:7

Playback memory FIFO size on FPGA in instructions for playback execution.

Definition at line 7 of file constants.h.

◆ to_numpy

auto const stadls::vx::to_numpy = [](_values_type const& self) { pybind11::array_t<haldls::vx::MADCSampleFromChip::MADCSampleFromChipDType> ret( {static_cast<pybind11::ssize_t>(self.size())}, reinterpret_cast< haldls::vx::MADCSampleFromChip::MADCSampleFromChipDType const*>( self.data())); return ret; }

Definition at line 252 of file playback_program.h.