aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-08-09 13:28:52 +0200
committerClifford Wolf <clifford@clifford.at>2017-08-09 13:28:52 +0200
commit159701962a3136697bafcf9d313c02ca0737fb52 (patch)
tree54852e521fcfffd71b900c494cfc52cb04cbcf69 /kernel
parentc4a7958f70be956130119bbb3c682df8e0953b9c (diff)
downloadyosys-159701962a3136697bafcf9d313c02ca0737fb52.tar.gz
yosys-159701962a3136697bafcf9d313c02ca0737fb52.tar.bz2
yosys-159701962a3136697bafcf9d313c02ca0737fb52.zip
Auto-detect JSON front-end
Diffstat (limited to 'kernel')
-rw-r--r--kernel/yosys.cc2
1 files changed, 2 insertions, 0 deletions
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")