From e3f409e8820bdba1cd2a42390d7db40692873363 Mon Sep 17 00:00:00 2001 From: Michael West Date: Fri, 17 Nov 2017 16:45:45 -0800 Subject: legacy_compat: Fix number of TX channels per radio calculation when skip_dram is used --- host/lib/rfnoc/legacy_compat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/rfnoc/legacy_compat.cpp') diff --git a/host/lib/rfnoc/legacy_compat.cpp b/host/lib/rfnoc/legacy_compat.cpp index 945ce43ad..f6b065dcb 100644 --- a/host/lib/rfnoc/legacy_compat.cpp +++ b/host/lib/rfnoc/legacy_compat.cpp @@ -116,7 +116,7 @@ public: _num_mboards(_tree->list("/mboards").size()), _num_radios_per_board(device->find_blocks("0/Radio").size()), // These might throw, maybe we catch that and provide a nicer error message. _num_tx_chans_per_radio( - calc_num_tx_chans_per_radio(_tree, _num_radios_per_board, _has_ducs, not device->find_blocks(DFIFO_BLOCK_NAME).empty()) + calc_num_tx_chans_per_radio(_tree, _num_radios_per_board, _has_ducs, _has_dmafifo) ), _num_rx_chans_per_radio(_has_ddcs ? std::min(num_ports(_tree, RADIO_BLOCK_NAME, "out"), num_ports(_tree, DDC_BLOCK_NAME, "out")) -- cgit v1.2.3