From: William D. Jones Date: Wed, 4 Oct 2017 05:59:53 +0000 (-0400) Subject: Add iCEStick board. Tested with litescope. X-Git-Tag: 24jan2021_ls180~1803^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5584731190ef5b3b91e5b1bca5eb6c9d09f3be3;p=litex.git Add iCEStick board. Tested with litescope. --- diff --git a/litex/boards/platforms/icestick.py b/litex/boards/platforms/icestick.py new file mode 100644 index 00000000..0d49944d --- /dev/null +++ b/litex/boards/platforms/icestick.py @@ -0,0 +1,57 @@ +from litex.build.generic_platform import * +from litex.build.lattice import LatticePlatform +from litex.build.lattice.programmer import IceStormProgrammer + + +_io = [ + ("user_led", 0, Pins("99"), IOStandard("LVCMOS33")), + ("user_led", 1, Pins("98"), IOStandard("LVCMOS33")), + ("user_led", 2, Pins("97"), IOStandard("LVCMOS33")), + ("user_led", 3, Pins("96"), IOStandard("LVCMOS33")), + ("user_led", 4, Pins("95"), IOStandard("LVCMOS33")), + + ("serial", 0, + Subsignal("rx", Pins("9")), + Subsignal("tx", Pins("8"), Misc("PULLUP")), + Subsignal("rts", Pins("7"), Misc("PULLUP")), + Subsignal("cts", Pins("4"), Misc("PULLUP")), + Subsignal("dtr", Pins("3"), Misc("PULLUP")), + Subsignal("dsr", Pins("2"), Misc("PULLUP")), + Subsignal("dcd", Pins("1"), Misc("PULLUP")), + IOStandard("LVTTL"), + ), + + ("irda", 0, + Subsignal("rx", Pins("106")), + Subsignal("tx", Pins("105")), + Subsignal("sd", Pins("107")), + IOStandard("LVCMOS33") + ), + + ("spiflash", 0, + Subsignal("cs_n", Pins("71"), IOStandard("LVCMOS33")), + Subsignal("clk", Pins("70"), IOStandard("LVCMOS33")), + Subsignal("mosi", Pins("67"), IOStandard("LVCMOS33")), + Subsignal("miso", Pins("68"), IOStandard("LVCMOS33")) + ), + + ("clk12", 0, Pins("21"), IOStandard("LVCMOS33")) +] + +_connectors = [ + ("GPIO0", "44 45 47 48 56 60 61 62"), + ("GPIO1", "119 118 117 116 115 114 113 112"), + ("PMOD", "78 79 80 81 87 88 90 91") +] + + +class Platform(LatticePlatform): + default_clk_name = "clk12" + default_clk_period = 83.333 + + def __init__(self): + LatticePlatform.__init__(self, "ice40-1k-tq144", _io, _connectors, + toolchain="icestorm") + + def create_programmer(self): + return IceStormProgrammer()