From 44519d439969ec7b7d42a8891f04689b6291ab36 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 9 Apr 2015 15:37:54 +0200 Subject: [PATCH] Added back-end auto-detect for .edif and .json --- kernel/yosys.cc | 4 ++++ 1 file changed, 4 insertions(+) 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()) -- 2.30.2