Add a verbose option to ToolEngine, don't always display infos.

This commit is contained in:
Jean-Paul Chaput 2023-03-28 16:06:49 +02:00
parent 23c0c24c0f
commit 5afb4cabe9
2 changed files with 11 additions and 7 deletions

View File

@ -191,8 +191,9 @@ namespace CRL {
bool ToolEngine::_inDestroyAll = false; bool ToolEngine::_inDestroyAll = false;
ToolEngine::ToolEngine ( Cell* cell ) ToolEngine::ToolEngine ( Cell* cell, bool verbose )
: Super() : Super()
, _verbose (verbose)
, _cell (cell) , _cell (cell)
, _placementModificationFlag(0) , _placementModificationFlag(0)
, _routingModificationFlag (0) , _routingModificationFlag (0)
@ -219,12 +220,14 @@ namespace CRL {
put( enginesRelation ); put( enginesRelation );
if (_verbose) {
cmess1 << " o Creating ToolEngine<" << getName() << "> for Cell <" cmess1 << " o Creating ToolEngine<" << getName() << "> for Cell <"
<< _cell->getName() << ">" << endl; << _cell->getName() << ">" << endl;
cmess1 << Dots::asString( " - Initial memory" cmess1 << Dots::asString( " - Initial memory"
, Timer::getStringMemory(Timer::getMemorySize()) ) << endl; , Timer::getStringMemory(Timer::getMemorySize()) ) << endl;
} }
}
void ToolEngine::_preDestroy () void ToolEngine::_preDestroy ()

View File

@ -81,13 +81,14 @@ namespace CRL {
protected: protected:
Cell* _cell; Cell* _cell;
private: private:
bool _verbose;
unsigned int _placementModificationFlag; unsigned int _placementModificationFlag;
unsigned int _routingModificationFlag; unsigned int _routingModificationFlag;
bool _inRelationDestroy; bool _inRelationDestroy;
Timer _timer; Timer _timer;
uint32_t _passNumber; uint32_t _passNumber;
protected: protected:
ToolEngine ( Cell* cell ); ToolEngine ( Cell* cell, bool verbose=true );
virtual void _postCreate (); virtual void _postCreate ();
virtual void _preDestroy (); virtual void _preDestroy ();
protected: protected: