HALDLS
|
Node of the crossbar routing events from a CrossbarInputOnDLS to a CrossbarOutputOnDLS. More...
#include <routing_crossbar.h>
Public Types | |
typedef halco::hicann_dls::vx::CrossbarNodeOnDLS | coordinate_type |
typedef std::true_type | is_leaf_node |
typedef halco::hicann_dls::vx::NeuronLabel | neuron_label_type |
Public Member Functions | |
CrossbarNode () SYMBOL_VISIBLE | |
Default constructor. More... | |
template<typename WordT > | |
void | decode (std::array< WordT, config_size_in_words > const &data) SYMBOL_VISIBLE |
template<typename WordT > | |
std::array< WordT, config_size_in_words > | encode () const SYMBOL_VISIBLE |
bool | get_enable_drop_counter () const SYMBOL_VISIBLE |
neuron_label_type | get_mask () const SYMBOL_VISIBLE |
Get mask to apply with a logical bit-wise AND operation onto incoming event labels. More... | |
neuron_label_type | get_target () const SYMBOL_VISIBLE |
Get target to compare masked incoming event labels to with a bit-wise equality operation. More... | |
bool | operator!= (CrossbarNode const &other) const SYMBOL_VISIBLE |
bool | operator== (CrossbarNode const &other) const SYMBOL_VISIBLE |
void | set_enable_drop_counter (bool value) SYMBOL_VISIBLE |
void | set_mask (neuron_label_type value) SYMBOL_VISIBLE |
Set mask to apply with a bit-wise AND operation onto incoming event labels. More... | |
void | set_target (neuron_label_type value) SYMBOL_VISIBLE |
Set target to compare masked incoming event labels to with a bit-wise equality operation. More... | |
Static Public Member Functions | |
template<typename AddressT > | |
static std::array< AddressT, config_size_in_words > | addresses (coordinate_type const &neuron) SYMBOL_VISIBLE |
Static Public Attributes | |
static constexpr size_t | config_size_in_words = 1 |
static const SYMBOL_VISIBLE CrossbarNode | drop_all |
constexpr static auto | unsupported_read_targets |
Friends | |
class | cereal::access |
std::ostream & | operator<< (std::ostream &os, CrossbarNode const &config) SYMBOL_VISIBLE |
Node of the crossbar routing events from a CrossbarInputOnDLS to a CrossbarOutputOnDLS.
A event is routed exactly if the following statement is true: (event_label & mask) == target
Definition at line 282 of file routing_crossbar.h.
typedef halco::hicann_dls::vx::CrossbarNodeOnDLS haldls::vx::CrossbarNode::coordinate_type |
Definition at line 285 of file routing_crossbar.h.
typedef std::true_type haldls::vx::CrossbarNode::is_leaf_node |
Definition at line 286 of file routing_crossbar.h.
typedef halco::hicann_dls::vx::NeuronLabel haldls::vx::CrossbarNode::neuron_label_type |
Definition at line 292 of file routing_crossbar.h.
haldls::vx::CrossbarNode::CrossbarNode | ( | ) |
Default constructor.
|
static |
void haldls::vx::CrossbarNode::decode | ( | std::array< WordT, config_size_in_words > const & | data | ) |
std::array<WordT, config_size_in_words> haldls::vx::CrossbarNode::encode | ( | ) | const |
bool haldls::vx::CrossbarNode::get_enable_drop_counter | ( | ) | const |
neuron_label_type haldls::vx::CrossbarNode::get_mask | ( | ) | const |
Get mask to apply with a logical bit-wise AND operation onto incoming event labels.
neuron_label_type haldls::vx::CrossbarNode::get_target | ( | ) | const |
Get target to compare masked incoming event labels to with a bit-wise equality operation.
bool haldls::vx::CrossbarNode::operator!= | ( | CrossbarNode const & | other | ) | const |
bool haldls::vx::CrossbarNode::operator== | ( | CrossbarNode const & | other | ) | const |
void haldls::vx::CrossbarNode::set_enable_drop_counter | ( | bool | value | ) |
void haldls::vx::CrossbarNode::set_mask | ( | neuron_label_type | value | ) |
Set mask to apply with a bit-wise AND operation onto incoming event labels.
value | NeuronLabel |
void haldls::vx::CrossbarNode::set_target | ( | neuron_label_type | value | ) |
Set target to compare masked incoming event labels to with a bit-wise equality operation.
value | NeuronLabel |
|
friend |
Definition at line 350 of file routing_crossbar.h.
|
friend |
|
staticconstexpr |
Definition at line 336 of file routing_crossbar.h.
|
static |
Definition at line 334 of file routing_crossbar.h.
|
staticconstexpr |
Definition at line 288 of file routing_crossbar.h.