forked from M-Labs/artiq
eem: enable DCI for LVDS TTL
This commit is contained in:
parent
9ef5717de8
commit
49299c00a9
|
@ -47,15 +47,16 @@ class DIO(_EEM):
|
||||||
cls.add_extension(target, eem, iostandard=iostandard)
|
cls.add_extension(target, eem, iostandard=iostandard)
|
||||||
|
|
||||||
phys = []
|
phys = []
|
||||||
|
dci = iostandard(eem).name == "LVDS"
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
pads = target.platform.request("dio{}".format(eem), i)
|
pads = target.platform.request("dio{}".format(eem), i)
|
||||||
phy = ttl03_cls(pads.p, pads.n)
|
phy = ttl03_cls(pads.p, pads.n, dci=dci)
|
||||||
phys.append(phy)
|
phys.append(phy)
|
||||||
target.submodules += phy
|
target.submodules += phy
|
||||||
target.rtio_channels.append(rtio.Channel.from_phy(phy))
|
target.rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||||
for i in range(4):
|
for i in range(4):
|
||||||
pads = target.platform.request("dio{}".format(eem), 4+i)
|
pads = target.platform.request("dio{}".format(eem), 4+i)
|
||||||
phy = ttl47_cls(pads.p, pads.n)
|
phy = ttl47_cls(pads.p, pads.n, dci=dci)
|
||||||
phys.append(phy)
|
phys.append(phy)
|
||||||
target.submodules += phy
|
target.submodules += phy
|
||||||
target.rtio_channels.append(rtio.Channel.from_phy(phy))
|
target.rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||||
|
|
Loading…
Reference in New Issue