Merge pull request #873 from sthornington/master

Fix yosys read command for SystemVerilog sources
This commit is contained in:
enjoy-digital 2021-04-06 12:08:07 +02:00 committed by GitHub
commit 4500641d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -56,6 +56,9 @@ def _yosys_import_sources(platform):
for path in platform.verilog_include_paths:
includes += " -I" + path
for filename, language, library in platform.sources:
# yosys has no such function read_systemverilog
if language == "systemverilog":
language = "verilog -sv"
reads.append("read_{}{} {}".format(
language, includes, filename))
return "\n".join(reads)
@ -235,4 +238,4 @@ def icestorm_argdict(args):
"timingstrict": args.nextpnr_timingstrict,
"ignoreloops": args.nextpnr_ignoreloops,
"seed": args.nextpnr_seed,
}
}

View File

@ -37,6 +37,9 @@ def _yosys_import_sources(platform):
for path in platform.verilog_include_paths:
includes += " -I" + path
for filename, language, library in platform.sources:
# yosys has no such function read_systemverilog
if language == "systemverilog":
language = "verilog -sv"
reads.append("read_{}{} {}".format(
language, includes, filename))
return "\n".join(reads)

View File

@ -67,6 +67,9 @@ def _yosys_import_sources(platform):
for path in platform.verilog_include_paths:
includes += " -I" + path
for filename, language, library in platform.sources:
# yosys has no such function read_systemverilog
if language == "systemverilog":
language = "verilog -sv"
reads.append("read_{}{} {}".format(
language, includes, filename))
return "\n".join(reads)