From d0b7f54d2763c9ac34b74c19f0750491cc13ea18 Mon Sep 17 00:00:00 2001 From: Andrew Dennison Date: Tue, 30 May 2023 15:17:03 +1000 Subject: [PATCH] build/openfpgaloader: support --fpga-part --- litex/build/openfpgaloader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litex/build/openfpgaloader.py b/litex/build/openfpgaloader.py index d3ca7773f..abaf12d74 100644 --- a/litex/build/openfpgaloader.py +++ b/litex/build/openfpgaloader.py @@ -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: