mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
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)
|
||||
|
||||
phys = []
|
||||
dci = iostandard(eem).name == "LVDS"
|
||||
for i in range(4):
|
||||
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)
|
||||
target.submodules += phy
|
||||
target.rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||
for i in range(4):
|
||||
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)
|
||||
target.submodules += phy
|
||||
target.rtio_channels.append(rtio.Channel.from_phy(phy))
|
||||
|
Loading…
Reference in New Issue
Block a user