Added back-end auto-detect for .edif and .json

This commit is contained in:
Clifford Wolf 2015-04-09 15:37:54 +02:00
parent d176e613c2
commit 44519d4399
1 changed files with 4 additions and 0 deletions

View File

@ -836,6 +836,10 @@ void run_backend(std::string filename, std::string command, RTLIL::Design *desig
command = "ilang";
else if (filename.size() > 5 && filename.substr(filename.size()-5) == ".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 == "-")
command = "ilang";
else if (filename.empty())