Fix core dump in sync-async warnings, bug911.

This commit is contained in:
Wilson Snyder 2015-04-27 06:47:29 -04:00
parent 4dc64c387f
commit 49123f169c
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks!
**** Fix installing missing manpages, bug908. [Ahmed El-Mahmoudy]
**** Fix core dump in sync-async warnings, bug911. [Sebastian Dressler]
* Verilator 3.872 2015-04-05

View File

@ -362,6 +362,7 @@ private:
nodep->iterateChildren(*this);
//if (debug()>6) m_graph.dump();
if (debug()>6) m_graph.dumpDotFilePrefixed("gate_pre");
warnSignals(); // Before loss of sync/async pointers
m_graph.removeRedundantEdgesSum(&V3GraphEdge::followAlwaysTrue);
m_graph.dumpDotFilePrefixed("gate_simp");
// Find gate interconnect and optimize
@ -373,8 +374,7 @@ private:
// Remove redundant logic
if (v3Global.opt.oDedupe()) dedupe();
if (v3Global.opt.oAssemble()) mergeAssigns();
// Warn
warnSignals();
// Consumption warnings
consumedMark();
m_graph.dumpDotFilePrefixed("gate_opt");
// Rewrite assignments