Fix multiple xdc files

This commit is contained in:
Byron Lathi
2025-02-23 18:06:56 -08:00
parent aaf481b583
commit 933fb8ce79
2 changed files with 4 additions and 4 deletions

View File

@@ -35,7 +35,7 @@ name = "build-fpga" # REQUIRED, is the only field that cannot be marked as dyna
# https://packaging.python.org/guides/single-sourcing-package-version/
# dynamic = ["version"]
version = "0.4.1" # REQUIRED, although can be dynamic
version = "0.4.2" # REQUIRED, although can be dynamic
# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:

View File

@@ -36,7 +36,7 @@ def build_nonprj(cfg):
f.write(f"read_verilog -sv {' '.join(verilog_sources)}\n")
f.write(f"read_ip \"{' '.join(xci_sources)}\"\n")
f.write(f"read_xdc {' '.join(xdc_sources)}\n")
f.write(f"read_xdc \"{' '.join(xdc_sources)}\"\n")
f.write(f"synth_ip [get_ips *]\n")
f.write(f"synth_design -top {top} -directive {synth_directive}\n")
@@ -54,5 +54,5 @@ def build_nonprj(cfg):
f.write(f"write_bitstream -force $outputDir/{top}.bit\n")
f.write(f"exit\n")
os.system(f"vivado -mode tcl -source build.tcl")
os.remove("build.tcl")
os.system(f"vivado -nolog -nojournal -mode tcl -source build.tcl")
os.remove("build.tcl")