Skip to content

Commit

Permalink
build/xilinx/platform: Add XilinxUS/USPPlatform.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital authored and zakrent committed Oct 22, 2024
1 parent 4c73cf9 commit d6bb4e3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
16 changes: 14 additions & 2 deletions litex/build/xilinx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
from litex.build.xilinx.platform import XilinxPlatform, XilinxSpartan6Platform, Xilinx7SeriesPlatform
from litex.build.xilinx.programmer import UrJTAG, XC3SProg, FpgaProg, VivadoProgrammer, iMPACT, Adept
# Platforms.
from litex.build.xilinx.platform import XilinxPlatform
from litex.build.xilinx.platform import XilinxSpartan6Platform
from litex.build.xilinx.platform import Xilinx7SeriesPlatform
from litex.build.xilinx.platform import XilinxUSPlatform
from litex.build.xilinx.platform import XilinxUSPPlatform

# Programmers.
from litex.build.xilinx.programmer import UrJTAG
from litex.build.xilinx.programmer import XC3SProg
from litex.build.xilinx.programmer import FpgaProg
from litex.build.xilinx.programmer import VivadoProgrammer
from litex.build.xilinx.programmer import iMPACT
from litex.build.xilinx.programmer import Adept
23 changes: 17 additions & 6 deletions litex/build/xilinx/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ class XilinxPlatform(GenericPlatform):
bitstream_ext = ".bit"

_supported_toolchains = {
"7series" : ["vivado", "f4pga", "yosys+nextpnr"],
"spartan6" : ["ise"],
"spartan6" : ["ise"],
"7series" : ["vivado", "f4pga", "yosys+nextpnr"],
"ultrascale" : ["vivado"],
"ultrascale+" : ["vivado"],
}

def __init__(self, *args, toolchain="ise", **kwargs):
Expand Down Expand Up @@ -126,13 +128,22 @@ def get_argdict(cls, toolchain, args):
else:
return dict()

# Xilinx7SeriesPlatform -----------------------------------------------------------------------------
# XilinxSpartan6Platform ---------------------------------------------------------------------------

class XilinxSpartan6Platform(XilinxPlatform):
device_family = "spartan6"

# Xilinx7SeriesPlatform ----------------------------------------------------------------------------

class Xilinx7SeriesPlatform(XilinxPlatform):
device_family = "7series"

# XilinxSpartan6Platform ---------------------------------------------------------------------------
# XilinxUSPlatform ---------------------------------------------------------------------------------

class XilinxSpartan6Platform(XilinxPlatform):
device_family = "spartan6"
class XilinxUSPlatform(XilinxPlatform):
device_family = "ultrascale"

# XilinxUSPPlatform --------------------------------------------------------------------------------

class XilinxUSPPlatform(XilinxPlatform):
device_family = "ultrascale+"

0 comments on commit d6bb4e3

Please sign in to comment.