Merge pull request #2042 from pepijndevos/apicula

Gowin: add dual use gpio options
This commit is contained in:
Gwenhael Goavec-Merou 2024-08-16 18:58:04 +02:00 committed by GitHub
commit 26e7eef3ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class GowinApiculaToolchain(YosysNextPNRToolchain):
def __init__(self):
super().__init__()
self.options = {}
self.additional_cst_commands = []
def build_io_constraints(self):
@ -37,6 +38,11 @@ class GowinApiculaToolchain(YosysNextPNRToolchain):
top = self._build_name
)
# use_mspi_as_gpio and friends
for option, value in self.options.items():
if option.startswith("use_") and value:
self._packer_opts += " --" + option[4:]
YosysNextPNRToolchain.finalize(self)
# family is gowin but NextPNRWrapper needs to call 'nextpnr-himbaechel' not 'nextpnr-gowin'