sinara-hw / Sayma_RTM

RTM board with 8-channel GS/s DAC, 125MS/s ADC and flexible clock circuit
8 stars 4 forks source link

RTM FPGA needs to see clock before HMC chips #68

Closed sbourdeauducq closed 5 years ago

sbourdeauducq commented 5 years ago

The cascaded HMC chips don't have deterministic phase. The RTM FPGA uses DDMTD and HMC7043 slips to fix that, and it needs a reference. It can use CDR_CLK_CLEAN when that clock is selected, but when it isn't (which will be the case for initial hardware testing) and the external clock SMA is used instead, it's not working. I suggest routing an output of IC46 to a GC pin of the RTM FPGA.

sbourdeauducq commented 5 years ago

Also, the signal from that external clock SMA should not be named EXT_100M_RF_IN, since it's not always 100MHz, e.g. we're using the RTIO clock there in the current v1 DDMTD sync setup.

sbourdeauducq commented 5 years ago

If must be, replace CDR_CLK_CLEAN2 on R1/R2, but it would be nice to have both if possible.

sbourdeauducq commented 5 years ago

And those two do not need to be GCs if the HMC7043 output at the other input of the DDMTD is a GC.

hartytp commented 5 years ago

The cascaded HMC chips don't have deterministic phase. The RTM FPGA uses DDMTD and HMC7043 slips to fix that, and it needs a reference

I thought you were doing all that on the AMC FPGA?

sbourdeauducq commented 5 years ago

No, it's noisy when SAWG is enabled. Fine SYSREF alignment (step = DAC clock cycle) is done on RTM, and coarse SYSREF alignment (step = RTIO clock cycle) is done on AMC.

sbourdeauducq commented 5 years ago

@gkasprow Ping. This is important to get the DAC sync working well.

gkasprow commented 5 years ago

I connected another ref clock from IC46 to MRCC input of the RTM FPGA.

gkasprow commented 5 years ago

obraz

gkasprow commented 5 years ago

obraz