mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Quartus: handle vh and svh files
Signed-off-by: Karol Gugala <kgugala@antmicro.com>
This commit is contained in:
parent
7fccf9fcd0
commit
7f6af0a437
1 changed files with 10 additions and 1 deletions
|
@ -99,7 +99,16 @@ def _build_qsf(device, ips, sources, vincpaths, named_sc, named_pc, build_name,
|
|||
for filename, language, library in sources:
|
||||
if language == "verilog": language = "systemverilog" # Enforce use of SystemVerilog
|
||||
tpl = "set_global_assignment -name {lang}_FILE {path} -library {lib}"
|
||||
qsf.append(tpl.format(lang=language.upper(), path=filename.replace("\\", "/"), lib=library))
|
||||
# Do not add None type files
|
||||
if language is not None:
|
||||
qsf.append(tpl.format(lang=language.upper(), path=filename.replace("\\", "/"), lib=library))
|
||||
# Check if the file is a header. Those should not be explicitly added to qsf,
|
||||
# but rather included in include search_path
|
||||
else:
|
||||
if filename.endswith(".svh") or filename.endswith(".vh"):
|
||||
fpath = os.path.dirname(filename)
|
||||
if fpath not in vincpaths:
|
||||
vincpaths.append(fpath)
|
||||
|
||||
# Add ips
|
||||
for filename in ips:
|
||||
|
|
Loading…
Reference in a new issue