Minor code cleanup.

This commit is contained in:
Stephen Williams 2009-12-09 07:37:02 -08:00
parent b1d9d1bda2
commit 94fa8955e5
3 changed files with 11 additions and 2 deletions

View File

@ -1915,6 +1915,7 @@ static NetExpr*elaborate_delay_expr(PExpr*expr, Design*des, NetScope*scope)
shift -= 1; shift -= 1;
} }
ivl_assert(*expr, dex);
NetExpr*scal_val = new NetEConst(verinum(scale)); NetExpr*scal_val = new NetEConst(verinum(scale));
dex = new NetEBMult('*', dex, scal_val); dex = new NetEBMult('*', dex, scal_val);
} }
@ -1926,6 +1927,7 @@ static NetExpr*elaborate_delay_expr(PExpr*expr, Design*des, NetScope*scope)
shift += 1; shift += 1;
} }
ivl_assert(*expr, dex);
NetExpr*scal_val = new NetEConst(verinum(scale)); NetExpr*scal_val = new NetEConst(verinum(scale));
dex = new NetEBDiv('/', dex, scal_val); dex = new NetEBDiv('/', dex, scal_val);
} }

View File

@ -404,7 +404,7 @@ int main(int argc, char*argv[])
if (depend_file) fclose(depend_file); if (depend_file) fclose(depend_file);
if (precomp_out) fclose(precomp_out); if (precomp_out) fclose(precomp_out);
return -1; return -1;
} }
destroy_lexor(); destroy_lexor();
if (depend_file) fclose(depend_file); if (depend_file) fclose(depend_file);

View File

@ -88,10 +88,14 @@ bool load_module(const char*type)
strcat(cmdline, " \""); strcat(cmdline, " \"");
strcat(cmdline, path); strcat(cmdline, path);
strcat(cmdline, "\""); strcat(cmdline, "\"");
if (verbose_flag)
cerr << "Executing: " << cmdline << endl<< flush;
FILE*file = popen(cmdline, "r"); FILE*file = popen(cmdline, "r");
if (verbose_flag) if (verbose_flag)
cerr << "Executing: " << cmdline << endl; cerr << "...parsing output from preprocessor..." << endl << flush;
pform_parse(path, file); pform_parse(path, file);
pclose(file); pclose(file);
@ -108,6 +112,9 @@ bool load_module(const char*type)
fclose(file); fclose(file);
} }
if (verbose_flag)
cerr << "... Load module complete." << endl << flush;
return true; return true;
} }