build/yosys_wrapper: Skip language=None files.

This commit is contained in:
Florent Kermarrec 2023-04-27 18:57:04 +02:00
parent 8f26e5f7a8
commit f62d380b2f

View file

@ -81,6 +81,8 @@ class YosysWrapper():
# yosys has no such function read_systemverilog
if language == "systemverilog":
language = "verilog -sv"
if language is None:
continue
reads.append(f"read_{language}{includes} {filename}")
return "\n".join(reads)