From: Clifford Wolf Date: Wed, 9 Aug 2017 11:28:52 +0000 (+0200) Subject: Auto-detect JSON front-end X-Git-Tag: yosys-0.8~351 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=159701962a3136697bafcf9d313c02ca0737fb52;p=yosys.git Auto-detect JSON front-end --- diff --git a/kernel/yosys.cc b/kernel/yosys.cc index fd5a3504a..e5b22eba7 100644 --- a/kernel/yosys.cc +++ b/kernel/yosys.cc @@ -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")