Added yosys_banner(), Updated Copyright range
authorClifford Wolf <clifford@clifford.at>
Sat, 31 Jan 2015 23:39:59 +0000 (00:39 +0100)
committerClifford Wolf <clifford@clifford.at>
Sat, 31 Jan 2015 23:39:59 +0000 (00:39 +0100)
README
kernel/driver.cc
kernel/yosys.cc
kernel/yosys.h

diff --git a/README b/README
index 4bbeb5c512e11a889b7582a95faba1a5c2481769..942af4846cdbc7e3545866afafe8061070fec073 100644 (file)
--- a/README
+++ b/README
@@ -3,7 +3,7 @@
  |                                                                             |
  |  yosys -- Yosys Open SYnthesis Suite                                        |
  |                                                                             |
- |  Copyright (C) 2012  Clifford Wolf <clifford@clifford.at>                   |
+ |  Copyright (C) 2012 - 2015  Clifford Wolf <clifford@clifford.at>            |
  |                                                                             |
  |  Permission to use, copy, modify, and/or distribute this software for any   |
  |  purpose with or without fee is hereby granted, provided that the above     |
index c7f233c5497e97641605ea7033d2692d84e03dfa..65b6c5a47660e8c21f751ebe800c4cb30ca2bb9b 100644 (file)
@@ -273,31 +273,8 @@ int main(int argc, char **argv)
                log_error_stderr = true;
        }
 
-       if (print_banner) {
-               log("\n");
-               log(" /----------------------------------------------------------------------------\\\n");
-               log(" |                                                                            |\n");
-               log(" |  yosys -- Yosys Open SYnthesis Suite                                       |\n");
-               log(" |                                                                            |\n");
-               log(" |  Copyright (C) 2012  Clifford Wolf <clifford@clifford.at>                  |\n");
-               log(" |                                                                            |\n");
-               log(" |  Permission to use, copy, modify, and/or distribute this software for any  |\n");
-               log(" |  purpose with or without fee is hereby granted, provided that the above    |\n");
-               log(" |  copyright notice and this permission notice appear in all copies.         |\n");
-               log(" |                                                                            |\n");
-               log(" |  THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES  |\n");
-               log(" |  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF          |\n");
-               log(" |  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR   |\n");
-               log(" |  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    |\n");
-               log(" |  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN     |\n");
-               log(" |  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   |\n");
-               log(" |  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.            |\n");
-               log(" |                                                                            |\n");
-               log(" \\----------------------------------------------------------------------------/\n");
-               log("\n");
-               log(" %s\n", yosys_version_str);
-               log("\n");
-       }
+       if (print_banner)
+               yosys_banner();
 
        if (print_stats)
                log_hasher = new SHA1;
index 27f210245910f73767385ea6f108d501ba0e3bcf..e4a5c33514e9a5d006f363c0ca37eda32bd75b44 100644 (file)
@@ -97,6 +97,33 @@ void memhasher_do()
        memhasher_store[index] = realloc(memhasher_store[index], size);
 }
 
+void yosys_banner()
+{
+       log("\n");
+       log(" /----------------------------------------------------------------------------\\\n");
+       log(" |                                                                            |\n");
+       log(" |  yosys -- Yosys Open SYnthesis Suite                                       |\n");
+       log(" |                                                                            |\n");
+       log(" |  Copyright (C) 2012 - 2015  Clifford Wolf <clifford@clifford.at>           |\n");
+       log(" |                                                                            |\n");
+       log(" |  Permission to use, copy, modify, and/or distribute this software for any  |\n");
+       log(" |  purpose with or without fee is hereby granted, provided that the above    |\n");
+       log(" |  copyright notice and this permission notice appear in all copies.         |\n");
+       log(" |                                                                            |\n");
+       log(" |  THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES  |\n");
+       log(" |  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF          |\n");
+       log(" |  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR   |\n");
+       log(" |  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    |\n");
+       log(" |  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN     |\n");
+       log(" |  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF   |\n");
+       log(" |  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.            |\n");
+       log(" |                                                                            |\n");
+       log(" \\----------------------------------------------------------------------------/\n");
+       log("\n");
+       log(" %s\n", yosys_version_str);
+       log("\n");
+}
+
 std::string stringf(const char *fmt, ...)
 {
        std::string string;
index a6f4cb665d2ce5602390149b1c086e5fd2f85ce1..efdc005ebce7e27240fb3fabfe9f042e865d4199 100644 (file)
@@ -199,6 +199,7 @@ void memhasher_do();
 extern bool memhasher_active;
 inline void memhasher() { if (memhasher_active) memhasher_do(); }
 
+void yosys_banner();
 std::string stringf(const char *fmt, ...) YS_ATTRIBUTE(format(printf, 1, 2));
 std::string vstringf(const char *fmt, va_list ap);
 int readsome(std::istream &f, char *s, int n);