build/gowin/gowin: adding list of additional cst commands (to place resources)

Signed-off-by: Gwenhael Goavec-Merou <gwenhael@enjoy-digital.fr>
This commit is contained in:
Gwenhael Goavec-Merou 2024-01-10 06:52:06 +01:00
parent 31d3325219
commit a2c2d70841
1 changed files with 3 additions and 0 deletions

View File

@ -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:
@ -108,6 +109,8 @@ class GowinToolchain(GenericToolchain):
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")