Skip to content

Commit daa1ab3

Browse files
committedAug 21, 2017
platforms: introduce Sayma RTM definition file
1 parent 245a3b9 commit daa1ab3

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
 
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from migen.build.generic_platform import *
2+
from migen.build.xilinx import XilinxPlatform
3+
4+
5+
_io = [
6+
("clk50", 0, Pins("E15"), IOStandard("LVCMOS25")),
7+
8+
("serial", 0,
9+
Subsignal("tx", Pins("C16")),
10+
Subsignal("rx", Pins("B17")),
11+
IOStandard("LVCMOS25")
12+
),
13+
14+
("amc_rtm_serwb", 0,
15+
Subsignal("clk_p", Pins("R18")), # rtm_fpga_usr_io_p
16+
Subsignal("clk_n", Pins("T18")), # rtm_fpga_usr_io_n
17+
Subsignal("tx_p", Pins("T17")), # rtm_fpga_lvds2_p
18+
Subsignal("tx_n", Pins("U17")), # rtm_fpga_lvds2_n
19+
Subsignal("rx_p", Pins("R16")), # rtm_fpga_lvds1_p
20+
Subsignal("rx_n", Pins("R17")), # rtm_fpga_lvds1_n
21+
IOStandard("LVDS_25")
22+
),
23+
]
24+
25+
26+
class Platform(XilinxPlatform):
27+
default_clk_name = "clk50"
28+
default_clk_period = 20.0
29+
30+
def __init__(self):
31+
XilinxPlatform.__init__(self, "xc7a15t-csg325-1", _io, toolchain="vivado")

0 commit comments

Comments
 (0)
Please sign in to comment.