build/openfpgaloader: support --fpga-part

This commit is contained in:
Andrew Dennison 2023-05-30 15:17:03 +10:00 committed by Florent Kermarrec
parent bd7b951af0
commit d0b7f54d27
1 changed files with 3 additions and 1 deletions

View File

@ -12,10 +12,12 @@ from litex.build.generic_programmer import GenericProgrammer
class OpenFPGALoader(GenericProgrammer):
needs_bitreverse = False
def __init__(self, board="", cable="", freq=0, index_chain=None):
def __init__(self, board="", cable="", freq=0, fpga_part="", index_chain=None):
self.cmd = ["openFPGALoader"]
if board:
self.cmd += ["--board", board]
if fpga_part:
self.cmd += ["--fpga-part", fpga_part]
if cable:
self.cmd += ["--cable", cable]
if freq: