Commit 15c57029 authored by Tristan Gingold's avatar Tristan Gingold

xilinx_prj.py: use single quote instead of double quotes.

Simplify the code.
Adjust baselines
parent 7a78578e
......@@ -59,14 +59,13 @@ class ToolXilinxProject:
fileset_dict = {}
fileset_dict.update(self.HDL_FILES)
fileset_dict.update(self.SUPPORTED_FILES)
q = '' if shell.check_windows_commands() else '"'
# Add all files at once.
self.writeln('\t@echo add_files -norecurse {q}{{{q} >> $@'.format(q=q))
self.writeln("\t@echo add_files -norecurse '{' >> $@")
for srcfile in self.fileset.sort():
if type(srcfile) in fileset_dict:
self.writeln('\t@echo {q}{srcfile}{q} >> $@'.format(
q=q, srcfile=shell.tclpath(srcfile.rel_path())))
self.writeln('\t@echo {q}}}{q} >> $@'.format(q=q))
self.writeln("\t@echo '{}' >> $@".format(
shell.tclpath(srcfile.rel_path())))
self.writeln("\t@echo '}' >> $@")
# Add per file properties (like library)
for srcfile in self.fileset.sort():
command = fileset_dict.get(type(srcfile))
......@@ -82,5 +81,4 @@ class ToolXilinxProject:
cmd = command.format(srcfile=shell.tclpath(srcfile.rel_path()),
library=library)
if cmd:
self.writeln('\t@echo {q}{cmd}{q} >> $@'.format(
q=q, cmd=cmd))
self.writeln("\t@echo '{}' >> $@".format(cmd))
......@@ -28,9 +28,9 @@ endif
all: bitstream
files.tcl:
@echo add_files -norecurse "{" >> $@
@echo "../files/gate.vhdl" >> $@
@echo "}" >> $@
@echo add_files -norecurse '{' >> $@
@echo '../files/gate.vhdl' >> $@
@echo '}' >> $@
SYN_PRE_PROJECT_CMD :=
SYN_POST_PROJECT_CMD :=
......
......@@ -28,9 +28,9 @@ endif
all: bitstream
files.tcl:
@echo add_files -norecurse "{" >> $@
@echo "../files/gate.vhdl" >> $@
@echo "}" >> $@
@echo add_files -norecurse '{' >> $@
@echo '../files/gate.vhdl' >> $@
@echo '}' >> $@
SYN_PRE_PROJECT_CMD :=
SYN_POST_PROJECT_CMD :=
......
......@@ -24,10 +24,10 @@ work/gate/.gate_vhdl: ../files/gate.vhdl
project.tcl: Makefile
@echo "create_project -force $(TOP_MODULE)_prj ./" > $@
@echo add_files -norecurse "{" >> $@
@echo "../files/gate.vhdl" >> $@
@echo "}" >> $@
@echo "set_property LIBRARY work [get_files ../files/gate.vhdl]" >> $@
@echo add_files -norecurse '{' >> $@
@echo '../files/gate.vhdl' >> $@
@echo '}' >> $@
@echo 'set_property LIBRARY work [get_files ../files/gate.vhdl]' >> $@
@echo "exit" >> $@
project: project.tcl
......
......@@ -28,9 +28,9 @@ endif
all: bitstream
files.tcl:
@echo add_files -norecurse "{" >> $@
@echo "../files/gate.vhdl" >> $@
@echo "}" >> $@
@echo add_files -norecurse '{' >> $@
@echo '../files/gate.vhdl' >> $@
@echo '}' >> $@
SYN_PRE_PROJECT_CMD :=
SYN_POST_PROJECT_CMD :=
......
......@@ -28,9 +28,9 @@ endif
all: bitstream
files.tcl:
@echo add_files -norecurse "{" >> $@
@echo "../files/gate.vhdl" >> $@
@echo "}" >> $@
@echo add_files -norecurse '{' >> $@
@echo '../files/gate.vhdl' >> $@
@echo '}' >> $@
SYN_PRE_PROJECT_CMD :=
SYN_POST_PROJECT_CMD :=
......
......@@ -28,10 +28,10 @@ endif
all: bitstream
files.tcl:
@echo add_files -norecurse "{" >> $@
@echo "vio_din2_w64_dout2_w64.xci" >> $@
@echo "xci_test.vhd" >> $@
@echo "}" >> $@
@echo add_files -norecurse '{' >> $@
@echo 'vio_din2_w64_dout2_w64.xci' >> $@
@echo 'xci_test.vhd' >> $@
@echo '}' >> $@
SYN_PRE_PROJECT_CMD :=
SYN_POST_PROJECT_CMD :=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment