Added back-end auto-detect for .edif and .json
authorClifford Wolf <clifford@clifford.at>
Thu, 9 Apr 2015 13:37:54 +0000 (15:37 +0200)
committerClifford Wolf <clifford@clifford.at>
Thu, 9 Apr 2015 13:37:54 +0000 (15:37 +0200)
kernel/yosys.cc

index bbc142f14adca39ac57ac6797ad3d3cd9781bcd3..3076158bd9e5397cc87c443e2ea000bfeebafec2 100644 (file)
@@ -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())