Fix yosys read command for SystemVerilog sources
This commit is contained in:
parent
080ecad522
commit
4b0a359675
|
@ -56,6 +56,9 @@ def _yosys_import_sources(platform):
|
||||||
for path in platform.verilog_include_paths:
|
for path in platform.verilog_include_paths:
|
||||||
includes += " -I" + path
|
includes += " -I" + path
|
||||||
for filename, language, library in platform.sources:
|
for filename, language, library in platform.sources:
|
||||||
|
# yosys has no such function read_systemverilog
|
||||||
|
if language == "systemverilog":
|
||||||
|
language = "verilog -sv"
|
||||||
reads.append("read_{}{} {}".format(
|
reads.append("read_{}{} {}".format(
|
||||||
language, includes, filename))
|
language, includes, filename))
|
||||||
return "\n".join(reads)
|
return "\n".join(reads)
|
||||||
|
|
|
@ -37,6 +37,9 @@ def _yosys_import_sources(platform):
|
||||||
for path in platform.verilog_include_paths:
|
for path in platform.verilog_include_paths:
|
||||||
includes += " -I" + path
|
includes += " -I" + path
|
||||||
for filename, language, library in platform.sources:
|
for filename, language, library in platform.sources:
|
||||||
|
# yosys has no such function read_systemverilog
|
||||||
|
if language == "systemverilog":
|
||||||
|
language = "verilog -sv"
|
||||||
reads.append("read_{}{} {}".format(
|
reads.append("read_{}{} {}".format(
|
||||||
language, includes, filename))
|
language, includes, filename))
|
||||||
return "\n".join(reads)
|
return "\n".join(reads)
|
||||||
|
|
|
@ -67,6 +67,9 @@ def _yosys_import_sources(platform):
|
||||||
for path in platform.verilog_include_paths:
|
for path in platform.verilog_include_paths:
|
||||||
includes += " -I" + path
|
includes += " -I" + path
|
||||||
for filename, language, library in platform.sources:
|
for filename, language, library in platform.sources:
|
||||||
|
# yosys has no such function read_systemverilog
|
||||||
|
if language == "systemverilog":
|
||||||
|
language = "verilog -sv"
|
||||||
reads.append("read_{}{} {}".format(
|
reads.append("read_{}{} {}".format(
|
||||||
language, includes, filename))
|
language, includes, filename))
|
||||||
return "\n".join(reads)
|
return "\n".join(reads)
|
||||||
|
|
Loading…
Reference in New Issue