Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimation and interpolation parameter removal #15

Closed
tfcollins opened this issue Nov 29, 2017 · 5 comments
Closed

Decimation and interpolation parameter removal #15

tfcollins opened this issue Nov 29, 2017 · 5 comments

Comments

@tfcollins
Copy link
Contributor

I think we may want to remove these parameters from the block masks from FMComms and Pluto since they can cause aliasing based on how they are implemented.

ptrdiff_t buf_step = iio_buffer_step(buf) * (interpolation + 1);

ptrdiff_t buf_step = iio_buffer_step(buf) * (decimation + 1);

Is there a strong use case for them?

@mhennerich
Copy link
Contributor

It was introduced with this commit:
8b9eacc

I don't remember the reason - but simply skipping samples in SW is not going to make a strong use case. This can be better done outside the block.

At some point we were talking about adding support for the Pluto Int/Dec by 8 HW filter.
But this is something different.

@lclausen-adi
Copy link

It was done to safe CPU resources so some of the designs were capable of running on the ARM processor on the ZYNQ.

@tfcollins
Copy link
Contributor Author

I'm fine with leaving it for the iio_device blocks, but having it in the FMComms/Pluto blocks is just asking for trouble. I think this was more of a concern before the baseband_auto_rate function existed, but now we can get down to much lower rates. Especially if we add the hooks to control Pluto's FPGA filters

@tfcollins
Copy link
Contributor Author

Are the FMComms/Pluto blocks required for scopy? Doing a quick search of the repo I couldn't find anything.

@lclausen-adi
Copy link

no

carlesfernandez added a commit to carlesfernandez/gnss-sdr that referenced this issue Jan 20, 2018
A change in the API has removed the decimation parameter from sources
(see analogdevicesinc/gr-iio#15 )

This commit fixes the build against the current master of
https://github.com/analogdevicesinc/gr-iio but it breaks compatibility
with older versions. Users with gr-iio already installed will need to
update it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants