Merge pull request #2042 from pepijndevos/apicula
Gowin: add dual use gpio options
This commit is contained in:
commit
26e7eef3ce
|
@ -17,6 +17,7 @@ class GowinApiculaToolchain(YosysNextPNRToolchain):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
self.options = {}
|
||||||
self.additional_cst_commands = []
|
self.additional_cst_commands = []
|
||||||
|
|
||||||
def build_io_constraints(self):
|
def build_io_constraints(self):
|
||||||
|
@ -37,6 +38,11 @@ class GowinApiculaToolchain(YosysNextPNRToolchain):
|
||||||
top = self._build_name
|
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)
|
YosysNextPNRToolchain.finalize(self)
|
||||||
|
|
||||||
# family is gowin but NextPNRWrapper needs to call 'nextpnr-himbaechel' not 'nextpnr-gowin'
|
# family is gowin but NextPNRWrapper needs to call 'nextpnr-himbaechel' not 'nextpnr-gowin'
|
||||||
|
|
Loading…
Reference in New Issue