Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gowin apicula fix #2055

Merged
merged 2 commits into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion litex/build/gowin/apicula.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def finalize(self):
elif devicename == "GW2AR-18":
devicename = "GW2A-18"

# yosys doesn't know that some variant doesn't have lutram so we tell it
if devicename in ["GW1NS-4"]:
self._synth_opts += " -nolutram"

pnr_opts = "--write {top}_routed.json --top {top} --device {device}" + \
" --vopt family={devicename} --vopt cst={top}.cst"
self._pnr_opts += pnr_opts.format(
Expand All @@ -56,7 +60,9 @@ def finalize(self):
# use_mspi_as_gpio and friends
for option, value in self.options.items():
if option.startswith("use_") and value:
self._packer_opts += " --" + option[4:]
# Not all options are supported and may be just Gowin's software check
if option not in ["use_mode_as_gpio"]:
self._packer_opts += " --" + option[4:]

YosysNextPNRToolchain.finalize(self)

Expand Down
Loading