diff --git a/elaborate.cc b/elaborate.cc index ba18d812e..c90a9af96 100644 --- a/elaborate.cc +++ b/elaborate.cc @@ -1915,6 +1915,7 @@ static NetExpr*elaborate_delay_expr(PExpr*expr, Design*des, NetScope*scope) shift -= 1; } + ivl_assert(*expr, dex); NetExpr*scal_val = new NetEConst(verinum(scale)); dex = new NetEBMult('*', dex, scal_val); } @@ -1926,6 +1927,7 @@ static NetExpr*elaborate_delay_expr(PExpr*expr, Design*des, NetScope*scope) shift += 1; } + ivl_assert(*expr, dex); NetExpr*scal_val = new NetEConst(verinum(scale)); dex = new NetEBDiv('/', dex, scal_val); } diff --git a/ivlpp/main.c b/ivlpp/main.c index bec4789d7..f41f66ab6 100644 --- a/ivlpp/main.c +++ b/ivlpp/main.c @@ -404,7 +404,7 @@ int main(int argc, char*argv[]) if (depend_file) fclose(depend_file); if (precomp_out) fclose(precomp_out); return -1; -} + } destroy_lexor(); if (depend_file) fclose(depend_file); diff --git a/load_module.cc b/load_module.cc index 49a0058b7..8660b981a 100644 --- a/load_module.cc +++ b/load_module.cc @@ -88,10 +88,14 @@ bool load_module(const char*type) strcat(cmdline, " \""); strcat(cmdline, path); strcat(cmdline, "\""); + + if (verbose_flag) + cerr << "Executing: " << cmdline << endl<< flush; + FILE*file = popen(cmdline, "r"); if (verbose_flag) - cerr << "Executing: " << cmdline << endl; + cerr << "...parsing output from preprocessor..." << endl << flush; pform_parse(path, file); pclose(file); @@ -108,6 +112,9 @@ bool load_module(const char*type) fclose(file); } + if (verbose_flag) + cerr << "... Load module complete." << endl << flush; + return true; }