Exemplo n.º 1
0
 def __init__(self, *args, toolchain="diamond", **kwargs):
     GenericPlatform.__init__(self, *args, **kwargs)
     if toolchain == "diamond":
         self.toolchain = diamond.LatticeDiamondToolchain()
     elif toolchain == "icestorm":
         self.bitstream_ext = ".bin"
         self.toolchain = icestorm.LatticeIceStormToolchain()
     else:
         raise ValueError("Unknown toolchain")
Exemplo n.º 2
0
 def __init__(self, *args, toolchain="diamond", **kwargs):
     GenericPlatform.__init__(self, *args, **kwargs)
     if toolchain == "diamond":
         self.toolchain = diamond.LatticeDiamondToolchain()
     elif toolchain == "trellis":
         self.toolchain = trellis.LatticeTrellisToolchain()
     elif toolchain == "icestorm":
         self.bitstream_ext = ".bin"
         self.toolchain = icestorm.LatticeIceStormToolchain()
     elif toolchain == "radiant":
         self.toolchain = radiant.LatticeRadiantToolchain()
     elif toolchain == "oxide":
         self.toolchain = oxide.LatticeOxideToolchain()
     else:
         raise ValueError("Unknown toolchain")