sampler: add wide eem definition

This commit is contained in:
Robert Jördens 2018-03-20 18:11:22 +00:00
parent 32f22f4c9c
commit f74d5772f4
1 changed files with 22 additions and 2 deletions

View File

@ -161,8 +161,8 @@ def _dio(eem):
for i in range(8)] for i in range(8)]
def _sampler(eem): def _sampler(eem, eem_aux=None):
return [ ios = [
("{}_adc_spi_p".format(eem), 0, ("{}_adc_spi_p".format(eem), 0,
Subsignal("clk", Pins("{}:{}_p".format(eem, _eem_signal(0)))), Subsignal("clk", Pins("{}:{}_p".format(eem, _eem_signal(0)))),
Subsignal("miso", Pins("{}:{}_p".format(eem, _eem_signal(1)))), Subsignal("miso", Pins("{}:{}_p".format(eem, _eem_signal(1)))),
@ -197,6 +197,26 @@ def _sampler(eem):
(3, eem, "sdr") (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): def _novogorny(eem):