From f74d5772f4b882f4e55eb014188997acc4903593 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Tue, 20 Mar 2018 18:11:22 +0000 Subject: [PATCH] sampler: add wide eem definition --- artiq/gateware/targets/kasli.py | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/artiq/gateware/targets/kasli.py b/artiq/gateware/targets/kasli.py index 7ddf54245..14cadd1c6 100755 --- a/artiq/gateware/targets/kasli.py +++ b/artiq/gateware/targets/kasli.py @@ -161,8 +161,8 @@ def _dio(eem): for i in range(8)] -def _sampler(eem): - return [ +def _sampler(eem, eem_aux=None): + ios = [ ("{}_adc_spi_p".format(eem), 0, Subsignal("clk", Pins("{}:{}_p".format(eem, _eem_signal(0)))), Subsignal("miso", Pins("{}:{}_p".format(eem, _eem_signal(1)))), @@ -197,6 +197,26 @@ def _sampler(eem): (3, eem, "sdr") ] ] + if eem_aux is not None: + ios += [ + ("{}_adc_data_p".format(eem), 0, + Subsignal("clkout", Pins("{}:{}_p".format(eem_aux, _eem_signal(0)))), + Subsignal("sdoa", Pins("{}:{}_p".format(eem_aux, _eem_signal(1)))), + Subsignal("sdob", Pins("{}:{}_p".format(eem_aux, _eem_signal(2)))), + Subsignal("sdoc", Pins("{}:{}_p".format(eem_aux, _eem_signal(3)))), + Subsignal("sdod", Pins("{}:{}_p".format(eem_aux, _eem_signal(4)))), + IOStandard("LVDS_25"), + ), + ("{}_adc_data_n".format(eem), 0, + Subsignal("clkout", Pins("{}:{}_n".format(eem_aux, _eem_signal(0)))), + Subsignal("sdoa", Pins("{}:{}_n".format(eem_aux, _eem_signal(1)))), + Subsignal("sdob", Pins("{}:{}_n".format(eem_aux, _eem_signal(2)))), + Subsignal("sdoc", Pins("{}:{}_n".format(eem_aux, _eem_signal(3)))), + Subsignal("sdod", Pins("{}:{}_n".format(eem_aux, _eem_signal(4)))), + IOStandard("LVDS_25"), + ), + ] + return ios def _novogorny(eem):