From: Clifford Wolf Date: Thu, 9 Apr 2015 13:37:54 +0000 (+0200) Subject: Added back-end auto-detect for .edif and .json X-Git-Tag: yosys-0.6~337 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44519d439969ec7b7d42a8891f04689b6291ab36;p=yosys.git Added back-end auto-detect for .edif and .json --- diff --git a/kernel/yosys.cc b/kernel/yosys.cc index bbc142f14..3076158bd 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -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())