diff --git a/tgt-vlog95/vlog95.c b/tgt-vlog95/vlog95.c index be00636f5..dcd893570 100644 --- a/tgt-vlog95/vlog95.c +++ b/tgt-vlog95/vlog95.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2012 Cary R. (cygcary@yahoo.com) + * Copyright (C) 2010-2013 Cary R. (cygcary@yahoo.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,7 +30,7 @@ static const char*version_string = "Icarus Verilog VLOG95 Code Generator " VERSION " (" VERSION_TAG ")\n\n" -"Copyright (C) 2010-2012 Cary R. (cygcary@yahoo.com)\n\n" +"Copyright (C) 2010-2013 Cary R. (cygcary@yahoo.com)\n\n" " This program is free software; you can redistribute it and/or modify\n" " it under the terms of the GNU General Public License as published by\n" " the Free Software Foundation; either version 2 of the License, or\n" @@ -175,8 +175,9 @@ int target_design(ivl_design_t des) fprintf(vlog_out, " * 1364-1995 Verilog generated by Icarus Verilog " "VLOG95 Code Generator,\n"); fprintf(vlog_out, " * Version: " VERSION " (" VERSION_TAG ")\n"); - fprintf(vlog_out, " * Converted using %s delays.\n", - ivl_design_delay_sel(des)); + fprintf(vlog_out, " * Converted using %s delays and %s signed support.\n", + ivl_design_delay_sel(des), + allow_signed ? "with" : "without"); fprintf(vlog_out, " */\n"); sim_precision = ivl_design_time_precision(des); @@ -193,6 +194,25 @@ int target_design(ivl_design_t des) /* Emit any UDPs that are Icarus generated (D-FF). */ emit_icarus_generated_udps(); + /* If there were errors then add this information to the output. */ + if (vlog_errors) { + fprintf(vlog_out, "\n"); + fprintf(vlog_out, "/*\n"); + if (vlog_errors == 1) { + fprintf(vlog_out, " * There was 1 error during " + "translation.\n"); + } else { + fprintf(vlog_out, " * There were %d errors during " + "translation.\n", + vlog_errors); + } + fprintf(vlog_out, " */\n"); + /* Add something that makes the file invalid to make sure + * the user knows there were errors. */ + fprintf(vlog_out, "\n"); + } + fclose(vlog_out); /* A do nothing call to prevent warnings about this routine not