Namespaces | |
namespace | chdr |
namespace | detail |
namespace | rf_control |
Typedefs | |
using | io_type_t = std::string |
using | noc_id_t = uint32_t |
using | device_type_t = uint16_t |
Device Type. More... | |
using | sep_id_t = uint16_t |
Stream Endpoint ID Type. More... | |
using | block_port_def = std::tuple< std::string, boost::optional< size_t > > |
Tuple that stores a block ID, as well as an optional port number. More... | |
Enumerations | |
enum | settingsbus_reg_t { SR_READBACK_REG_ID = 0 , SR_READBACK_REG_GLOBAL_PARAMS = 1 , SR_READBACK_REG_FIFOSIZE = 2 , SR_READBACK_REG_MTU = 3 , SR_READBACK_REG_BLOCKPORT_SIDS = 4 , SR_READBACK_REG_USER = 5 , SR_READBACK_COMPAT = 6 } |
Settings register readback. More... | |
enum class | fft_shift { NORMAL , REVERSE , NATURAL } |
enum class | fft_direction { REVERSE , FORWARD } |
enum class | fft_magnitude { COMPLEX , MAGNITUDE , MAGNITUDE_SQUARED } |
enum class | fosphor_waterfall_mode { MAX_HOLD , AVERAGE } |
enum class | fosphor_waterfall_predivision_ratio { RATIO_1_1 , RATIO_1_8 , RATIO_1_64 , RATIO_1_256 } |
enum | chdr_w_t { CHDR_W_64 = 0 , CHDR_W_128 = 1 , CHDR_W_256 = 2 , CHDR_W_512 = 3 } |
Type that indicates the CHDR Width in bits. More... | |
enum class | siggen_waveform { CONSTANT , SINE_WAVE , NOISE } |
Functions | |
std::ostream & | operator<< (std::ostream &out, block_id_t block_id) |
Shortcut for << block_id.to_string() More... | |
UHD_API mock_block_container | get_mock_block (const noc_id_t noc_id, const size_t num_inputs=1, const size_t num_outputs=1, const uhd::device_addr_t &args=uhd::device_addr_t(), const size_t mtu=8000, const device_type_t device_id=ANY_DEVICE, std::shared_ptr< mock_reg_iface_t > client_reg_iface=nullptr, mb_controller::sptr mbc=nullptr) |
constexpr size_t | chdr_w_to_bits (chdr_w_t chdr_w) |
Conversion from chdr_w_t to a number of bits. More... | |
std::vector< graph_edge_t > UHD_API | get_block_chain (const rfnoc_graph::sptr graph, const block_id_t start_block, const size_t port, const bool source_chain) |
void UHD_API | connect_through_blocks (rfnoc_graph::sptr graph, const block_id_t src_blk, const size_t src_port, const block_id_t dst_blk, const size_t dst_port) |
Variables | |
constexpr uint16_t | RFNOC_PROTO_VER = 0x0100 |
using uhd::rfnoc::block_port_def = typedef std::tuple<std::string, boost::optional<size_t> > |
Tuple that stores a block ID, as well as an optional port number.
using uhd::rfnoc::device_type_t = typedef uint16_t |
Device Type.
using uhd::rfnoc::io_type_t = typedef std::string |
using uhd::rfnoc::noc_id_t = typedef uint32_t |
The NoC ID is the unique identifier of the block type. All blocks of the same type have the same NoC ID.
using uhd::rfnoc::sep_id_t = typedef uint16_t |
Stream Endpoint ID Type.
enum uhd::rfnoc::chdr_w_t |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Siggen Control Class
The Siggen Block is an RFNoC block that acts as a simple function generating source block. The block supports three functions: generating a constant value, generating a sinusoidal wave with a configurable amplitude and phase increment between samples (but with a random initial phase offset), and a noise source.
Enumerator | |
---|---|
CONSTANT | |
SINE_WAVE | |
NOISE |
|
constexpr |
Conversion from chdr_w_t to a number of bits.
void UHD_API uhd::rfnoc::connect_through_blocks | ( | rfnoc_graph::sptr | graph, |
const block_id_t | src_blk, | ||
const size_t | src_port, | ||
const block_id_t | dst_blk, | ||
const size_t | dst_port | ||
) |
Connect desired blocks by whatever path that can be found
graph | The rfnoc_graph that is being examined |
src_blk | Source block's ID |
src_port | Block port where the path starts |
dst_blk | Destination block's ID |
dst_port | Block port where the path ends |
std::vector< graph_edge_t > UHD_API uhd::rfnoc::get_block_chain | ( | const rfnoc_graph::sptr | graph, |
const block_id_t | start_block, | ||
const size_t | port, | ||
const bool | source_chain | ||
) |
Get a chain of blocks that statically connect back to a terminating block. This vector's first element is start_block
, and the chain continues from there.
This function does not make the connections between blocks, it simply traverses the static connections.
graph | The rfnoc_graph that is being examined |
start_block | The block we begin to build the chain from |
port | The block port of src_port that the path will begin at |
source_chain | Whether or not the start_block is a source (or a destination). If true, the chain will start at start_block 's output port. If false, the chain will start with start_block 's output port. |
UHD_API mock_block_container uhd::rfnoc::get_mock_block | ( | const noc_id_t | noc_id, |
const size_t | num_inputs = 1 , |
||
const size_t | num_outputs = 1 , |
||
const uhd::device_addr_t & | args = uhd::device_addr_t() , |
||
const size_t | mtu = 8000 , |
||
const device_type_t | device_id = ANY_DEVICE , |
||
std::shared_ptr< mock_reg_iface_t > | client_reg_iface = nullptr , |
||
mb_controller::sptr | mbc = nullptr |
||
) |
Factory function for mock block controllers
|
inline |
Shortcut for << block_id.to_string()
|
constexpr |