aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/duc_block_ctrl_impl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* rfnoc: Add update_graph() API callMartin Braun2019-07-151-2/+4
| | | | | | Blocks that change scaling, tick rate, or sampling rate can now notify the graph to update streamers. Before, this was handled only by mult_usrp, and only for DDC and DUC blocks.
* device3: rfnoc: formatting changesBrent Stapleton2019-07-151-3/+4
| | | | | | | | | | | | | Applying clang-format to files used in upcoming changes. clang-format -i --style=file host/include/uhd/rfnoc/node_ctrl_base.hpp clang-format -i --style=file host/lib/rfnoc/ddc_block_ctrl_impl.cpp \ host/lib/rfnoc/duc_block_ctrl_impl.cpp \ host/lib/rfnoc/legacy_compat.cpp \ host/lib/usrp/device3/device3_impl.cpp \ host/lib/usrp/device3/device3_impl.hpp \ host/lib/usrp/device3/device3_io_impl.cpp \ host/lib/usrp/x300/x300_impl.cpp
* RFNoC: Fix scaling of M and N values in DDC/DUCmichael-west2019-01-311-2/+5
| | | | | | | Scale the M and N values if the tick_rate differs from the sample rate. Fixes timestamps in packets when using TwinRX on X300. Signed-off-by: michael-west <michael.west@ettus.com>
* lib: rfnoc: apply clang-formatMartin Braun2019-01-171-107/+101
| | | | | | This is a continuation of 967be2a4. $ clang-format -i -style=file host/lib/rfnoc/*.cpp
* RFNoC: Fix graph traversalmichael-west2018-12-191-5/+1
| | | | | | - Allows different TX sample rates on separate channels - Prevents stream commands from being issued on wrong ports - Prevents some receive timeout errors
* uhd: Fix rounding in ddc/duc rate calculationCiro Nishiguchi2018-10-051-1/+1
| | | | | | | | The DDC and DUC convert the requested rate to an integer before selecting a decimated / interpolated rate. This causes the selection to select a lower rate than requested in some corner cases. The effect is more pronounced when the input rate of the DDC or the output rate of the DUC is very small.
* DDC/DUC: switch CORDIC -> DDS for all relevant variable namesRyan Marlow2018-03-221-10/+6
| | | | - Bump compat number for DDC/DUC to 2.0
* uhd: Move internal headers to uhdlib/Martin Braun2018-03-141-1/+1
| | | | | | | | | | | | | | | | To avoid the proliferation of additional include directories and multiple ways of including project-local headers, we now default to moving all headers that are used across UHD into the uhdlib/ subdirectory. Some #include statements were also reordered as they were modified for closer compliance with the coding guidelines. Internal cpp source files should now include files like this: #include <uhdlib/rfnoc/ctrl_iface.hpp> Reviewed-by: Ashish Chaudhari <ashish.chaudhari@ettus.com>
* uhd: Update license headersMartin Braun2018-02-191-1/+1
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* ddc: duc: Factor out usage of boost::bind()Martin Braun2018-02-191-28/+50
| | | | Replace with lambdas.
* rfnoc: Factor out ceil_log2() into central locationMartin Braun2018-02-191-7/+4
| | | | - New file: uhdlib/utils/math.hpp
* rfnoc: Factored out FPGA compat checkMartin Braun2018-02-191-45/+45
| | | | | - Applied changes to DUC and DDC blocks - Fixed minor formatting
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* ddc/duc: enhance ddc/duc with new parametersRyan Marlow2017-12-201-21/+57
| | | | | | | | | | | | - NUM_HALFBANDS and CIC_MAX are no longer hard coded and are now readback regs. - both DDC and DUC use same encoding to enable halfbands (increment the number) - removed hacky hack & fixed get_output_rate/get_input_rate to include only valid rates based on NUM_HALFBANDS and CIC_MAX. - added compatibility number readback w/ warning/error messages - Updated images package to include new DDC/DUC (affects X-Series only) - Updated fpga-src submodule pointer
* Merge branch 'maint'Martin Braun2017-04-131-0/+9
|\
| * rfnoc: Update DDC and DUC command tick rateMartin Braun2017-04-131-0/+9
| | | | | | | | | | Update happens when the sampling rate is queried, which needs revisiting, but happens to occur at the correct time in the sequence.
* | utils: introduce new logging API and remove msg APIAndrej Rode2017-02-201-3/+3
| |
* | uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-101-1/+1
|/ | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* Merging RFNoC support for X310Martin Braun2016-08-091-0/+268