mibuild/altera_quartus: use default gui command line parameters (enable pll constrain...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 19 May 2014 09:21:42 +0000 (11:21 +0200)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Wed, 21 May 2014 19:02:06 +0000 (21:02 +0200)
mibuild/altera_quartus.py

index 36d76c373123a4a120aebc856d1e075d9abff0e2..3571aa3ee7e2a2d364d53f5391fc7d938643c506 100644 (file)
@@ -66,10 +66,10 @@ def _build_files(device, sources, vincpaths, named_sc, named_pc, build_name):
 def _run_quartus(build_name, quartus_path):
        build_script_contents = """# Autogenerated by mibuild
 
-quartus_map {build_name}.qpf
-quartus_fit {build_name}.qpf
-quartus_asm {build_name}.qpf
-quartus_sta {build_name}.qpf
+quartus_map --read_settings_files=on --write_settings_files=off {build_name} -c {build_name}
+quartus_fit --read_settings_files=off --write_settings_files=off {build_name} -c {build_name}
+quartus_asm --read_settings_files=off --write_settings_files=off {build_name} -c {build_name}
+quartus_sta {build_name} -c {build_name}
 
 """.format(build_name=build_name)
        build_script_file = "build_" + build_name + ".sh"
@@ -99,15 +99,3 @@ class AlteraQuartusPlatform(GenericPlatform):
                        _run_quartus(build_name, quartus_path)
                
                os.chdir("..")
-
-       def build_arg_ns(self, ns, *args, **kwargs):
-               for n in ["build_dir", "build_name", "quartus_path"]:
-                       kwargs[n] = getattr(ns, n)
-               kwargs["run"] = not ns.no_run
-               self.build(*args, **kwargs)
-
-       def add_arguments(self, parser):
-               parser.add_argument("--build-dir", default="build", help="Set the directory in which to generate files and run Quartus")
-               parser.add_argument("--build-name", default="top", help="Base name for the generated files")
-               parser.add_argument("--quartus-path", default="/opt/Altera", help="Quartus installation path (without version directory)")
-               parser.add_argument("--no-run", action="store_true", help="Only generate files, do not run Quartus")