From 16a629269d573bc019d06ac77754a33bbd9541e8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 22 Oct 2021 14:52:38 +0200 Subject: [PATCH] efinix_xyloni_dev_kit: Describe IOs in similar order than the other platforms. --- .../platforms/efinix_xyloni_dev_kit.py | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/litex_boards/platforms/efinix_xyloni_dev_kit.py b/litex_boards/platforms/efinix_xyloni_dev_kit.py index 3990395..fb7dd49 100644 --- a/litex_boards/platforms/efinix_xyloni_dev_kit.py +++ b/litex_boards/platforms/efinix_xyloni_dev_kit.py @@ -11,9 +11,26 @@ from litex.build.efinix import EfinixProgrammer # IOs ---------------------------------------------------------------------------------------------- _io = [ - # Clk 33.333MHz Oscillator + # Clk ("clk33", 0, Pins("C3"), IOStandard("3.3_V_LVTTL_/_LVCMOS")), # net PLL_IN + # Buttons + ("user_btn", 0, Pins("C5"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("WEAK_PULLUP")), + ("user_btn", 1, Pins("C9"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("WEAK_PULLUP")), + + # Leds + ("user_led", 0, Pins("B3"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), + ("user_led", 1, Pins("J6"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), + ("user_led", 2, Pins("D7"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), + ("user_led", 3, Pins("D8"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), + + # Serial + ("serial", 0, + Subsignal("tx", Pins("F3")), # net TXD + Subsignal("rx", Pins("H2")), # net RXD + IOStandard("3.3_V_LVTTL_/_LVCMOS") + ), + # SPIFlash (W25Q128JVSIM) ("spiflash", 0, Subsignal("cs_n", Pins("J4")), # net SPI_SS @@ -27,7 +44,7 @@ _io = [ # SDCard ("spisdcard", 0, - # all 4 SPI signals below have 10k pullup on dev board + # All 4 SPI signals below have 10k pullup on dev board Subsignal("clk", Pins("J2")), # net SD_SCLK Subsignal("cs_n", Pins("G5")), # net SD_CS Subsignal("mosi", Pins("G4")), # net SD_DI @@ -36,23 +53,6 @@ _io = [ Misc("SLEW=FAST"), IOStandard("3.3_V_LVTTL_/_LVCMOS") ), - - # Leds # nets LED1-4 - ("user_led", 0, Pins("B3"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), - ("user_led", 1, Pins("J6"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), - ("user_led", 2, Pins("D7"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), - ("user_led", 3, Pins("D8"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("DRIVE_STRENGTH=3")), - - # Buttons nets BTN1-2 - ("user_btn", 0, Pins("C5"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("WEAK_PULLUP")), - ("user_btn", 1, Pins("C9"), IOStandard("3.3_V_LVTTL_/_LVCMOS"), Misc("WEAK_PULLUP")), - - # Serial / PMOD USB-UART on PMOD E. - ("serial", 0, - Subsignal("tx", Pins("F3")), # net TXD - Subsignal("rx", Pins("H2")), # net RXD - IOStandard("3.3_V_LVTTL_/_LVCMOS") - ), ] # Connectors ---------------------------------------------------------------------------------------