From 86932606e3fe6b7ec89183e7f63252148047ad42 Mon Sep 17 00:00:00 2001 From: michael-west Date: Fri, 18 Jan 2019 18:42:36 -0800 Subject: transport: muxed_zero_copy_if fixes Changed muxed_zero_copy_if to make each stream buffer the same number of frames as the underlying transport and changed the size of the underlying control transport for X300 and MPMD devices to match the size of the command FIFO in order to prevent starvation of any single control transport. Added some constants to remove hard coded values. Signed-off-by: michael-west --- host/include/uhd/rfnoc/constants.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/rfnoc/constants.hpp b/host/include/uhd/rfnoc/constants.hpp index 53a4a01d8..3e67a3cae 100644 --- a/host/include/uhd/rfnoc/constants.hpp +++ b/host/include/uhd/rfnoc/constants.hpp @@ -83,12 +83,16 @@ static const uint32_t AXIS_CONFIG_BUS_TLAST = AXI_WRAPPER_BASE + 2; // tdata with tvalid & tlast asserted static const size_t CMD_FIFO_SIZE = 256; // Lines == multiples of 8 bytes +static const size_t MAX_CMD_PKT_SIZE = 3; // Lines == multiples of 8 bytes // Named settings registers static const uhd::dict DEFAULT_NAMED_SR = boost::assign::map_list_of("AXIS_CONFIG_BUS", AXIS_CONFIG_BUS)( "AXIS_CONFIG_BUS_TLAST", AXIS_CONFIG_BUS_TLAST); +// Blocks +static const size_t MAX_NUM_BLOCKS = 16; + // Block ports static const size_t ANY_PORT = size_t(~0); static const size_t MAX_NUM_PORTS = 16; -- cgit v1.2.3