From f62d380b2f0b2f4ab16dd2e3d76df9d4e4997e3f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 27 Apr 2023 18:57:04 +0200 Subject: [PATCH] build/yosys_wrapper: Skip language=None files. --- litex/build/yosys_wrapper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litex/build/yosys_wrapper.py b/litex/build/yosys_wrapper.py index 504bd9e5b..c720f5abc 100644 --- a/litex/build/yosys_wrapper.py +++ b/litex/build/yosys_wrapper.py @@ -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)