From 410e81a42b73f76d9412207e52c1e234d48d213a Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 15 Dec 2010 15:13:39 +0000 Subject: [PATCH] * ./unicorn: - New: Argument to print the measurments (--dump-measures,-M). --- unicorn/src/CgtMain.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/unicorn/src/CgtMain.cpp b/unicorn/src/CgtMain.cpp index ef1cb2b2..040e7b5f 100644 --- a/unicorn/src/CgtMain.cpp +++ b/unicorn/src/CgtMain.cpp @@ -105,7 +105,6 @@ int main ( int argc, char *argv[] ) bool destroyDatabase; float edgeCapacity; - float expandStep; unsigned long eventsLimit; unsigned int traceLevel; bool textMode; @@ -117,6 +116,7 @@ int main ( int argc, char *argv[] ) bool detailedRoute; bool loadGlobal; bool saveGlobal; + bool dumpMeasures; bool exportDef; bool saveImport; @@ -162,13 +162,13 @@ int main ( int argc, char *argv[] ) , "Save the global routing solution.") ( "edge,e" , boptions::value(&edgeCapacity) , "The egde density ratio applied on global router's edges." ) - ( "expand-step" , boptions::value(&expandStep) - , "The density delta above which GCells are aggregateds." ) ( "events-limit" , boptions::value(&eventsLimit) , "The maximum number of iterations (events) that the router is" "allowed to perform." ) ( "detailed-route,R" , boptions::bool_switch(&detailedRoute)->default_value(false) , "Run the detailed router (Kite).") + ( "dump-measures,M" , boptions::bool_switch(&dumpMeasures)->default_value(false) + , "Dump statistical measurements on the disk.") ( "cell,c" , boptions::value() , "The name of the cell to load, whithout extension." ) ( "save-design,s" , boptions::value() @@ -272,9 +272,6 @@ int main ( int argc, char *argv[] ) if ( arguments.count("events-limit") ) Cfg::getParamInt("kite.eventsLimit")->setInt ( eventsLimit ); - if ( arguments.count("expand-step") ) - Cfg::getParamPercentage("kite.expandStep")->setPercentage ( expandStep ); - UnicornGui::getBanner().setName ( "cgt" ); UnicornGui::getBanner().setPurpose ( "Coriolis Graphical Tool" ); @@ -506,13 +503,14 @@ int main ( int argc, char *argv[] ) if ( saveGlobal ) kite->saveGlobalSolution (); if ( detailedRoute ) { - kite->loadGlobalRouting ( Katabatic::LoadGrByNet, routingNets ); - kite->layerAssign ( Katabatic::NoNetLayerAssign ); - kite->runNegociate (); + kite->loadGlobalRouting ( Katabatic::LoadGrByNet, routingNets ); + kite->layerAssign ( Katabatic::NoNetLayerAssign ); + kite->runNegociate (); kiteSuccess = kite->getToolSuccess (); - kite->finalizeLayout (); - kite->dumpMeasures (); - kite->destroy (); + kite->finalizeLayout (); + if ( dumpMeasures ) + kite->dumpMeasures (); + kite->destroy (); if ( arguments.count("save-design") ) { cell->setName ( arguments["save-design"].as().c_str() );