Skip to content

Commit

Permalink
sayma_amc: add placeholder code to use DDMTD signals on v2 hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Mar 21, 2019
1 parent 2ec5a58 commit 33b28f6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions artiq/gateware/targets/sayma_amc.py
Expand Up @@ -585,6 +585,17 @@ def __init__(self, with_sawg, **kwargs):
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(
Expand Down

0 comments on commit 33b28f6

Please sign in to comment.