Skip to content

Commit

Permalink
Merge pull request litex-hub#578 from hansfbaier/qmtech-optional-core…
Browse files Browse the repository at this point in the history
…-resources

qmtech core boards: make core resources optional
  • Loading branch information
enjoy-digital authored Apr 4, 2024
2 parents 44ab802 + af1cdc4 commit cb84141
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions litex_boards/platforms/qmtech_10cl006.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Platform(AlteraPlatform):
),
]

def __init__(self, toolchain="quartus", with_daughterboard=False):
def __init__(self, toolchain="quartus", with_daughterboard=False, with_core_resources=True):
device = "10CL006YU256C8G"
io = _io
connectors = _connectors
Expand All @@ -140,7 +140,7 @@ def __init__(self, toolchain="quartus", with_daughterboard=False):
daughterboard = QMTechDaughterboard(IOStandard("3.3-V LVTTL"))
io += daughterboard.io
connectors += daughterboard.connectors
else:
elif with_core_resources:
io += self.core_resources

AlteraPlatform.__init__(self, device, io, connectors, toolchain=toolchain)
Expand Down
4 changes: 2 additions & 2 deletions litex_boards/platforms/qmtech_5cefa2.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class Platform(AlteraPlatform):
),
]

def __init__(self, toolchain="quartus", with_daughterboard=False):
def __init__(self, toolchain="quartus", with_daughterboard=False, with_core_resources=True):
device = "5CEFA2F23C8"
io = _io
connectors = _connectors
Expand All @@ -139,7 +139,7 @@ def __init__(self, toolchain="quartus", with_daughterboard=False):
daughterboard = QMTechDaughterboard(IOStandard("3.3-V LVTTL"))
io += daughterboard.io
connectors += daughterboard.connectors
else:
elif with_core_resources:
io += self.core_resources

AlteraPlatform.__init__(self, device, io, connectors, toolchain=toolchain)
Expand Down
4 changes: 2 additions & 2 deletions litex_boards/platforms/qmtech_5cefa5.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class Platform(AlteraPlatform):
),
]

def __init__(self, toolchain="quartus", with_daughterboard=False):
def __init__(self, toolchain="quartus", with_daughterboard=False, with_core_resources=True):
device = "5CEFA5F23I7"
io = _io
connectors = _connectors
Expand All @@ -142,7 +142,7 @@ def __init__(self, toolchain="quartus", with_daughterboard=False):
daughterboard = QMTechDaughterboard(IOStandard("3.3-V LVCMOS"))
io += daughterboard.io
connectors += daughterboard.connectors
else:
elif with_core_resources:
io += self.core_resources

AlteraPlatform.__init__(self, device, io, connectors, toolchain=toolchain)
Expand Down
4 changes: 2 additions & 2 deletions litex_boards/platforms/qmtech_ep4cex5.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Platform(AlteraPlatform):
),
]

def __init__(self, variant="ep4ce15", toolchain="quartus", with_daughterboard=False):
def __init__(self, variant="ep4ce15", toolchain="quartus", with_daughterboard=False, with_core_resources=True):
device = {
"ep4ce15": "EP4CE15F23C8",
"ep4ce55": "EP4CE55F23C8"
Expand All @@ -143,7 +143,7 @@ def __init__(self, variant="ep4ce15", toolchain="quartus", with_daughterboard=Fa
daughterboard = QMTechDaughterboard(IOStandard("3.3-V LVTTL"))
io += daughterboard.io
connectors += daughterboard.connectors
else:
elif with_core_resources:
io += self.core_resources

AlteraPlatform.__init__(self, device, io, connectors, toolchain=toolchain)
Expand Down
4 changes: 2 additions & 2 deletions litex_boards/platforms/qmtech_ep4cgx150.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Platform(AlteraPlatform):
),
]

def __init__(self, toolchain="quartus", with_daughterboard=False):
def __init__(self, toolchain="quartus", with_daughterboard=False, with_core_resources=True):
device = "EP4CGX150DF27I7"
io = _io
connectors = _connectors
Expand All @@ -141,7 +141,7 @@ def __init__(self, toolchain="quartus", with_daughterboard=False):
daughterboard = QMTechDaughterboard(IOStandard("3.3-V LVTTL"))
io += daughterboard.io
connectors += daughterboard.connectors
else:
elif with_core_resources:
io += self.core_resources

AlteraPlatform.__init__(self, device, io, connectors, toolchain=toolchain)
Expand Down
6 changes: 3 additions & 3 deletions litex_boards/platforms/qmtech_xc7a35t.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Platform(Xilinx7SeriesPlatform):
("cpu_reset", 0, Pins("K5"), IOStandard("LVCMOS33")),
]

def __init__(self, toolchain="vivado", with_daughterboard=False):
def __init__(self, toolchain="vivado", with_daughterboard=False, with_core_resources=True):
device = "xc7a35tftg256-1"
io = _io
connectors = _connectors
Expand All @@ -155,7 +155,7 @@ def __init__(self, toolchain="vivado", with_daughterboard=False):
daughterboard = QMTechDaughterboard(IOStandard("LVCMOS33"))
io += daughterboard.io
connectors += daughterboard.connectors
else:
elif with_core_resources:
io += self.core_resources

Xilinx7SeriesPlatform.__init__(self, device, io, connectors, toolchain=toolchain)
Expand All @@ -177,4 +177,4 @@ def create_programmer(self):

def do_finalize(self, fragment):
Xilinx7SeriesPlatform.do_finalize(self, fragment)
self.add_period_constraint(self.lookup_request("clk50", loose=True), 1e9/50e6)
self.add_period_constraint(self.lookup_request("clk50", loose=True), 1e9/50e6)
4 changes: 2 additions & 2 deletions litex_boards/platforms/qmtech_xc7k325t.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class Platform(XilinxPlatform):
("user_led", 1, Pins("H26"), IOStandard("LVCMOS33")),
]

def __init__(self, toolchain="vivado", with_daughterboard=False):
def __init__(self, toolchain="vivado", with_daughterboard=False, with_core_resources=True):
device = "xc7k325tffg676-1"
io = _io
connectors = _connectors
Expand All @@ -162,7 +162,7 @@ def __init__(self, toolchain="vivado", with_daughterboard=False):
daughterboard = QMTechDaughterboard(IOStandard("LVCMOS33"))
io += daughterboard.io
connectors += daughterboard.connectors
else:
elif with_core_resources:
io += self.core_resources_standalone

XilinxPlatform.__init__(self, device, io, connectors, toolchain=toolchain)
Expand Down

0 comments on commit cb84141

Please sign in to comment.