Call finalize() after CRG creation

This commit is contained in:
Sebastien Bourdeauducq 2013-07-04 19:49:39 +02:00
parent 71c2c5813b
commit 05bc2885e9
3 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,6 @@ quartus_sta {build_name}.qpf
class AlteraQuartusPlatform(GenericPlatform):
def build(self, fragment, build_dir="build", build_name="top",
quartus_path="/opt/Altera", run=True):
self.finalize(fragment)
tools.mkdir_noerror(build_dir)
os.chdir(build_dir)

View File

@ -209,6 +209,8 @@ class GenericPlatform:
frag = fragment + crg.get_fragment()
else:
frag = fragment
# finalize
self.finalize(fragment)
# generate Verilog
src, vns = verilog.convert(frag, self.constraint_manager.get_io_signals(),
return_ns=True, create_clock_domains=False, **kwargs)

View File

@ -151,7 +151,6 @@ class XilinxISEPlatform(GenericPlatform):
def build(self, fragment, build_dir="build", build_name="top",
ise_path="/opt/Xilinx", source=True, run=True):
self.finalize(fragment)
tools.mkdir_noerror(build_dir)
os.chdir(build_dir)