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

Dynamic range control for ADC #141

Open
mutasemodeh opened this issue Apr 30, 2023 · 1 comment
Open

Dynamic range control for ADC #141

mutasemodeh opened this issue Apr 30, 2023 · 1 comment

Comments

@mutasemodeh
Copy link

Hi,

I wonder if there is a feature of controlling the voltage sampling range of the QICK ADC for optimal dynamic range?

In the Zynq page, there is a the option of integrated digital step attenuator (DSA) and I wonder if this feature can be controlled by QICK overlay.

https://docs.xilinx.com/r/en-US/pg269-rf-data-converter/Digital-Step-Attenuator-Gen-3/DFE

Thanks,
Mutasem

@meeg
Copy link
Collaborator

meeg commented Apr 30, 2023

Thanks, this is an interesting question - yes, this function is exposed by the Xilinx driver, so it's accessible to you even though the QICK code does not specifically hook into it. (We could do that? On the other hand I think it is somewhat unusual for fridge output powers to exceed 0 dBm, so zero attenuation is usually optimal anyway?)

This worked for me (I'm on a ZCU216, one of my readout channels uses tile 2 channel 2, I see that its readout amplitudes drop by sqrt(10) after I run this code):

the_adc = soc.rf.adc_tiles[2].blocks[2]
print(the_adc.DSA)
the_adc.DSA['Attenuation'] = 10.0
print(the_adc.DSA)

output:

{'DisableRTS': 0, 'Attenuation': 0.0}
{'DisableRTS': 0, 'Attenuation': 10.0}

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

2 participants