mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
verilog_backend: add -sv
option, make -o <filename>.sv
work.
See #2271.
This commit is contained in:
parent
3209c0762a
commit
d9f680b236
2 changed files with 20 additions and 11 deletions
|
@ -1050,6 +1050,8 @@ void run_backend(std::string filename, std::string command, RTLIL::Design *desig
|
|||
if (command == "auto") {
|
||||
if (filename.size() > 2 && filename.compare(filename.size()-2, std::string::npos, ".v") == 0)
|
||||
command = "verilog";
|
||||
else if (filename.size() > 3 && filename.compare(filename.size()-3, std::string::npos, ".sv") == 0)
|
||||
command = "verilog -sv";
|
||||
else if (filename.size() > 3 && filename.compare(filename.size()-3, std::string::npos, ".il") == 0)
|
||||
command = "ilang";
|
||||
else if (filename.size() > 3 && filename.compare(filename.size()-3, std::string::npos, ".cc") == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue