Skip to content

Commit

Permalink
build/gowin/gowin: adding list of additional cst commands (to place r…
Browse files Browse the repository at this point in the history
…esources)

Signed-off-by: Gwenhael Goavec-Merou <[email protected]>
  • Loading branch information
trabucayre committed Jan 10, 2024
1 parent 31d3325 commit a2c2d70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions litex/build/gowin/gowin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class GowinToolchain(GenericToolchain):
def __init__(self):
super().__init__()
self.options = {}
self.additional_cst_commands = []

def finalize(self):
if self.platform.verilog_include_paths:
Expand Down Expand Up @@ -108,6 +109,8 @@ def _search_pin_entry(pin_lst, pin_name):
if self.named_pc:
cst.extend(self.named_pc)

cst.extend(self.additional_cst_commands)

tools.write_to_file(f"{self._build_name}.cst", "\n".join(cst))
return (f"{self._build_name}.cst", "CST")

Expand Down

0 comments on commit a2c2d70

Please sign in to comment.