From 3cef11e04d70128a4961bc64e5cf6c7245524832 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 13 Sep 2022 14:26:52 +0200 Subject: [PATCH] platforms/newae_cw305: Add sma_clk_in/out, buttons, switches and expansion header connector. --- litex_boards/platforms/newae_cw305.py | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/litex_boards/platforms/newae_cw305.py b/litex_boards/platforms/newae_cw305.py index c1d7586..485d64e 100644 --- a/litex_boards/platforms/newae_cw305.py +++ b/litex_boards/platforms/newae_cw305.py @@ -11,15 +11,38 @@ from litex.build.openocd import OpenOCD # IOs ---------------------------------------------------------------------------------------------- _io = [ - # Leds + # Clk. + ("sma_clk_in", 0, Pins("N11"), IOStandard("LVCMOS33")), + ("sma_clk_out", 0, Pins("T13"), IOStandard("LVCMOS33")), + + # Leds. ("user_led", 0, Pins("T2"), IOStandard("LVCMOS33")), ("user_led", 1, Pins("T3"), IOStandard("LVCMOS33")), ("user_led", 2, Pins("T4"), IOStandard("LVCMOS33")), + + # Buttons. + ("user_btn", 0, Pins("R1"), IOStandard("LVCMOS33")), + + # Switches. + ("user_sw", 0, Pins("J16"), IOStandard("LVCMOS33")), + ("user_sw", 1, Pins("K16"), IOStandard("LVCMOS33")), + ("user_sw", 2, Pins("K15"), IOStandard("LVCMOS33")), + ("user_sw", 3, Pins("L14"), IOStandard("LVCMOS33")), ] # Connectors --------------------------------------------------------------------------------------- -_connectors = [] +_connectors = [ + ["expansion", + # ------------------------------------------------- + "---", # 0 + # ------------------------------------------------- + # 3V3 3V3 GND GND + " --- --- --- --- A12 B12 A14 A13 A15 B15 C12 C11 B14 C14 B16 C16 C13 D13", + # 3V3 3V3 GND GND TRI CLK GND GND + " --- --- --- --- D15 --- E15 D16 E13 E16 F15 F12 E11 F13 --- --- --- ---", + ], +] # Platform -----------------------------------------------------------------------------------------