Use "verilog -sv" to parse .sv files
authorClifford Wolf <clifford@clifford.at>
Fri, 11 Jul 2014 11:10:51 +0000 (13:10 +0200)
committerClifford Wolf <clifford@clifford.at>
Fri, 11 Jul 2014 11:10:51 +0000 (13:10 +0200)
kernel/driver.cc

index da4962b82480b27ef6e10ccc74ca4dfb17eeb6c8..577fbe3d93787d868748033a5947c5d7642407f7 100644 (file)
@@ -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")