From 1d2cc60e0dfd2e0c3e5b73d3d4bb3e750f4c313f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Wed, 8 May 2019 15:45:45 +0000 Subject: [PATCH] kasli_generic: support ext_ref --- artiq/gateware/targets/kasli_generic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/gateware/targets/kasli_generic.py b/artiq/gateware/targets/kasli_generic.py index fe54ba9ec..9a077e9bd 100755 --- a/artiq/gateware/targets/kasli_generic.py +++ b/artiq/gateware/targets/kasli_generic.py @@ -88,6 +88,10 @@ class GenericStandalone(StandaloneBase): self.config["SI5324_AS_SYNTHESIZER"] = None self.config["RTIO_FREQUENCY"] = "{:.1f}".format(description.get("rtio_frequency", 125e6)/1e6) + if "ext_ref_frequency" in description: + self.config["SI5324_EXT_REF"] = None + self.config["EXT_REF_FREQUENCY"] = "{:.1f}".format( + description["ext_ref_frequency"]/1e6) if hw_rev == "v1.0": # EEM clock fan-out from Si5324, not MMCX self.comb += self.platform.request("clk_sel").eq(1)