8 #ifndef INCLUDED_LIBUHD_RFNOC_CONSTANTS_HPP 9 #define INCLUDED_LIBUHD_RFNOC_CONSTANTS_HPP 13 #include <boost/assign/list_of.hpp> 16 namespace uhd {
namespace rfnoc {
20 static const std::string XML_DEFAULT_PATH =
"share/uhd/rfnoc";
22 static const std::string XML_PATH_ENV =
"UHD_RFNOC_DIR";
25 static const std::string DEFAULT_BLOCK_NAME =
"Block";
26 static const uint64_t DEFAULT_NOC_ID = 0xFFFFFFFFFFFFFFFF;
27 static const size_t NOC_SHELL_COMPAT_MAJOR = 5;
28 static const size_t NOC_SHELL_COMPAT_MINOR = 1;
30 static const size_t MAX_PACKET_SIZE = 8000;
31 static const size_t DEFAULT_PACKET_SIZE = 1456;
34 static const size_t BYTES_PER_LINE = 8;
37 static const size_t DEFAULT_FC_XBAR_RESPONSE_FREQ = 8;
39 static const size_t DEFAULT_FC_RX_RESPONSE_FREQ = 64;
41 static const size_t DEFAULT_FC_TX_RESPONSE_FREQ = 8;
48 static const double DEFAULT_FC_RX_SW_BUFF_FULL_FACTOR = 0.80;
51 static const uint32_t SR_FLOW_CTRL_BYTES_PER_ACK = 1;
52 static const uint32_t SR_FLOW_CTRL_WINDOW_SIZE = 2;
53 static const uint32_t SR_FLOW_CTRL_EN = 3;
54 static const uint32_t SR_ERROR_POLICY = 4;
55 static const uint32_t SR_BLOCK_SID = 5;
56 static const uint32_t SR_NEXT_DST_SID = 6;
57 static const uint32_t SR_RESP_IN_DST_SID = 7;
58 static const uint32_t SR_RESP_OUT_DST_SID = 8;
59 static const uint32_t SR_FLOW_CTRL_PKT_LIMIT = 9;
61 static const uint32_t SR_READBACK_ADDR = 124;
62 static const uint32_t SR_READBACK = 127;
64 static const uint32_t SR_CLEAR_RX_FC = 125;
65 static const uint32_t SR_CLEAR_TX_FC = 126;
79 static const uint32_t AXI_WRAPPER_BASE = 128;
80 static const uint32_t AXIS_CONFIG_BUS =
82 static const uint32_t AXIS_CONFIG_BUS_TLAST =
85 static const size_t CMD_FIFO_SIZE = 256;
86 static const size_t MAX_CMD_PKT_SIZE = 3;
90 boost::assign::map_list_of(
"AXIS_CONFIG_BUS", AXIS_CONFIG_BUS)(
91 "AXIS_CONFIG_BUS_TLAST", AXIS_CONFIG_BUS_TLAST);
94 static const size_t MAX_NUM_BLOCKS = 16;
97 static const size_t ANY_PORT = size_t(~0);
98 static const size_t MAX_NUM_PORTS = 16;
101 static const std::string VALID_BLOCKNAME_REGEX =
"[A-Za-z][A-Za-z0-9]*";
102 static const std::string VALID_BLOCKID_REGEX =
103 "(?:(\\d+)(?:/))?([A-Za-z][A-Za-z0-9]*)(?:(?:_)(\\d\\d?))?";
Definition: constants.hpp:70
Definition: constants.hpp:69
Definition: constants.hpp:71
settingsbus_reg_t
Settings register readback.
Definition: constants.hpp:68
Definition: build_info.hpp:13
Definition: constants.hpp:74
Definition: constants.hpp:75
Definition: constants.hpp:73
Definition: constants.hpp:72