当前位置: 首页>>代码示例>>Python>>正文


Python XilinxPlatform.__init__方法代码示例

本文整理汇总了Python中mibuild.xilinx.XilinxPlatform.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python XilinxPlatform.__init__方法的具体用法?Python XilinxPlatform.__init__怎么用?Python XilinxPlatform.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mibuild.xilinx.XilinxPlatform的用法示例。


在下文中一共展示了XilinxPlatform.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
    def __init__(self):
        XilinxPlatform.__init__(self, "xc6slx9-2csg324", _io)
        self.add_platform_command("""
CONFIG VCCAUX = "3.3";
""")
        self.toolchain.bitgen_opt = "-g LCK_cycle:6 -g Binary:Yes -w -g SPI_buswidth:4"
        self.toolchain.ise_commands = """
开发者ID:fallen,项目名称:migen,代码行数:9,代码来源:lx9_microboard.py

示例2: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
    def __init__(self, programmer="xc3sprog"):
        # XC6SLX45-2CSG324C
        XilinxPlatform.__init__(self,  "xc6slx45-csg324-3", _io, _connectors)
        self.programmer = programmer

        # FPGA AUX is connected to the 2.5V supply on the Atlys
        self.add_platform_command("""CONFIG VCCAUX="2.5";""")
开发者ID:shenki,项目名称:HDMI2USB-misoc-firmware,代码行数:9,代码来源:atlys.py

示例3: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
 def __init__(self, toolchain="vivado", programmer="xc3sprog"):
     XilinxPlatform.__init__(self, "xc7k325t-ffg900-2", _io, _connectors,
         toolchain=toolchain)
     if toolchain == "ise":
         self.toolchain.bitgen_opt = "-g LCK_cycle:6 -g Binary:Yes -w -g ConfigRate:12 -g SPI_buswidth:4"
     elif 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
开发者ID:rohit91,项目名称:migen,代码行数:11,代码来源:kc705.py

示例4: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
    def __init__(self):
        XilinxPlatform.__init__(self, "xc3s500e-4pq208", _io)
        self.toolchain.xst_opt = """-ifmt MIXED
-opt_level 2
-opt_mode SPEED
-register_balancing yes"""
        self.toolchain.bitgen_opt += (" -g GTS_cycle:3 -g LCK_cycle:4 "
                                      "-g GWE_cycle:5 -g DONE_cycle:6")
        self.toolchain.ise_commands += """
开发者ID:nist-ionstorage,项目名称:pdq2,代码行数:11,代码来源:platform.py

示例5: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
    def __init__(self, programmer="openocd", vccb2_voltage="VCC3V3"):
        # Some IO configurations only work at certain vccb2 voltages.
        if vccb2_voltage == "VCC3V3":
            _io.extend(_io_vccb2_3v3)
        elif vccb2_voltage == "VCC2V5":
            _io.extend(_io_vccb2_2v5)
        else:
            raise SystemError("Unknown vccb2_voltage=%r" % vccb2_voltage)

        # Resolve the LVCMOS_BANK2 voltage level before anything uses the _io
        # definition.
        LVCMOS_BANK2.set(vccb2_voltage)

        # XC6SLX45-2CSG324C
        XilinxPlatform.__init__(self,  "xc6slx45-csg324-3", _io, _connectors)
        self.programmer = programmer

        # FPGA AUX is connected to the 3.3V supply on the Atlys
        self.add_platform_command("""CONFIG VCCAUX="3.3";""")
开发者ID:ssk1328,项目名称:HDMI2USB-misoc-firmware,代码行数:21,代码来源:atlys.py

示例6: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
    def __init__(self, programmer="openocd"):
        # XC6SLX45T-3FGG484C
        XilinxPlatform.__init__(self,  "xc6slx45t-fgg484-3", _io, _connectors)
        self.programmer = programmer

        pins = {
          'ProgPin': 'PullUp',
          'DonePin': 'PullUp',
          'TckPin': 'PullNone',
          'TdiPin': 'PullNone',
          'TdoPin': 'PullNone',
          'TmsPin': 'PullNone',
          'UnusedPin': 'PullNone',
          }
        for pin, config in pins.items():
            self.toolchain.bitgen_opt += " -g %s:%s " % (pin, config)

        # FPGA AUX is connected to the 3.3V supply
        self.add_platform_command("""CONFIG VCCAUX="3.3";""")
开发者ID:RacingTornado,项目名称:sdcc_sigev11,代码行数:21,代码来源:opsis.py

示例7: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
    def __init__(self, programmer="xc3sprog"):
        # XC6SLX45T-3FGG484C
        XilinxPlatform.__init__(self, "xc6slx45t-fgg484-3", _io, _connectors)

        pins = {
            "ProgPin": "PullUp",
            "DonePin": "PullUp",
            "TckPin": "PullNone",
            "TdiPin": "PullNone",
            "TdoPin": "PullNone",
            "TmsPin": "PullNone",
            "UnusedPin": "PullNone",
        }
        for pin, config in pins.items():
            self.toolchain.bitgen_opt += " -g %s:%s " % (pin, config)

        self.programmer = programmer

        # FPGA AUX is connected to the 3.3V supply
        self.add_platform_command("""CONFIG VCCAUX="3.3";""")
开发者ID:ajitmathew,项目名称:HDMI2USB-misoc-firmware,代码行数:22,代码来源:opsis.py

示例8: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
    def __init__(self, device, pins, std):
        cs_n, clk, mosi, miso = pins[:4]
        io = ["spiflash", 0,
              Subsignal("cs_n", Pins(cs_n)),
              Subsignal("mosi", Pins(mosi)),
              Subsignal("miso", Pins(miso), Misc("PULLUP")),
              IOStandard(std),
              ]
        if clk:
            io.append(Subsignal("clk", Pins(clk)))
        for i, p in enumerate(pins[4:]):
            io.append(Subsignal("pullup{}".format(i), Pins(p), Misc("PULLUP")))

        XilinxPlatform.__init__(self, device, [io])
        if isinstance(self.toolchain, XilinxVivadoToolchain):
            self.toolchain.bitstream_commands.append(
                "set_property BITSTREAM.GENERAL.COMPRESS True [current_design]"
            )
        elif isinstance(self.toolchain, XilinxISEToolchain):
            self.toolchain.bitgen_opt += " -g compress"
开发者ID:ChenXuJasper,项目名称:openocd,代码行数:22,代码来源:xilinx_bscan_spi.py

示例9: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
 def __init__(self, device="xc6slx25", programmer="fpgaprog"):
     self.programmer = programmer
     XilinxPlatform.__init__(self, device+"-3-ftg256", _io, _connectors)
开发者ID:shenki,项目名称:scarab-soc,代码行数:5,代码来源:minispartan6.py

示例10: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
    def __init__(self):
        XilinxPlatform.__init__(self, "xc6slx150-3csg484", _io)
        self.add_platform_command("""
CONFIG VCCAUX = "2.5";
""")
开发者ID:fallen,项目名称:migen,代码行数:7,代码来源:ztex_115d.py

示例11: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
 def __init__(self, device="xc3s200a-4-vq100"):
     XilinxPlatform.__init__(self, device, _io, _connectors)
     # Small device- optimize for AREA instead of SPEED (LM32 runs at about
     # 60-65MHz in AREA configuration).
     self.toolchain.xst_opt = """-ifmt MIXED
开发者ID:rohit91,项目名称:migen,代码行数:7,代码来源:mercury.py

示例12: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
 def __init__(self):
     XilinxPlatform.__init__(self, "xc3s1400a-ft256-4", _io)
     self.toolchain.bitgen_opt = "-g LCK_cycle:6 -g Binary:Yes -w -g UnusedPin:PullUp"
开发者ID:fallen,项目名称:migen,代码行数:5,代码来源:usrp_b100.py

示例13: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
 def __init__(self):
     XilinxPlatform.__init__(self, "xc7z020-clg484-1", _io)
开发者ID:fallen,项目名称:migen,代码行数:4,代码来源:zedboard.py

示例14: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
 def __init__(self):
     XilinxPlatform.__init__(self, "xc6slx9-csg324-2", _io, _connectors)
开发者ID:rohit91,项目名称:migen,代码行数:4,代码来源:mimasv2.py

示例15: __init__

# 需要导入模块: from mibuild.xilinx import XilinxPlatform [as 别名]
# 或者: from mibuild.xilinx.XilinxPlatform import __init__ [as 别名]
 def __init__(self, programmer="openocd"):
     XilinxPlatform.__init__(self, "xc6slx45-csg324-3", _io, _connectors)
     self.toolchain.bitgen_opt += " -g Compress -g ConfigRate:6"
     self.programmer = programmer
开发者ID:RacingTornado,项目名称:sdcc_sigev11,代码行数:6,代码来源:pipistrello.py


注:本文中的mibuild.xilinx.XilinxPlatform.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。