projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a1b8d
)
Use "verilog -sv" to parse .sv files
author
Clifford Wolf
<clifford@clifford.at>
Fri, 11 Jul 2014 11:10:51 +0000
(13:10 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Fri, 11 Jul 2014 11:10:51 +0000
(13:10 +0200)
kernel/driver.cc
patch
|
blob
|
history
diff --git
a/kernel/driver.cc
b/kernel/driver.cc
index da4962b82480b27ef6e10ccc74ca4dfb17eeb6c8..577fbe3d93787d868748033a5947c5d7642407f7 100644
(file)
--- 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")