From d1a96bc49f21a6590b9befb25184ef49f400469a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 14 Apr 2014 17:14:24 +0200 Subject: [PATCH] mibuild/altera_quartus: enforce use of SystemVerilog in Quartus (Verilog does not support global parameters) --- mibuild/altera_quartus.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mibuild/altera_quartus.py b/mibuild/altera_quartus.py index cfda1cf06..d2265b086 100644 --- a/mibuild/altera_quartus.py +++ b/mibuild/altera_quartus.py @@ -51,6 +51,9 @@ def _build_qsf(named_sc, named_pc): def _build_files(device, sources, vincpaths, named_sc, named_pc, build_name): qsf_contents = "" for filename, language in sources: + # Enforce use of SystemVerilog (Quartus does not support global parameters in Verilog) + if language == "verilog": + language = "systemverilog" qsf_contents += "set_global_assignment -name "+language.upper()+"_FILE " + filename.replace("\\","/") + "\n" for path in vincpaths: