summaryrefslogtreecommitdiff
path: root/kernel/driver.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-07-11 13:10:51 +0200
committerClifford Wolf <clifford@clifford.at>2014-07-11 13:10:51 +0200
commit847e2ee4a130559f7ee002542560a9fcbe1dfc71 (patch)
treeabcad0a0e186715faf38a0f7262fa226bdf3c642 /kernel/driver.cc
parent55a1b8dbac91373979289c535bed61a32717f62b (diff)
Use "verilog -sv" to parse .sv files
Diffstat (limited to 'kernel/driver.cc')
-rw-r--r--kernel/driver.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/driver.cc b/kernel/driver.cc
index da4962b8..577fbe3d 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")