aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/ddc_block_ctrl_impl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* TwinRX: Fix duplicate write to N value in DDCmichael-west2019-03-251-2/+1
| | | | | | | The N value was getting written twice and the second value being written was 1, which works for all use cases except when using TwinRX. This change fixes several issues with TwinRX including streaming failing to stop cleanly and incorrect decimation.
* lib: Fix various type-conversion compiler warningsMartin Braun2019-03-051-2/+4
| | | | | This makes more type-conversions explicit, to reduce the number of warnings specifically for MSVC.
* fixup! RFNoC: Fix scaling of M and N values in DDC/DUCMark Meserve2019-02-081-1/+1
|
* RFNoC: Fix scaling of M and N values in DDC/DUCmichael-west2019-01-311-1/+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-113/+113
| | | | | | This is a continuation of 967be2a4. $ clang-format -i -style=file host/lib/rfnoc/*.cpp
* RFNoC: Fix graph traversalmichael-west2018-12-191-8/+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-12/+10
| | | | - 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-4/+4
| | | | Replace with lambdas.
* rfnoc: Factor out ceil_log2() into central locationMartin Braun2018-02-191-6/+3
| | | | - New file: uhdlib/utils/math.hpp
* rfnoc: Factored out FPGA compat checkMartin Braun2018-02-191-44/+44
| | | | | - Applied changes to DUC and DDC blocks - Fixed minor formatting
* rfnoc: ddc - Changed M = 2 for eiscat DDCsugandhagupta2017-12-221-1/+9
|
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* rfnoc: ddc: Removed boost::bind usage, other minor cleanupMartin Braun2017-12-201-39/+60
|
* ddc/duc: enhance ddc/duc with new parametersRyan Marlow2017-12-201-19/+56
| | | | | | | | | | | | - 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-4/+4
|/
* rfnoc: DDC block has some safeguards in get_output_samp_rate in case its ↵Martin Braun2016-12-131-1/+9
| | | | called with ANY_PORT
* Merging RFNoC support for X310Martin Braun2016-08-091-0/+281