Minor code cleanup.
This commit is contained in:
parent
b1d9d1bda2
commit
94fa8955e5
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue