mibuild/altera_quartus: set top_level_entity
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 11 Apr 2014 21:27:02 +0000 (23:27 +0200)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Fri, 11 Apr 2014 21:27:04 +0000 (23:27 +0200)
mibuild/altera_quartus.py

index b8fe1d21614b63e58d214b6feb7945d6ca20bbee..8783201daa432eb00a959924e4dfe9ad6aa34045 100644 (file)
@@ -45,6 +45,7 @@ def _build_qsf(named_sc, named_pc):
                        r += _format_qsf(sig, pins[0], others, resname)
        if named_pc:
                r += "\n" + "\n\n".join(named_pc)
+       r += "set_global_assignment -name top_level_entity top\n"
        return r
 
 def _build_files(device, sources, vincpaths, named_sc, named_pc, build_name):