create_programmer is not really longer used, so try to keep it simple.
default_clk_name = "clk100"
default_clk_period = 10.0
- def __init__(self, toolchain="vivado", programmer="vivado"):
- XilinxPlatform.__init__(self, "xc7a35ticsg324-1L", _io, _connectors,
- toolchain=toolchain)
+ def __init__(self):
+ XilinxPlatform.__init__(self, "xc7a35ticsg324-1L", _io, _connectors, toolchain="vivado")
self.toolchain.bitstream_commands = \
["set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 4 [current_design]"]
self.toolchain.additional_commands = \
["write_cfgmem -force -format bin -interface spix4 -size 16 "
"-loadbit \"up 0x0 {build_name}.bit\" -file {build_name}.bin"]
- self.programmer = programmer
self.add_platform_command("set_property INTERNAL_VREF 0.675 [get_iobanks 34]")
def create_programmer(self):
- if self.programmer == "xc3sprog":
- return XC3SProg("nexys4")
- elif self.programmer == "vivado":
- return VivadoProgrammer(flash_part="n25q128-3.3v-spi-x1_x2_x4")
- else:
- raise ValueError("{} programmer is not supported"
- .format(self.programmer))
+ return VivadoProgrammer(flash_part="n25q128-3.3v-spi-x1_x2_x4")
default_clk_name = "clk200"
default_clk_period = 5
- def __init__(self, programmer="vivado"):
+ def __init__(self):
XilinxPlatform.__init__(self, "xc7k325t-ffg900-2", _io, _connectors, toolchain="vivado")
- self.programmer = programmer
def create_programmer(self):
- if self.programmer == "vivado":
- return VivadoProgrammer()
- else:
- raise ValueError("{} programmer is not supported".format(programmer))
+ return VivadoProgrammer()
def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)
default_clk_name = "clk156"
default_clk_period = 6.4
- def __init__(self, programmer="vivado"):
+ def __init__(self):
XilinxPlatform.__init__(self, "xc7k325t-ffg900-2", _io, _connectors, toolchain="vivado")
self.add_platform_command("""
set_property CFGBVS VCCO [current_design]
""")
self.toolchain.bitstream_commands = ["set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 4 [current_design]"]
self.toolchain.additional_commands = ["write_cfgmem -force -format bin -interface spix4 -size 16 -loadbit \"up 0x0 {build_name}.bit\" -file {build_name}.bin"]
- self.programmer = programmer
def create_programmer(self):
if self.programmer == "xc3sprog":
default_clk_period = 8.0
def __init__(self):
- XilinxPlatform.__init__(self, "xcku040-ffva1156-2-e", _io, _connectors,
- toolchain="vivado")
+ XilinxPlatform.__init__(self, "xcku040-ffva1156-2-e", _io, _connectors, toolchain="vivado")
def create_programmer(self):
return VivadoProgrammer()
default_clk_name = "clk32"
default_clk_period = 31.25
- def __init__(self, device="xc6slx9", programmer="xc3sprog"):
- self.programmer = programmer
+ def __init__(self, device="xc6slx9"):
XilinxPlatform.__init__(self, device+"-3-ftg256", _io, _connectors)
def create_programmer(self):
- if self.programmer == "xc3sprog":
- return XC3SProg("minispartan6", "bscan_spi_minispartan6.bit")
- elif self.programmer == "fpgaprog":
- return FpgaProg()
- else:
- raise ValueError("{} programmer is not supported".format(
- self.programmer))
+ return FpgaProg()
default_clk_name = "clk100"
default_clk_period = 10.0
- def __init__(self, programmer="vivado"):
+ def __init__(self):
XilinxPlatform.__init__(self, "xc7a100t-CSG324-1", _io, toolchain="vivado")
- self.programmer = programmer
self.add_platform_command("set_property INTERNAL_VREF 0.750 [get_iobanks 34]")
-
def create_programmer(self):
- if self.programmer == "xc3sprog":
- return XC3SProg("nexys4")
- elif self.programmer == "vivado":
- return VivadoProgrammer()
- else:
- raise ValueError("{} programmer is not supported"
- .format(self.programmer))
+ return VivadoProgrammer()
def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)
default_clk_name = "clk100"
default_clk_period = 10.0
- def __init__(self, toolchain="vivado", programmer="vivado"):
- XilinxPlatform.__init__(self, "xc7a200t-sbg484-1", _io, _connectors,
- toolchain=toolchain)
+ def __init__(self):
+ XilinxPlatform.__init__(self, "xc7a200t-sbg484-1", _io, _connectors, toolchain="vivado")
self.toolchain.bitstream_commands = \
["set_property BITSTREAM.CONFIG.SPI_BUSWIDTH 4 [current_design]"]
self.toolchain.additional_commands = \
["write_cfgmem -force -format bin -interface spix4 -size 16 "
"-loadbit \"up 0x0 {build_name}.bit\" -file {build_name}.bin"]
- self.programmer = programmer
self.add_platform_command("set_property INTERNAL_VREF 0.750 [get_iobanks 35]")
def create_programmer(self):
- if self.programmer == "xc3sprog":
- return XC3SProg("nexys4")
- elif self.programmer == "vivado":
- return VivadoProgrammer(flash_part="n25q128-3.3v-spi-x1_x2_x4")
- else:
- raise ValueError("{} programmer is not supported"
- .format(self.programmer))
+ return VivadoProgrammer(flash_part="n25q128-3.3v-spi-x1_x2_x4")
def do_finalize(self, fragment):
XilinxPlatform.do_finalize(self, fragment)
default_clk_period = 62.5
def __init__(self):
- LatticePlatform.__init__(self, "ice40-lp8k-cm81", _io, _connectors,
- toolchain="icestorm")
+ LatticePlatform.__init__(self, "ice40-lp8k-cm81", _io, _connectors, toolchain="icestorm")
def create_programmer(self):
return TinyProgProgrammer()