From: Clifford Wolf Date: Fri, 11 Jul 2014 11:10:51 +0000 (+0200) Subject: Use "verilog -sv" to parse .sv files X-Git-Tag: yosys-0.4~569 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=847e2ee4a130559f7ee002542560a9fcbe1dfc71;p=yosys.git Use "verilog -sv" to parse .sv files --- 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")