forked from M-Labs/artiq
1
0
Fork 0

suservo: drop adc idelays

This commit is contained in:
Robert Jördens 2018-04-25 14:59:50 +00:00
parent b44d6517d1
commit c304b6207a
1 changed files with 2 additions and 16 deletions

View File

@ -16,7 +16,6 @@ class SamplerPads(Module):
dn = platform.request("{}_adc_data_n".format(eem0)) dn = platform.request("{}_adc_data_n".format(eem0))
clkout_se = Signal() clkout_se = Signal()
clkout_d = Signal()
sck = Signal() sck = Signal()
self.specials += [ self.specials += [
@ -25,13 +24,7 @@ class SamplerPads(Module):
DDROutput(self.sck_en, 0, sck), DDROutput(self.sck_en, 0, sck),
DifferentialOutput(sck, spip.clk, spin.clk), DifferentialOutput(sck, spip.clk, spin.clk),
DifferentialInput(dp.clkout, dn.clkout, clkout_se), DifferentialInput(dp.clkout, dn.clkout, clkout_se),
Instance( Instance("BUFR", i_I=clkout_se, o_O=self.clkout)
"IDELAYE2",
p_HIGH_PERFORMANCE_MODE="TRUE", p_IDELAY_TYPE="FIXED",
p_SIGNAL_PATTERN="CLOCK", p_IDELAY_VALUE=0,
p_REFCLK_FREQUENCY=200.,
i_IDATAIN=clkout_se, o_DATAOUT=clkout_d),
Instance("BUFR", i_I=clkout_d, o_O=self.clkout)
] ]
# here to be early before the input delays below to have the clock # here to be early before the input delays below to have the clock
@ -42,19 +35,12 @@ class SamplerPads(Module):
clk=dp.clkout) clk=dp.clkout)
# platform.add_period_constraint(sampler_pads.clkout_p, 8.) # platform.add_period_constraint(sampler_pads.clkout_p, 8.)
for i in "abcd": for i in "abcd":
sdo_se = Signal()
sdo = Signal() sdo = Signal()
setattr(self, "sdo{}".format(i), sdo) setattr(self, "sdo{}".format(i), sdo)
sdop = getattr(dp, "sdo{}".format(i)) sdop = getattr(dp, "sdo{}".format(i))
sdon = getattr(dn, "sdo{}".format(i)) sdon = getattr(dn, "sdo{}".format(i))
self.specials += [ self.specials += [
DifferentialInput(sdop, sdon, sdo_se), DifferentialInput(sdop, sdon, sdo),
Instance(
"IDELAYE2",
p_HIGH_PERFORMANCE_MODE="TRUE", p_IDELAY_TYPE="FIXED",
p_SIGNAL_PATTERN="DATA", p_IDELAY_VALUE=15,
p_REFCLK_FREQUENCY=200.,
i_IDATAIN=sdo_se, o_DATAOUT=sdo),
] ]
# 8, -0+1.5 hold (t_HSDO_DDR), -0.5+0.5 skew # 8, -0+1.5 hold (t_HSDO_DDR), -0.5+0.5 skew
platform.add_platform_command( platform.add_platform_command(