Ejemplo n.º 1
0
 def __init__(self, revision=None, toolchain="icestorm"):
     self.revision = revision
     if revision == "evt":
         from litex_boards.platforms.fomu_evt import _io, _connectors
         LatticePlatform.__init__(self,
                                  "ice40-up5k-sg48",
                                  _io,
                                  _connectors,
                                  toolchain="icestorm")
         self.spi_size = 16 * 1024 * 1024
         self.spi_dummy = 6
     elif revision == "dvt":
         from litex_boards.platforms.fomu_pvt import _io, _connectors
         LatticePlatform.__init__(self,
                                  "ice40-up5k-uwg30",
                                  _io,
                                  _connectors,
                                  toolchain="icestorm")
         self.spi_size = 2 * 1024 * 1024
         self.spi_dummy = 6
     elif revision == "pvt":
         from litex_boards.platforms.fomu_pvt import _io, _connectors
         LatticePlatform.__init__(self,
                                  "ice40-up5k-uwg30",
                                  _io,
                                  _connectors,
                                  toolchain="icestorm")
         self.spi_size = 2 * 1024 * 1024
         self.spi_dummy = 6
     elif revision == "hacker":
         from litex_boards.platforms.fomu_hacker import _io, _connectors
         LatticePlatform.__init__(self,
                                  "ice40-up5k-uwg30",
                                  _io,
                                  _connectors,
                                  toolchain="icestorm")
         self.spi_size = 2 * 1024 * 1024
         self.spi_dummy = 4
     elif revision == "jeannie":
         from litex_boards.platforms.gadgetfactory_jeannie import _io, _connectors
         LatticePlatform.__init__(self,
                                  "ice40-up5k-sg48",
                                  _io,
                                  _connectors,
                                  toolchain="icestorm")
         self.spi_size = 16 * 1024 * 1024
         self.spi_dummy = 4
     else:
         raise ValueError(
             "Unrecognized revision: {}.  Known values: evt, dvt, pvt, hacker"
             .format(revision))
Ejemplo n.º 2
0
 def __init__(self, revision="pvt", toolchain="icestorm"):
     self.revision = revision
     if revision == "evt":
         LatticePlatform.__init__(self,
                                  "ice40-up5k-sg48",
                                  _io_evt,
                                  _connectors,
                                  toolchain="icestorm")
     elif revision == "dvt":
         LatticePlatform.__init__(self,
                                  "ice40-up5k-uwg30",
                                  _io_dvt,
                                  _connectors,
                                  toolchain="icestorm")
     elif revision == "pvt":
         LatticePlatform.__init__(self,
                                  "ice40-up5k-uwg30",
                                  _io_pvt,
                                  _connectors,
                                  toolchain="icestorm")
     elif revision == "hacker":
         LatticePlatform.__init__(self,
                                  "ice40-up5k-uwg30",
                                  _io_hacker,
                                  _connectors,
                                  toolchain="icestorm")
     else:
         raise ValueError(
             "Unrecognized reivsion: {}.  Known values: evt, dvt, pvt, hacker"
             .format(revision))
Ejemplo n.º 3
0
 def __init__(self, io, toolchain="icestorm", revision="pvt"):
     self.revision = revision
     LatticePlatform.__init__(self, "ice40-up5k-sg48", io, toolchain="icestorm")
 def __init__(self):
     LatticePlatform.__init__(self,
                              "ice40-hx8k-ct256",
                              _io,
                              toolchain="icestorm")