From 847e2ee4a130559f7ee002542560a9fcbe1dfc71 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 11 Jul 2014 13:10:51 +0200 Subject: [PATCH] Use "verilog -sv" to parse .sv files --- kernel/driver.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/driver.cc b/kernel/driver.cc index da4962b82..577fbe3d9 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -54,6 +54,8 @@ static void run_frontend(std::string filename, std::string command, RTLIL::Desig if (command == "auto") { if (filename.size() > 2 && filename.substr(filename.size()-2) == ".v") command = "verilog"; + else if (filename.size() > 2 && filename.substr(filename.size()-3) == ".sv") + command = "verilog -sv"; else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".il") command = "ilang"; else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".ys") -- 2.30.2