Skip to content

Commit

Permalink
build/gowin/apicula: append _synth_opts with specific requirements ac…
Browse files Browse the repository at this point in the history
…cording to FPGA model
  • Loading branch information
trabucayre committed Sep 1, 2024
1 parent 15cd556 commit 3da4700
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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 Down

0 comments on commit 3da4700

Please sign in to comment.