* ./unicorn:
- New: Argument to print the measurments (--dump-measures,-M).
This commit is contained in:
parent
0e09dee142
commit
410e81a42b
|
@ -105,7 +105,6 @@ int main ( int argc, char *argv[] )
|
||||||
|
|
||||||
bool destroyDatabase;
|
bool destroyDatabase;
|
||||||
float edgeCapacity;
|
float edgeCapacity;
|
||||||
float expandStep;
|
|
||||||
unsigned long eventsLimit;
|
unsigned long eventsLimit;
|
||||||
unsigned int traceLevel;
|
unsigned int traceLevel;
|
||||||
bool textMode;
|
bool textMode;
|
||||||
|
@ -117,6 +116,7 @@ int main ( int argc, char *argv[] )
|
||||||
bool detailedRoute;
|
bool detailedRoute;
|
||||||
bool loadGlobal;
|
bool loadGlobal;
|
||||||
bool saveGlobal;
|
bool saveGlobal;
|
||||||
|
bool dumpMeasures;
|
||||||
bool exportDef;
|
bool exportDef;
|
||||||
bool saveImport;
|
bool saveImport;
|
||||||
|
|
||||||
|
@ -162,13 +162,13 @@ int main ( int argc, char *argv[] )
|
||||||
, "Save the global routing solution.")
|
, "Save the global routing solution.")
|
||||||
( "edge,e" , boptions::value<float>(&edgeCapacity)
|
( "edge,e" , boptions::value<float>(&edgeCapacity)
|
||||||
, "The egde density ratio applied on global router's edges." )
|
, "The egde density ratio applied on global router's edges." )
|
||||||
( "expand-step" , boptions::value<float>(&expandStep)
|
|
||||||
, "The density delta above which GCells are aggregateds." )
|
|
||||||
( "events-limit" , boptions::value<unsigned long>(&eventsLimit)
|
( "events-limit" , boptions::value<unsigned long>(&eventsLimit)
|
||||||
, "The maximum number of iterations (events) that the router is"
|
, "The maximum number of iterations (events) that the router is"
|
||||||
"allowed to perform." )
|
"allowed to perform." )
|
||||||
( "detailed-route,R" , boptions::bool_switch(&detailedRoute)->default_value(false)
|
( "detailed-route,R" , boptions::bool_switch(&detailedRoute)->default_value(false)
|
||||||
, "Run the detailed router (Kite).")
|
, "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<string>()
|
( "cell,c" , boptions::value<string>()
|
||||||
, "The name of the cell to load, whithout extension." )
|
, "The name of the cell to load, whithout extension." )
|
||||||
( "save-design,s" , boptions::value<string>()
|
( "save-design,s" , boptions::value<string>()
|
||||||
|
@ -272,9 +272,6 @@ int main ( int argc, char *argv[] )
|
||||||
if ( arguments.count("events-limit") )
|
if ( arguments.count("events-limit") )
|
||||||
Cfg::getParamInt("kite.eventsLimit")->setInt ( eventsLimit );
|
Cfg::getParamInt("kite.eventsLimit")->setInt ( eventsLimit );
|
||||||
|
|
||||||
if ( arguments.count("expand-step") )
|
|
||||||
Cfg::getParamPercentage("kite.expandStep")->setPercentage ( expandStep );
|
|
||||||
|
|
||||||
UnicornGui::getBanner().setName ( "cgt" );
|
UnicornGui::getBanner().setName ( "cgt" );
|
||||||
UnicornGui::getBanner().setPurpose ( "Coriolis Graphical Tool" );
|
UnicornGui::getBanner().setPurpose ( "Coriolis Graphical Tool" );
|
||||||
|
|
||||||
|
@ -506,13 +503,14 @@ int main ( int argc, char *argv[] )
|
||||||
if ( saveGlobal ) kite->saveGlobalSolution ();
|
if ( saveGlobal ) kite->saveGlobalSolution ();
|
||||||
|
|
||||||
if ( detailedRoute ) {
|
if ( detailedRoute ) {
|
||||||
kite->loadGlobalRouting ( Katabatic::LoadGrByNet, routingNets );
|
kite->loadGlobalRouting ( Katabatic::LoadGrByNet, routingNets );
|
||||||
kite->layerAssign ( Katabatic::NoNetLayerAssign );
|
kite->layerAssign ( Katabatic::NoNetLayerAssign );
|
||||||
kite->runNegociate ();
|
kite->runNegociate ();
|
||||||
kiteSuccess = kite->getToolSuccess ();
|
kiteSuccess = kite->getToolSuccess ();
|
||||||
kite->finalizeLayout ();
|
kite->finalizeLayout ();
|
||||||
kite->dumpMeasures ();
|
if ( dumpMeasures )
|
||||||
kite->destroy ();
|
kite->dumpMeasures ();
|
||||||
|
kite->destroy ();
|
||||||
|
|
||||||
if ( arguments.count("save-design") ) {
|
if ( arguments.count("save-design") ) {
|
||||||
cell->setName ( arguments["save-design"].as<string>().c_str() );
|
cell->setName ( arguments["save-design"].as<string>().c_str() );
|
||||||
|
|
Loading…
Reference in New Issue