diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-04-09 15:37:54 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-04-09 15:37:54 +0200 |
commit | 44519d439969ec7b7d42a8891f04689b6291ab36 (patch) | |
tree | 6d16f28cc02c8cb8fe46685c5195cbbcae96ca07 | |
parent | d176e613c2fea8d5ac5d9bf505b188ca13da95ef (diff) | |
download | yosys-44519d439969ec7b7d42a8891f04689b6291ab36.tar.gz yosys-44519d439969ec7b7d42a8891f04689b6291ab36.tar.bz2 yosys-44519d439969ec7b7d42a8891f04689b6291ab36.zip |
Added back-end auto-detect for .edif and .json
-rw-r--r-- | kernel/yosys.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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()) |