From 33b28f6e56a59810b0ee7ea0594a291e9d300e79 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 21 Mar 2019 17:37:22 +0800 Subject: [PATCH] sayma_amc: add placeholder code to use DDMTD signals on v2 hardware --- artiq/gateware/targets/sayma_amc.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/artiq/gateware/targets/sayma_amc.py b/artiq/gateware/targets/sayma_amc.py index ae1122a0e..2e89863d3 100755 --- a/artiq/gateware/targets/sayma_amc.py +++ b/artiq/gateware/targets/sayma_amc.py @@ -585,6 +585,17 @@ class Satellite(BaseSoC, RTMCommon): self.crg.cd_sys.clk, gth.txoutclk, gth.rxoutclk) + # placeholder code to test I/O routing and standards + if self.hw_rev == "v2.0": + self.clock_domains.cd_ddmtd_helper = ClockDomain(reset_less=True) + helper_clk = platform.request("ddmtd_helper_clk") + self.specials += Instance("IBUFGDS", + i_I=helper_clk.p, i_IB=helper_clk.n, + o_O=self.cd_ddmtd_helper.clk) + ddmtd = platform.request("ddmtd_results") + self.sync.ddmtd_helper += platform.request("tp16").eq( + ddmtd.rec_clk ^ ddmtd.main_xo) + def main(): parser = argparse.ArgumentParser(