Some driver changes/fixes
authorClifford Wolf <clifford@clifford.at>
Fri, 22 Nov 2013 13:53:57 +0000 (14:53 +0100)
committerClifford Wolf <clifford@clifford.at>
Fri, 22 Nov 2013 13:53:57 +0000 (14:53 +0100)
kernel/driver.cc

index 87109f53b48a1b0f77efa695c4c9247e92d8115d..83374c4be132ad2ec6966557f4528dbc229c78a0 100644 (file)
@@ -101,12 +101,14 @@ static void run_backend(std::string filename, std::string command, RTLIL::Design
                        command = "verilog";
                else if (filename.size() > 3 && filename.substr(filename.size()-3) == ".il")
                        command = "ilang";
+               else if (filename.size() > 5 && filename.substr(filename.size()-5) == ".blif")
+                       command = "blif";
                else if (filename == "-")
                        command = "ilang";
                else if (filename.empty())
                        return;
                else
-                       log_error("Can't guess frontend for input file `%s' (missing -f option)!\n", filename.c_str());
+                       log_error("Can't guess backend for output file `%s' (missing -b option)!\n", filename.c_str());
        }
 
        if (filename.empty())
@@ -461,7 +463,6 @@ int main(int argc, char **argv)
                        printf("%s\n", yosys_version_str);
                        exit(0);
                case 'S':
-                       backend_command = "verilog -noattr";
                        passes_commands.push_back("hierarchy");
                        passes_commands.push_back("proc");
                        passes_commands.push_back("opt");
@@ -557,10 +558,9 @@ int main(int argc, char **argv)
                        fprintf(stderr, "        print version information and exit\n");
                        fprintf(stderr, "\n");
                        fprintf(stderr, "The option -S is an alias for the following options that perform a simple\n");
-                       fprintf(stderr, "transformation of the input to a gate-level netlist. This can be helpful when\n");
-                       fprintf(stderr, "e.g. using yosys as a pre-processor for a tool that can't understand full verilog.\n");
+                       fprintf(stderr, "transformation of the input to a gate-level netlist.\n");
                        fprintf(stderr, "\n");
-                       fprintf(stderr, "    -b 'verilog -noattr' -p hierarchy -p proc -p opt -p memory -p opt -p techmap -p opt\n");
+                       fprintf(stderr, "    -p hierarchy -p proc -p opt -p memory -p opt -p techmap -p opt\n");
                        fprintf(stderr, "\n");
                        fprintf(stderr, "For more complex synthesis jobs it is recommended to use the read_* and write_*\n");
                        fprintf(stderr, "commands in a script file instead of specifying input and output files on the\n");