platforms/arty_s7: keep up to date with Migen

This commit is contained in:
Florent Kermarrec 2018-07-05 12:02:14 +02:00
parent d35dc5cdea
commit 11e8491547
1 changed files with 20 additions and 11 deletions

View File

@ -10,10 +10,17 @@ _io = [
("user_led", 2, Pins("E13"), IOStandard("LVCMOS33")), ("user_led", 2, Pins("E13"), IOStandard("LVCMOS33")),
("user_led", 3, Pins("H15"), IOStandard("LVCMOS33")), ("user_led", 3, Pins("H15"), IOStandard("LVCMOS33")),
("rgb_leds", 0, ("rgb_led", 0,
Subsignal("r", Pins("J15 E15")), Subsignal("r", Pins("J15")),
Subsignal("g", Pins("G17 F18")), Subsignal("g", Pins("G17")),
Subsignal("b", Pins("F15 E14")), Subsignal("b", Pins("F15")),
IOStandard("LVCMOS33")
),
("rgb_led", 1,
Subsignal("r", Pins("E15")),
Subsignal("g", Pins("F18")),
Subsignal("b", Pins("E14")),
IOStandard("LVCMOS33") IOStandard("LVCMOS33")
), ),
@ -44,12 +51,12 @@ _io = [
IOStandard("LVCMOS33") IOStandard("LVCMOS33")
), ),
("spiflash_4x", 0, # clock needs to be accessed through STARTUPE2 ("spiflash4x", 0, # clock needs to be accessed through STARTUPE2
Subsignal("cs_n", Pins("M13")), Subsignal("cs_n", Pins("M13")),
Subsignal("dq", Pins("K17", "K18", "L14", "M15")), Subsignal("dq", Pins("K17", "K18", "L14", "M15")),
IOStandard("LVCMOS33") IOStandard("LVCMOS33")
), ),
("spiflash_1x", 0, # clock needs to be accessed through STARTUPE2 ("spiflash", 0, # clock needs to be accessed through STARTUPE2
Subsignal("cs_n", Pins("M13")), Subsignal("cs_n", Pins("M13")),
Subsignal("mosi", Pins("K17")), Subsignal("mosi", Pins("K17")),
Subsignal("miso", Pins("K18")), Subsignal("miso", Pins("K18")),
@ -84,19 +91,21 @@ _io = [
Misc("SLEW=FAST"), Misc("SLEW=FAST"),
), ),
("pmoda", 0, Pins("L17 L18 M14 N14 M16 M17 M18 N18"), IOStandard("LVCMOS33")),
("pmodb", 0, Pins("P17 P18 R18 T18 P14 P15 N15 P16"), IOStandard("LVCMOS33")),
("pmodc", 0, Pins("U15 V16 U17 U18 U16 P13 R13 V14"), IOStandard("LVCMOS33")),
("pmodd", 0, Pins("V15 U12 V13 T12 T13 R11 T11 U11"), IOStandard("LVCMOS33")),
] ]
_connectors = [
("pmoda", "L17 L18 M14 N14 M16 M17 M18 N18"),
("pmodb", "P17 P18 R18 T18 P14 P15 N15 P16"),
("pmodc", "U15 V16 U17 U18 U16 P13 R13 V14"),
("pmodd", "V15 U12 V13 T12 T13 R11 T11 U11")
]
class Platform(XilinxPlatform): class Platform(XilinxPlatform):
default_clk_name = "clk100" default_clk_name = "clk100"
default_clk_period = 10.0 default_clk_period = 10.0
def __init__(self, toolchain="vivado", programmer="vivado"): def __init__(self, toolchain="vivado", programmer="vivado"):
XilinxPlatform.__init__(self, "xc7s50csga324-1", _io, XilinxPlatform.__init__(self, "xc7s50csga324-1", _io, _connectors,
toolchain=toolchain) toolchain=toolchain)
self.toolchain.bitstream_commands = \ self.toolchain.bitstream_commands = \
["set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 4 [current_design]"] ["set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 4 [current_design]"]