2018-07-17 18:58:16 +08:00
|
|
|
from migen.build.generic_platform import *
|
|
|
|
|
2018-07-17 20:30:13 +08:00
|
|
|
from artiq.coredevice.fmcdio_vhdci_eem import *
|
|
|
|
|
2018-07-17 18:58:16 +08:00
|
|
|
|
|
|
|
io = [
|
|
|
|
("fmcdio_dirctl", 0,
|
|
|
|
Subsignal("clk", Pins("LPC:LA32_N")),
|
|
|
|
Subsignal("ser", Pins("LPC:LA33_P")),
|
|
|
|
Subsignal("latch", Pins("LPC:LA32_P")),
|
2018-07-17 19:40:34 +08:00
|
|
|
IOStandard("LVCMOS18")
|
2018-07-17 18:58:16 +08:00
|
|
|
),
|
|
|
|
]
|
|
|
|
|
2018-07-17 20:30:13 +08:00
|
|
|
def _get_connectors():
|
|
|
|
connectors = []
|
|
|
|
for i in range(4):
|
|
|
|
connections = dict()
|
|
|
|
for j, pair in enumerate(eem_fmc_connections[i]):
|
|
|
|
for pn in "n", "p":
|
|
|
|
cc = "cc_" if j == 0 else ""
|
|
|
|
connections["d{}_{}{}".format(j, cc, pn)] = \
|
|
|
|
"LPC:LA{:02d}_{}{}".format(pair, cc.upper(), pn.upper())
|
|
|
|
connectors.append(("eem{}".format(i), connections))
|
|
|
|
return connectors
|
2018-07-17 18:58:16 +08:00
|
|
|
|
|
|
|
|
2018-07-17 20:30:13 +08:00
|
|
|
connectors = _get_connectors()
|