18 #ifndef INCLUDED_LIBUHD_RFNOC_CONSTANTS_HPP 19 #define INCLUDED_LIBUHD_RFNOC_CONSTANTS_HPP 22 #include <boost/assign/list_of.hpp> 23 #include <boost/cstdint.hpp> 31 static const std::string XML_DEFAULT_PATH =
"share/uhd/rfnoc";
33 static const std::string XML_PATH_ENV =
"UHD_RFNOC_DIR";
36 static const std::string DEFAULT_BLOCK_NAME =
"Block";
37 static const boost::uint64_t DEFAULT_NOC_ID = 0xFFFFFFFFFFFFFFFF;
39 static const size_t MAX_PACKET_SIZE = 8000;
40 static const size_t DEFAULT_PACKET_SIZE = 1456;
43 static const size_t BYTES_PER_LINE = 8;
46 static const size_t DEFAULT_FC_XBAR_PKTS_PER_ACK = 2;
48 static const size_t DEFAULT_FC_RX_RESPONSE_FREQ = 64;
50 static const size_t DEFAULT_FC_TX_RESPONSE_FREQ = 8;
56 static const double DEFAULT_FC_RX_SW_BUFF_FULL_FACTOR = 0.80;
59 static const boost::uint32_t SR_FLOW_CTRL_CYCS_PER_ACK = 0;
60 static const boost::uint32_t SR_FLOW_CTRL_PKTS_PER_ACK = 1;
61 static const boost::uint32_t SR_FLOW_CTRL_WINDOW_SIZE = 2;
62 static const boost::uint32_t SR_FLOW_CTRL_WINDOW_EN = 3;
63 static const boost::uint32_t SR_ERROR_POLICY = 4;
64 static const boost::uint32_t SR_BLOCK_SID = 5;
65 static const boost::uint32_t SR_NEXT_DST_SID = 6;
66 static const boost::uint32_t SR_RESP_IN_DST_SID = 7;
67 static const boost::uint32_t SR_RESP_OUT_DST_SID = 8;
69 static const boost::uint32_t SR_READBACK_ADDR = 124;
70 static const boost::uint32_t SR_READBACK = 127;
72 static const boost::uint32_t SR_CLEAR_RX_FC = 125;
73 static const boost::uint32_t SR_CLEAR_TX_FC = 126;
87 static const boost::uint32_t AXI_WRAPPER_BASE = 128;
88 static const boost::uint32_t AXIS_CONFIG_BUS = AXI_WRAPPER_BASE+1;
89 static const boost::uint32_t AXIS_CONFIG_BUS_TLAST = AXI_WRAPPER_BASE+2;
93 (
"AXIS_CONFIG_BUS", AXIS_CONFIG_BUS)
94 (
"AXIS_CONFIG_BUS_TLAST", AXIS_CONFIG_BUS_TLAST)
98 static const size_t ANY_PORT = size_t(~0);
99 static const size_t MAX_NUM_PORTS = 16;
102 static const std::string VALID_BLOCKNAME_REGEX =
"[A-Za-z][A-Za-z0-9]*";
103 static const std::string VALID_BLOCKID_REGEX =
"(?:(\\d+)(?:/))?([A-Za-z][A-Za-z0-9]*)(?:(?:_)(\\d\\d?))?";
Definition: constants.hpp:78
Definition: constants.hpp:77
Definition: constants.hpp:79
settingsbus_reg_t
Settings register readback.
Definition: constants.hpp:76
Definition: build_info.hpp:25
Definition: constants.hpp:82
Definition: constants.hpp:81
Definition: constants.hpp:80