Skip to content

qick_lib: read the reference clock of an ADC tile from the ADC parameters - #447

Merged
meeg merged 3 commits into
mainfrom
fix-adc-refclk
Nov 12, 2026
Merged

meeg merged 3 commits into
mainfrom
fix-adc-refclk

Conversation

@lharnaldi

Copy link
Copy Markdown
Contributor

Since 4972d5e, RFDC.configure() reads the reference clock of every enabled tile from C_DAC<n>_Refclk_Freq, ADC tiles included. If ADC tile n is enabled and DAC tile n is not, Vivado leaves the sampling rate in that DAC parameter, so QickSoc reads the wrong reference clock and refuses the firmware:

RF reference clocks [204.8, 204.8, 204.8, 6400.0] ... must all be equal

This happens with the ZCU111 tProc v2 standard firmware, which uses ADC tiles 0 and 2. The released tprocv2r21/r23 bitstreams have the same tile layout.

The fix reads C_ADC<n>_Refclk_Freq for ADC tiles.

Tested on a ZCU111 with the qick_lib of #446, which carries the same commit: the tProc v2 standard firmware loads and passes a loopback test.

lharnaldi and others added 3 commits November 11, 2026 14:27
…ters

The RFDC parse took C_DAC<n>_Refclk_Freq for ADC tile n too. Where ADC tile n is enabled and DAC tile n is
not, Vivado leaves the sampling rate in that DAC parameter (6400 MHz on the ZCU111), and QickSoc refuses the
firmware ("RF reference clocks [204.8, 204.8, 204.8, 6400.0] ... must all be equal"). This is the case of
the ZCU111 tProc v2 standard firmware, which uses ADC tiles 0 and 2 (the released tprocv2r21/r23 bitstreams).
@meeg

meeg commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

For reference, the buggy commit was merged in #432.

@meeg
meeg merged commit 5159333 into main Nov 12, 2026
3 checks passed
@meeg
meeg deleted the fix-adc-refclk branch November 12, 2026 21:28
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

Successfully merging this pull request may close these issues.

3 participants