mirror of https://github.com/YosysHQ/yosys.git
Auto-detect JSON front-end
This commit is contained in:
parent
c4a7958f70
commit
159701962a
|
@ -792,6 +792,8 @@ void run_frontend(std::string filename, std::string command, std::string *backen
|
|||
command = "vhdl";
|
||||
else if (filename.size() > 4 && filename.substr(filename.size()-5) == ".blif")
|
||||
command = "blif";
|
||||
else if (filename.size() > 4 && filename.substr(filename.size()-5) == ".json")
|
||||
command = "json";
|
||||
else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".il")
|
||||
command = "ilang";
|
||||
else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".ys")
|
||||
|
|
Loading…
Reference in New Issue