#include <uhd/rfnoc/null_block_control.hpp>
Public Member Functions | |
virtual void | issue_stream_cmd (const uhd::stream_cmd_t &stream_cmd)=0 |
virtual void | reset_counters ()=0 |
virtual void | set_bytes_per_packet (const uint32_t bpp)=0 |
virtual void | set_throttle_cycles (const uint32_t cycs)=0 |
virtual uint32_t | get_item_width ()=0 |
virtual uint32_t | get_nipc ()=0 |
virtual uint32_t | get_lines_per_packet ()=0 |
virtual uint32_t | get_bytes_per_packet ()=0 |
virtual uint32_t | get_throttle_cycles ()=0 |
virtual uint64_t | get_count (const port_type_t port_type, const count_type_t count_type)=0 |
Public Member Functions inherited from uhd::rfnoc::noc_block_base | |
~noc_block_base () override | |
std::string | get_unique_id () const override |
Unique ID for an RFNoC block is its block ID. More... | |
size_t | get_num_input_ports () const override |
Number of input ports. Note: This gets passed into this block from the. More... | |
size_t | get_num_output_ports () const override |
Number of output ports. Note: This gets passed outto this block from the. More... | |
noc_id_t | get_noc_id () const |
const block_id_t & | get_block_id () const |
double | get_tick_rate () const |
size_t | get_mtu (const res_source_info &edge) |
size_t | get_chdr_hdr_len (const bool account_for_ts=true) const |
size_t | get_max_payload_size (const res_source_info &edge, const bool account_for_ts=true) |
uhd::device_addr_t | get_block_args () const |
uhd::property_tree::sptr & | get_tree () const |
Return a reference to this block's subtree. More... | |
uhd::property_tree::sptr & | get_tree () |
Return a reference to this block's subtree (non-const version) More... | |
std::shared_ptr< mb_controller > | get_mb_controller () |
Public Member Functions inherited from uhd::rfnoc::node_t | |
node_t () | |
virtual | ~node_t () |
std::vector< std::string > | get_property_ids () const |
template<typename prop_data_t > | |
void | set_property (const std::string &id, const prop_data_t &val, const size_t instance=0) |
void | set_properties (const uhd::device_addr_t &props, const size_t instance=0) |
template<typename prop_data_t > | |
const prop_data_t & | get_property (const std::string &id, const size_t instance=0) |
virtual void | set_command_time (uhd::time_spec_t time, const size_t instance) |
virtual uhd::time_spec_t | get_command_time (const size_t instance) const |
virtual void | clear_command_time (const size_t instance) |
Public Member Functions inherited from uhd::rfnoc::register_iface_holder | |
register_iface_holder (register_iface::sptr reg) | |
virtual | ~register_iface_holder ()=default |
register_iface & | regs () |
Static Public Attributes | |
static const uint32_t | REG_CTRL_STATUS |
static const uint32_t | REG_SRC_LINES_PER_PKT |
static const uint32_t | REG_SRC_BYTES_PER_PKT |
static const uint32_t | REG_SRC_THROTTLE_CYC |
static const uint32_t | REG_SNK_LINE_CNT_LO |
static const uint32_t | REG_SNK_LINE_CNT_HI |
static const uint32_t | REG_SNK_PKT_CNT_LO |
static const uint32_t | REG_SNK_PKT_CNT_HI |
static const uint32_t | REG_SRC_LINE_CNT_LO |
static const uint32_t | REG_SRC_LINE_CNT_HI |
static const uint32_t | REG_SRC_PKT_CNT_LO |
static const uint32_t | REG_SRC_PKT_CNT_HI |
static const uint32_t | REG_LOOP_LINE_CNT_LO |
static const uint32_t | REG_LOOP_LINE_CNT_HI |
static const uint32_t | REG_LOOP_PKT_CNT_LO |
static const uint32_t | REG_LOOP_PKT_CNT_HI |
Static Public Attributes inherited from uhd::rfnoc::node_t | |
static const size_t | ANY_PORT = size_t(~0) |
Additional Inherited Members | |
Protected Types inherited from uhd::rfnoc::node_t | |
using | prop_ptrs_t = std::vector< property_base_t * > |
Protected Member Functions inherited from uhd::rfnoc::noc_block_base | |
noc_block_base (make_args_ptr make_args) | |
void | set_num_input_ports (const size_t num_ports) |
Update number of input ports. More... | |
void | set_num_output_ports (const size_t num_ports) |
Update number of output ports. More... | |
void | set_tick_rate (const double tick_rate) |
void | set_mtu_forwarding_policy (const forwarding_policy_t policy) |
void | set_mtu (const res_source_info &edge, const size_t new_mtu) |
property_base_t * | get_mtu_prop_ref (const res_source_info &edge) |
virtual void | deinit () |
Protected Member Functions inherited from uhd::rfnoc::node_t | |
void | register_property (property_base_t *prop, resolve_callback_t &&clean_callback=nullptr) |
void | add_property_resolver (prop_ptrs_t &&inputs, prop_ptrs_t &&outputs, resolver_fn_t &&resolver_fn) |
void | set_prop_forwarding_policy (forwarding_policy_t policy, const std::string &prop_id="") |
void | set_prop_forwarding_map (const forwarding_map_t &map) |
template<typename prop_data_t > | |
void | set_property (const std::string &id, const prop_data_t &val, const res_source_info &src_info) |
template<typename prop_data_t > | |
const prop_data_t & | get_property (const std::string &id, const res_source_info &src_info) |
void | register_action_handler (const std::string &id, action_handler_t &&handler) |
void | set_action_forwarding_policy (forwarding_policy_t policy, const std::string &action_key="") |
void | set_action_forwarding_map (const forwarding_map_t &map) |
void | post_action (const res_source_info &edge_info, action_info::sptr action) |
virtual bool | check_topology (const std::vector< size_t > &connected_inputs, const std::vector< size_t > &connected_outputs) |
Protected Member Functions inherited from uhd::rfnoc::register_iface_holder | |
void | update_reg_iface (register_iface::sptr new_iface=nullptr) |
Static Protected Attributes inherited from uhd::rfnoc::node_t | |
static dirtifier_t | ALWAYS_DIRTY |
A dirtifyer object, useful for properties that always need updating. More... | |
Null block: Bit bucket or -sink
|
pure virtual |
Get bytes per packet
|
pure virtual |
Returns the number of lines that have been consumed on port 0 since the last reset
port_type | The port for which the counter value should be returned, sink, source, or loop. |
count_type | If we want the packet count, or the line count |
|
pure virtual |
Get item width (ITEM_W)
|
pure virtual |
Get lines per packet (including the header!)
|
pure virtual |
Get number of items per clock (NIPC)
|
pure virtual |
Get throttle cycles
|
pure virtual |
Start/stop the null source (port 0)
|
pure virtual |
Reset the counters
|
pure virtual |
Set bytes per packet
Note: This sets the entire packet size, including header.
|
pure virtual |
Set throttle cycles
The block will wait this many cycles between packets. Useful for reducing the data output.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |