mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 01:54:10 +00:00
Added back-end auto-detect for .edif and .json
This commit is contained in:
parent
d176e613c2
commit
44519d4399
|
@ -836,6 +836,10 @@ void run_backend(std::string filename, std::string command, RTLIL::Design *desig
|
||||||
command = "ilang";
|
command = "ilang";
|
||||||
else if (filename.size() > 5 && filename.substr(filename.size()-5) == ".blif")
|
else if (filename.size() > 5 && filename.substr(filename.size()-5) == ".blif")
|
||||||
command = "blif";
|
command = "blif";
|
||||||
|
else if (filename.size() > 5 && filename.substr(filename.size()-5) == ".edif")
|
||||||
|
command = "edif";
|
||||||
|
else if (filename.size() > 5 && filename.substr(filename.size()-5) == ".json")
|
||||||
|
command = "json";
|
||||||
else if (filename == "-")
|
else if (filename == "-")
|
||||||
command = "ilang";
|
command = "ilang";
|
||||||
else if (filename.empty())
|
else if (filename.empty())
|
||||||
|
|
Loading…
Reference in a new issue