From 82cff69d9f6e5cecc90f2b6325d7b465f23db2d4 Mon Sep 17 00:00:00 2001
From: Jean-Paul Chaput
Date: Tue, 17 May 2016 23:00:06 +0200
Subject: [PATCH] Complete rewrite of the trace system (now a stream).
* Change: In Hurricane, in Flags add operator overload for "int" type
and not only "unsigned int". Otherwise the compiler complaints about
ambiguous overload when using enum values which are considered as
"int".
Simpler code for the BaseFlags::contains() method.
Added implicit conversion from BaseFlags toward bool type.
* Change: In Hurricane, in Commons, complete replacement of the previous
two trace systems (trace & ltrace) by a stream-based one.
As it is a true object it is much less fragile than the one based
on defines (but maybe a little slower).
Define a reservation table for the trace levels for all the
Coriolis & Chams components.
* Change: All tools, use the new trace system.
---
crlcore/etc/common/display.conf | 3 +
crlcore/etc/common/misc.conf | 6 +-
crlcore/python/helpers/misc.py | 10 +-
crlcore/src/ccore/AllianceLibrary.cpp | 5 +-
crlcore/src/ccore/Catalog.cpp | 3 +-
crlcore/src/ccore/RoutingLayerGauge.cpp | 14 +-
crlcore/src/ccore/Utilities.cpp | 15 +-
.../src/ccore/bookshelf/BookshelfParser.cpp | 24 +-
crlcore/src/ccore/toolbox/RoutingPads.cpp | 8 +-
crlcore/src/cyclop/CyclopMain.cpp | 12 +-
crlcore/src/pyCRL/PyAcmSigda.cpp | 3 +-
crlcore/src/pyCRL/PyAllianceFramework.cpp | 31 +-
crlcore/src/pyCRL/PyAllianceLibrary.cpp | 7 +-
crlcore/src/pyCRL/PyBanner.cpp | 5 +-
crlcore/src/pyCRL/PyBlif.cpp | 3 +-
crlcore/src/pyCRL/PyCRL.cpp | 7 +-
crlcore/src/pyCRL/PyCatalog.cpp | 1 -
crlcore/src/pyCRL/PyCatalogState.cpp | 3 +-
crlcore/src/pyCRL/PyCellGauge.cpp | 3 +-
crlcore/src/pyCRL/PyEnvironment.cpp | 7 +-
crlcore/src/pyCRL/PyIspd05.cpp | 3 +-
crlcore/src/pyCRL/PyRoutingGauge.cpp | 21 +-
crlcore/src/pyCRL/PyRoutingLayerGauge.cpp | 13 +-
crlcore/src/pyCRL/PyToolBox.cpp | 3 +-
crlcore/src/pyCRL/PyToolEngine.cpp | 6 +-
crlcore/src/x2y/x2y.cpp | 4 -
documentation/UsersGuide/UsersGuide.html | 6 +-
documentation/UsersGuide/UsersGuide.pdf | 312 +++++++++---------
documentation/UsersGuide/UsersGuide.rst | 6 +-
etesian/src/AddFeeds.cpp | 17 +-
etesian/src/Configuration.cpp | 3 +-
etesian/src/EtesianEngine.cpp | 8 +-
etesian/src/PyEtesian.cpp | 3 +-
etesian/src/PyEtesianEngine.cpp | 10 +-
etesian/src/PyGraphicEtesianEngine.cpp | 4 +-
hurricane/doc/hurricane/Commons.dox | 69 +++-
hurricane/doc/hurricane/DebugSession.dox | 117 +++++++
hurricane/doc/hurricane/SoC.css | 12 +
hurricane/doc/hurricane/Transformation.dox | 90 ++---
hurricane/doc/hurricane/UpdateSession.dox | 37 +++
hurricane/doc/hurricane/doxyfile | 2 +
hurricane/src/hurricane/BasicLayer.cpp | 6 +-
hurricane/src/hurricane/Box.cpp | 8 +-
hurricane/src/hurricane/Cell.cpp | 33 +-
hurricane/src/hurricane/Commons.cpp | 75 +----
hurricane/src/hurricane/Component.cpp | 51 ++-
hurricane/src/hurricane/Contact.cpp | 11 +-
hurricane/src/hurricane/ContactLayer.cpp | 6 +-
hurricane/src/hurricane/DeepNet.cpp | 8 +-
hurricane/src/hurricane/DiffusionLayer.cpp | 6 +-
hurricane/src/hurricane/Entity.cpp | 8 +-
hurricane/src/hurricane/ExtensionGo.cpp | 15 +-
hurricane/src/hurricane/ExtensionSlice.cpp | 2 +-
hurricane/src/hurricane/Instance.cpp | 13 +-
hurricane/src/hurricane/JsonReader.cpp | 39 +--
hurricane/src/hurricane/Net.cpp | 10 +-
.../src/hurricane/NetExternalComponents.cpp | 4 +-
hurricane/src/hurricane/Plug.cpp | 13 +-
hurricane/src/hurricane/Quark.cpp | 19 +-
hurricane/src/hurricane/RegularLayer.cpp | 6 +-
hurricane/src/hurricane/RoutingPad.cpp | 7 +-
hurricane/src/hurricane/Rubber.cpp | 21 +-
hurricane/src/hurricane/Segment.cpp | 13 +-
hurricane/src/hurricane/Signature.cpp | 2 +-
hurricane/src/hurricane/Slot.cpp | 2 -
hurricane/src/hurricane/Technology.cpp | 6 +-
hurricane/src/hurricane/TransistorLayer.cpp | 6 +-
hurricane/src/hurricane/UpdateSession.cpp | 46 +--
hurricane/src/hurricane/ViaLayer.cpp | 6 +-
.../src/hurricane/grenier/json/JsonReader.cpp | 28 +-
.../src/hurricane/grenier/json/JsonReader.h | 10 +-
hurricane/src/hurricane/grenier/json/Net.cpp | 2 +-
.../src/hurricane/hurricane/Collection.h | 11 +-
hurricane/src/hurricane/hurricane/Commons.h | 136 ++++++--
.../src/hurricane/hurricane/DebugSession.h | 28 +-
hurricane/src/hurricane/hurricane/Entity.h | 6 +-
.../src/hurricane/hurricane/ExtensionGo.h | 13 +-
hurricane/src/hurricane/hurricane/Flags.h | 32 +-
.../src/hurricane/hurricane/JsonObject.h | 24 +-
.../src/hurricane/hurricane/JsonWriter.h | 40 +--
.../src/hurricane/hurricane/Tabulation.h | 4 +-
hurricane/src/isobar/ProxyProperty.cpp | 4 +-
hurricane/src/isobar/PyBasicLayer.cpp | 4 +-
hurricane/src/isobar/PyBox.cpp | 24 +-
hurricane/src/isobar/PyBreakpoint.cpp | 10 +-
hurricane/src/isobar/PyCell.cpp | 52 +--
hurricane/src/isobar/PyComponent.cpp | 14 +-
hurricane/src/isobar/PyContact.cpp | 4 +-
hurricane/src/isobar/PyContactLayer.cpp | 2 +-
hurricane/src/isobar/PyDataBase.cpp | 8 +-
hurricane/src/isobar/PyDbU.cpp | 2 +-
hurricane/src/isobar/PyDebugSession.cpp | 21 +-
hurricane/src/isobar/PyDiffusionLayer.cpp | 2 +-
hurricane/src/isobar/PyEntity.cpp | 2 +-
hurricane/src/isobar/PyHook.cpp | 12 +-
hurricane/src/isobar/PyHorizontal.cpp | 4 +-
hurricane/src/isobar/PyHurricane.cpp | 10 +-
hurricane/src/isobar/PyHyperNet.cpp | 8 +-
hurricane/src/isobar/PyInstance.cpp | 30 +-
hurricane/src/isobar/PyInterval.cpp | 22 +-
hurricane/src/isobar/PyLayer.cpp | 16 +-
hurricane/src/isobar/PyLayerMask.cpp | 6 +-
hurricane/src/isobar/PyLibrary.cpp | 8 +-
hurricane/src/isobar/PyMaterial.cpp | 6 +-
hurricane/src/isobar/PyNet.cpp | 34 +-
hurricane/src/isobar/PyNetDirection.cpp | 3 +-
.../src/isobar/PyNetExternalComponents.cpp | 10 +-
hurricane/src/isobar/PyNetType.cpp | 3 +-
hurricane/src/isobar/PyOccurrence.cpp | 14 +-
hurricane/src/isobar/PyOrientation.cpp | 3 +-
hurricane/src/isobar/PyPad.cpp | 8 +-
hurricane/src/isobar/PyPath.cpp | 20 +-
hurricane/src/isobar/PyPin.cpp | 4 +-
hurricane/src/isobar/PyPinDirection.cpp | 3 +-
hurricane/src/isobar/PyPinPlacementStatus.cpp | 3 +-
hurricane/src/isobar/PyPlacementStatus.cpp | 3 +-
hurricane/src/isobar/PyPlug.cpp | 8 +-
hurricane/src/isobar/PyPoint.cpp | 6 +-
hurricane/src/isobar/PyQuery.cpp | 30 +-
hurricane/src/isobar/PyQueryMask.cpp | 6 +-
hurricane/src/isobar/PyReference.cpp | 8 +-
hurricane/src/isobar/PyRegularLayer.cpp | 2 +-
hurricane/src/isobar/PyRoutingPad.cpp | 22 +-
hurricane/src/isobar/PySegment.cpp | 10 +-
hurricane/src/isobar/PyTechnology.cpp | 10 +-
hurricane/src/isobar/PyTransformation.cpp | 52 ++-
hurricane/src/isobar/PyTransistorLayer.cpp | 2 +-
hurricane/src/isobar/PyUpdateSession.cpp | 6 +-
hurricane/src/isobar/PyVertical.cpp | 4 +-
hurricane/src/isobar/PyViaLayer.cpp | 2 +-
.../src/isobar/hurricane/isobar/PyHurricane.h | 82 ++---
hurricane/src/viewer/CellViewer.cpp | 4 +-
hurricane/src/viewer/DesignBlob.cpp | 2 -
hurricane/src/viewer/DisplayStyle.cpp | 16 +-
hurricane/src/viewer/Graphics.cpp | 4 +-
hurricane/src/viewer/PyCellViewer.cpp | 22 +-
hurricane/src/viewer/PyDisplayStyle.cpp | 22 +-
hurricane/src/viewer/PyDrawingGroup.cpp | 6 +-
hurricane/src/viewer/PyDrawingStyle.cpp | 4 +-
hurricane/src/viewer/PyGraphics.cpp | 24 +-
hurricane/src/viewer/PyHApplication.cpp | 4 +-
hurricane/src/viewer/PyHSVr.cpp | 4 +-
hurricane/src/viewer/PyViewer.cpp | 4 +-
hurricane/src/viewer/SelectCommand.cpp | 2 +-
katabatic/src/AutoContact.cpp | 41 ++-
katabatic/src/AutoContactHTee.cpp | 66 ++--
katabatic/src/AutoContactTerminal.cpp | 63 ++--
katabatic/src/AutoContactTurn.cpp | 37 +--
katabatic/src/AutoContactVTee.cpp | 45 ++-
katabatic/src/AutoHorizontal.cpp | 94 +++---
katabatic/src/AutoSegment.cpp | 300 ++++++++---------
katabatic/src/AutoSegments.cpp | 40 +--
katabatic/src/AutoVertical.cpp | 72 ++--
katabatic/src/ChipTools.cpp | 8 +-
katabatic/src/Configuration.cpp | 3 +-
katabatic/src/GCell.cpp | 46 ++-
katabatic/src/GCellGrid.cpp | 19 +-
katabatic/src/KatabaticEngine.cpp | 123 ++++---
katabatic/src/LayerAssign.cpp | 78 +++--
katabatic/src/LoadGrByNet.cpp | 256 +++++++-------
katabatic/src/NetConstraints.cpp | 41 ++-
katabatic/src/NetOptimals.cpp | 19 +-
katabatic/src/PyKatabatic.cpp | 3 +-
katabatic/src/Session.cpp | 61 ++--
katabatic/src/katabatic/AutoContact.h | 25 +-
katabatic/src/katabatic/AutoSegment.h | 3 +-
katabatic/src/katabatic/Session.h | 1 -
kite/src/BuildPowerRails.cpp | 79 +++--
kite/src/BuildPreRouteds.cpp | 3 -
kite/src/Configuration.cpp | 1 -
kite/src/DataNegociate.cpp | 41 +--
kite/src/KiteEngine.cpp | 42 +--
kite/src/KiteMain.cpp | 28 +-
kite/src/Manipulator.cpp | 249 +++++++-------
kite/src/NegociateWindow.cpp | 69 ++--
kite/src/PreProcess.cpp | 46 ++-
kite/src/ProtectRoutingPads.cpp | 1 -
kite/src/PyGraphicKiteEngine.cpp | 4 +-
kite/src/PyKite.cpp | 3 +-
kite/src/PyKiteEngine.cpp | 21 +-
kite/src/RoutingEvent.cpp | 124 ++++---
kite/src/RoutingEventQueue.cpp | 10 +-
kite/src/RoutingPlane.cpp | 10 +-
kite/src/SegmentFsm.cpp | 175 +++++-----
kite/src/Session.cpp | 20 +-
kite/src/Track.cpp | 66 ++--
kite/src/TrackElement.cpp | 7 +-
kite/src/TrackElements.cpp | 9 +-
kite/src/TrackFixedSegment.cpp | 9 +-
kite/src/TrackSegment.cpp | 165 +++++----
kite/src/TrackSegmentCost.cpp | 29 +-
kite/src/Tracks.cpp | 34 +-
kite/src/kite/RoutingEvent.h | 2 +-
knik/src/Edge.cpp | 2 +-
knik/src/Graph.cpp | 79 ++---
knik/src/MatrixVertex.cpp | 4 +-
unicorn/src/CgtMain.cpp | 7 -
unicorn/src/PyUnicorn.cpp | 3 +-
unicorn/src/PyUnicornGui.cpp | 8 +-
unicorn/src/UnicornGui.cpp | 5 +-
unicorn/src/cgt.py | 3 +-
201 files changed, 2614 insertions(+), 2627 deletions(-)
create mode 100644 hurricane/doc/hurricane/DebugSession.dox
diff --git a/crlcore/etc/common/display.conf b/crlcore/etc/common/display.conf
index 729d415a..2fba8d12 100644
--- a/crlcore/etc/common/display.conf
+++ b/crlcore/etc/common/display.conf
@@ -84,6 +84,7 @@ stylesTable = \
, (Drawing, 'gmetalh' , { 'color':'128,255,200', 'pattern':'light_antihash0.8', 'border':1 })
, (Drawing, 'gmetalv' , { 'color':'200,200,255', 'pattern':'light_antihash1.8', 'border':1 })
, (Drawing, 'gcut' , { 'color':'255,255,190', 'border':1 })
+ , (Drawing, 'gcell' , { 'color':'255,255,190', 'pattern':'0000000000000000', 'border':4 })
)
# ----------------------------------------------------------------------
@@ -189,6 +190,7 @@ stylesTable = \
, (Drawing, 'gmetalh' , { 'color':'128,255,200', 'pattern':'antislash2.32' , 'border':1 })
, (Drawing, 'gmetalv' , { 'color':'200,200,255', 'pattern':'light_antihash1.8', 'border':1 })
, (Drawing, 'gcut' , { 'color':'255,255,190', 'border':1 })
+ , (Drawing, 'gcell' , { 'color':'255,255,190', 'pattern':'0000000000000000', 'border':4 })
)
# ----------------------------------------------------------------------
@@ -361,5 +363,6 @@ stylesTable = \
, (Drawing, 'gmetalh' , { 'color':'128,255,200', 'pattern':'light_antihash0.8' , 'border':1 })
, (Drawing, 'gmetalv' , { 'color':'200,200,255', 'pattern':'light_antihash1.8' , 'border':1 })
, (Drawing, 'gcut' , { 'color':'255,255,190', 'border':1 })
+ , (Drawing, 'gcell' , { 'color':'255,255,190', 'pattern':'0000000000000000', 'border':4 })
)
)
diff --git a/crlcore/etc/common/misc.conf b/crlcore/etc/common/misc.conf
index 921da0ba..cea63434 100644
--- a/crlcore/etc/common/misc.conf
+++ b/crlcore/etc/common/misc.conf
@@ -7,7 +7,8 @@ parametersTable = \
, ('misc.logMode' , TypeBool, False)
, ('misc.verboseLevel1', TypeBool, True )
, ('misc.verboseLevel2', TypeBool, False)
- , ('misc.traceLevel' , TypeInt , 1000, {'min':0} )
+ , ('misc.minTraceLevel', TypeInt , 0, {'min':0} )
+ , ('misc.maxTraceLevel', TypeInt , 0, {'min':0} )
, ("viewer.printer.mode", TypeEnumerate ,1
, { 'values':( ("Cell Mode" , 1)
@@ -58,7 +59,8 @@ layoutTable = \
, (TypeOption, 'misc.verboseLevel2' , 'Very Verbose' , 0)
, (TypeOption, 'misc.info' , 'Show Info' , 0)
, (TypeOption, 'misc.logMode' , 'Output is a TTY' , 0)
- , (TypeOption, 'misc.traceLevel' , 'Trace Level' , 1)
+ , (TypeOption, 'misc.minTraceLevel' , 'Min. Trace Level' , 1)
+ , (TypeOption, 'misc.maxTraceLevel' , 'Max. Trace Level' , 1)
, (TypeTitle , 'Print/Snapshot Parameters')
, (TypeOption, 'viewer.printer.mode' , 'Printer/Snapshot Mode', 1)
, (TypeOption, 'viewer.printer.paper', 'Paper Size' , 0)
diff --git a/crlcore/python/helpers/misc.py b/crlcore/python/helpers/misc.py
index fb51b6b5..405b7d5c 100644
--- a/crlcore/python/helpers/misc.py
+++ b/crlcore/python/helpers/misc.py
@@ -11,9 +11,12 @@ Cfg.getParamBool("misc.bug" ).setBool(False)
Cfg.getParamBool("misc.logMode" ).setBool(True )
Cfg.getParamBool("misc.verboseLevel1").setBool(True )
Cfg.getParamBool("misc.verboseLevel2").setBool(False)
-Cfg.getParamInt ("misc.traceLevel" ).setInt (1000 )
-param = Cfg.getParamInt ("misc.traceLevel")
+Cfg.getParamInt ("misc.minTraceLevel").setInt (0 )
+Cfg.getParamInt ("misc.maxTraceLevel").setInt (0 )
+param = Cfg.getParamInt ("misc.minTraceLevel")
param.setMin(0)
+param = Cfg.getParamInt ("misc.maxTraceLevel")
+param.setMax(0)
# Misc. tab layout.
layout = Cfg.Configuration.get().getLayout()
@@ -26,4 +29,5 @@ layout.addParameter ( "Misc.", "misc.info" , "Show Infos" , 0 )
layout.addParameter ( "Misc.", "misc.paranoid" , "Show Everything" , 0 )
layout.addParameter ( "Misc.", "misc.bug" , "Show Bugs" , 0 )
layout.addParameter ( "Misc.", "misc.logMode" , "Output is a TTY" , 0 )
-layout.addParameter ( "Misc.", "misc.traceLevel" , "Trace Level" , 1 )
+layout.addParameter ( "Misc.", "misc.minTraceLevel", "Min. Trace Level", 1 )
+layout.addParameter ( "Misc.", "misc.maxTraceLevel", "Max. Trace Level", 1 )
diff --git a/crlcore/src/ccore/AllianceLibrary.cpp b/crlcore/src/ccore/AllianceLibrary.cpp
index 6347e9ac..fa9d8d15 100644
--- a/crlcore/src/ccore/AllianceLibrary.cpp
+++ b/crlcore/src/ccore/AllianceLibrary.cpp
@@ -27,7 +27,6 @@ namespace CRL {
using namespace std;
using Hurricane::tab;
- using Hurricane::inltrace;
using Hurricane::Initializer;
using Hurricane::JsonTypes;
using Hurricane::Warning;
@@ -133,7 +132,7 @@ namespace CRL {
, DataBase::CreateLib|DataBase::WarnCreateLib );
AllianceLibrary* aLibrary = NULL;
- ltrace(51) << "| " << libDbPath << " : " << library << endl;
+ cdebug.log(19) << "| " << libDbPath << " : " << library << endl;
if (library) {
aLibrary = af->getAllianceLibrary( library );
@@ -152,7 +151,7 @@ namespace CRL {
if (not library) library = aLibrary->getLibrary();
}
- ltrace(51) << "| Associates to: " << aLibrary << endl;
+ cdebug.log(19) << "| Associates to: " << aLibrary << endl;
if (aLibrary->getLibrary() != library) {
cerr << Warning( "JsonAllianceLibrary::toData(): Underlying Hurricane Library discrepency for \"%s\".\n"
diff --git a/crlcore/src/ccore/Catalog.cpp b/crlcore/src/ccore/Catalog.cpp
index 65ccbe78..15acd735 100644
--- a/crlcore/src/ccore/Catalog.cpp
+++ b/crlcore/src/ccore/Catalog.cpp
@@ -30,7 +30,6 @@ using namespace std;
namespace CRL {
- using Hurricane::inltrace;
using Hurricane::tab;
using Hurricane::Initializer;
using Hurricane::JsonTypes;
@@ -437,7 +436,7 @@ namespace CRL {
Catalog::State* state = get( stack, "_state" );
CatalogProperty* property = NULL;
- ltrace(51) << "topDBo:" << dbo << endl;
+ cdebug.log(19) << "topDBo:" << dbo << endl;
Cell* cell = dynamic_cast( dbo );
if (cell) {
diff --git a/crlcore/src/ccore/RoutingLayerGauge.cpp b/crlcore/src/ccore/RoutingLayerGauge.cpp
index 1fdcf6f4..db76413d 100644
--- a/crlcore/src/ccore/RoutingLayerGauge.cpp
+++ b/crlcore/src/ccore/RoutingLayerGauge.cpp
@@ -90,9 +90,6 @@ namespace CRL {
using Hurricane::JsonTypes;
using Hurricane::Tabulation;
using Hurricane::BasicLayer;
- using Hurricane::trace_in;
- using Hurricane::trace_out;
- using Hurricane::in_trace;
using Hurricane::tab;
using Hurricane::DataBase;
using Hurricane::Technology;
@@ -210,18 +207,17 @@ namespace CRL {
unsigned RoutingLayerGauge::getTrackIndex ( DbU::Unit start, DbU::Unit stop, DbU::Unit position, unsigned mode ) const
{
- trace << "RoutingLayerGauge::getTrackIndex ( " << position << " )" << endl;
- trace_in ();
+ cdebug.log(100,1) << "RoutingLayerGauge::getTrackIndex ( " << position << " )" << endl;
long modulo;
long depth;
divide ( position-start, depth, modulo );
- trace << "depth := " << depth << endl;
+ cdebug.log(100) << "depth := " << depth << endl;
if ( depth < 0 ) {
- trace_out ();
+ cdebug.tabw(100,-1);
return 0;
// throw Error ( negativeIndex
@@ -243,7 +239,7 @@ namespace CRL {
unsigned int tracksNumber = getTrackNumber(start,stop);
if ( (unsigned)depth >= tracksNumber ) {
- trace_out ();
+ cdebug.tabw(100,-1);
return (tracksNumber > 0) ? tracksNumber-1 : 0;
// throw Error ( overflowIndex
// , getString(this).c_str()
@@ -253,7 +249,7 @@ namespace CRL {
// );
}
- trace_out ();
+ cdebug.tabw(100,-1);
return depth;
}
diff --git a/crlcore/src/ccore/Utilities.cpp b/crlcore/src/ccore/Utilities.cpp
index 0ddccf24..ebc76453 100644
--- a/crlcore/src/ccore/Utilities.cpp
+++ b/crlcore/src/ccore/Utilities.cpp
@@ -88,9 +88,17 @@ namespace {
}
- void traceLevelChanged ( Cfg::Parameter* p )
+ void minTraceLevelChanged ( Cfg::Parameter* p )
{
- ltracelevel ( p->asInt() );
+ //cerr << "minTraceLevelChanged:" << p->asInt() << endl;
+ cdebug.setMinLevel( p->asInt() );
+ }
+
+
+ void maxTraceLevelChanged ( Cfg::Parameter* p )
+ {
+ //cerr << "maxTraceLevelChanged:" << p->asInt() << endl;
+ cdebug.setMaxLevel( p->asInt() );
}
@@ -329,7 +337,8 @@ namespace CRL {
Cfg::getParamBool ("misc.paranoid" ,false)->registerCb ( this, paranoidChanged );
Cfg::getParamBool ("misc.bug" ,false)->registerCb ( this, bugChanged );
Cfg::getParamBool ("misc.logMode" ,false)->registerCb ( this, logModeChanged );
- Cfg::getParamInt ("misc.traceLevel" ,1000 )->registerCb ( this, traceLevelChanged );
+ Cfg::getParamInt ("misc.minTraceLevel" ,0 )->registerCb ( this, minTraceLevelChanged );
+ Cfg::getParamInt ("misc.maxTraceLevel" ,0 )->registerCb ( this, maxTraceLevelChanged );
Cfg::getParamString("stratus1.mappingName","not_set")->registerCb ( this, stratus1MappingNameChanged );
// Immediate update from the configuration.
diff --git a/crlcore/src/ccore/bookshelf/BookshelfParser.cpp b/crlcore/src/ccore/bookshelf/BookshelfParser.cpp
index df022f9c..dbffbbe9 100644
--- a/crlcore/src/ccore/bookshelf/BookshelfParser.cpp
+++ b/crlcore/src/ccore/bookshelf/BookshelfParser.cpp
@@ -318,7 +318,7 @@ Name BKParser::getNewNetName()
bool BKParser::isNumber ( char* token ) {
- trace << "isNumber = " << token;
+ cdebug.log(100) << "isNumber = " << token;
unsigned i = 0;
char tok;
@@ -330,7 +330,7 @@ bool BKParser::isNumber ( char* token ) {
}
bool BKParser::isFloat ( char* token ) {
- trace << "isFloat = " << token;
+ cdebug.log(100) << "isFloat = " << token;
unsigned i = 0;
char tok;
@@ -343,7 +343,7 @@ bool BKParser::isFloat ( char* token ) {
}
bool BKParser::isName ( char* token ) {
- trace << "isName = " << token;
+ cdebug.log(100) << "isName = " << token;
unsigned i = 0;
char tok;
@@ -358,7 +358,7 @@ bool BKParser::isName ( char* token ) {
}
bool BKParser::isSymetry ( char* token ) {
- trace << "isSymetry = " << token;
+ cdebug.log(100) << "isSymetry = " << token;
if ( ( ( token[0] == 'X' ) && ( token[1] == char(0) ) )
|| ( ( token[0] == 'Y' ) && ( token[1] == char(0) ) )
|| ( ( token[0] == 'R' ) && ( token[1] == '9' ) && ( token[2] == '0' ) && ( token[3] == char(0) ) ) )
@@ -366,7 +366,7 @@ bool BKParser::isSymetry ( char* token ) {
return false;
}
bool BKParser::isDirection ( char* token ) {
- trace << "isDirection = " << token;
+ cdebug.log(100) << "isDirection = " << token;
if ( ( ( token[0] == 'I' ) || ( token[0] == 'O' ) || ( token[0] == 'B' ) ) && ( token[1] == char(0) ) )
return true;
@@ -381,7 +381,7 @@ bool BKParser::ScanAux ()
// The Aux record looks like :
// RowBasedPlacement : .nodes .nets .wts .pl .scl
// **********************************************************************************************************
- trace << "ScanAux = " << _buffer;
+ cdebug.log(100) << "ScanAux = " << _buffer;
// ***********************
// Patterns initialization
@@ -441,7 +441,7 @@ bool BKParser::ScanNum ( unsigned& num )
// The NodeNum record looks like :
// NumNodes :
// *******************************
- trace << "ScanNum = " << _buffer;
+ cdebug.log(100) << "ScanNum = " << _buffer;
char *p_type, *p_num;
if ( ( ( p_type = strtok ( _buffer, "\t \n:" ) ) != NULL ) &&
@@ -460,7 +460,7 @@ bool BKParser::ScanDegree ( unsigned& degree, Name& netName )
// The NetDregree record looks like :
// NetDegree : [netName]
// **********************************
- trace << "ScanDegree = " << _buffer;
+ cdebug.log(100) << "ScanDegree = " << _buffer;
bool mDegree = false;
bool mName = false;
@@ -502,7 +502,7 @@ bool BKParser::ScanNodes ( Name& name, DbU::Unit& width, DbU::Unit& height, bool
// The Node record looks like :
// [terminal]
// **************************************
- trace << "ScanNodes = " << _buffer;
+ cdebug.log(100) << "ScanNodes = " << _buffer;
char *p_name, *p_width, *p_height, *p_term;
if ( ( ( p_name = strtok ( _buffer, "\t \n" ) ) != NULL ) &&
@@ -528,7 +528,7 @@ bool BKParser::ScanNets ( Name& insName, Net::Direction& dir, DbU::Unit& dx, DbU
// The Net record looks like :
// NetDegree :
// *********************************
- trace << "ScanNets = " << _buffer;
+ cdebug.log(100) << "ScanNets = " << _buffer;
bool mName = false;
bool mDirection = false;
@@ -580,7 +580,7 @@ bool BKParser::ScanWts ( Name& name, unsigned& weight )
// The Weight record looks like :
//
// ******************************
- trace << "ScanWts = " << _buffer;
+ cdebug.log(100) << "ScanWts = " << _buffer;
//char *p_x, *p_y, *p_model, *p_name, *p_transf;
@@ -622,7 +622,7 @@ bool BKParser::ScanPl ( Name& name, DbU::Unit& x, DbU::Unit& y, Transformation::
// The Placement record looks like :
// : [FIXED]
// *************************************
- trace << "ScanPl = " << _buffer;
+ cdebug.log(100) << "ScanPl = " << _buffer;
char *p_name, *p_x, *p_y, *p_orient, *p_fixed;
if ( ( ( p_name = strtok ( _buffer, "\t \n" ) ) != NULL ) &&
diff --git a/crlcore/src/ccore/toolbox/RoutingPads.cpp b/crlcore/src/ccore/toolbox/RoutingPads.cpp
index 4f307e07..42dde098 100644
--- a/crlcore/src/ccore/toolbox/RoutingPads.cpp
+++ b/crlcore/src/ccore/toolbox/RoutingPads.cpp
@@ -208,10 +208,10 @@ void createPlacedRoutingPadsAndPinsRing ( Cell* top_cell )
netOccurrence = Occurrence(net);
for_each_occurrence ( plugOccurrence, HyperNet(netOccurrence).getLeafPlugOccurrences() )
{
- ltrace(58) << "Creating Routing Pad " << plugOccurrence << endl;ltracein(58);
- cerr << RoutingPad::create ( net, plugOccurrence, RoutingPad::BiggestArea ) << endl;
- //ltraceout(58);
- end_for;
+ cdebug.log(109,1) << "Creating Routing Pad " << plugOccurrence << endl;
+ cerr << RoutingPad::create ( net, plugOccurrence, RoutingPad::BiggestArea ) << endl;
+ //ltraceout(58);
+ end_for;
}
vector pins;
for_each_pin ( pin, net->getPins() ) {
diff --git a/crlcore/src/cyclop/CyclopMain.cpp b/crlcore/src/cyclop/CyclopMain.cpp
index 940325ed..67740b97 100644
--- a/crlcore/src/cyclop/CyclopMain.cpp
+++ b/crlcore/src/cyclop/CyclopMain.cpp
@@ -93,11 +93,10 @@ int main ( int argc, char *argv[] )
int returnCode = 0;
try {
- unsigned int traceLevel;
- bool verbose1;
- bool verbose2;
- bool coreDump;
- bool textMode;
+ bool verbose1;
+ bool verbose2;
+ bool coreDump;
+ bool textMode;
boptions::options_description options ("Command line arguments & options");
options.add_options()
@@ -110,9 +109,6 @@ int main ( int argc, char *argv[] )
, "Enable core dumping.")
( "text,t" , boptions::bool_switch(&textMode)->default_value(false)
, "Run in pure text mode.")
- ( "trace-level,l" , boptions::value(&traceLevel)->default_value(1000)
- , "Set the level of trace, trace messages with a level superior to "
- " will be printed on ." )
( "cell,c" , boptions::value()
, "The name of the cell to load, whithout extension." );
diff --git a/crlcore/src/pyCRL/PyAcmSigda.cpp b/crlcore/src/pyCRL/PyAcmSigda.cpp
index fb314fed..618a2e4f 100644
--- a/crlcore/src/pyCRL/PyAcmSigda.cpp
+++ b/crlcore/src/pyCRL/PyAcmSigda.cpp
@@ -28,7 +28,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -56,7 +55,7 @@ extern "C" {
static PyObject* PyAcmSigda_load ( PyObject*, PyObject* args )
{
- trace << "PyAcmSigda_load()" << endl;
+ cdebug.log(30) << "PyAcmSigda_load()" << endl;
Cell* cell = NULL;
diff --git a/crlcore/src/pyCRL/PyAllianceFramework.cpp b/crlcore/src/pyCRL/PyAllianceFramework.cpp
index 308ff06f..56c44fd4 100644
--- a/crlcore/src/pyCRL/PyAllianceFramework.cpp
+++ b/crlcore/src/pyCRL/PyAllianceFramework.cpp
@@ -34,7 +34,6 @@ namespace CRL {
using std::hex;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -71,7 +70,7 @@ extern "C" {
static PyObject* PyAllianceFramework_create ( PyObject*, PyObject* args )
{
- trace << "PyAllianceFramework_create()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_create()" << endl;
AllianceFramework* af = NULL;
PyAllianceFramework* pyAf = NULL;
@@ -97,7 +96,7 @@ extern "C" {
static PyObject* PyAllianceFramework_get ( PyObject* args )
{
- trace << "PyAllianceFramework_get()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_get()" << endl;
AllianceFramework* af = NULL;
PyAllianceFramework* pyAf = NULL;
@@ -117,7 +116,7 @@ extern "C" {
static PyObject* PyAllianceFramework_getEnvironment ( PyAllianceFramework* self )
{
- trace << "PyAllianceFramework_getEnvironment ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_getEnvironment ()" << endl;
Environment* env = NULL;
@@ -135,7 +134,7 @@ extern "C" {
static PyObject* PyAllianceFramework_getLibrary ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_getLibrary()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_getLibrary()" << endl;
Library* lib = NULL;
@@ -165,7 +164,7 @@ extern "C" {
static PyObject* PyAllianceFramework_getAllianceLibrary ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_getAllianceLibrary()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_getAllianceLibrary()" << endl;
AllianceLibrary* alib = NULL;
@@ -200,7 +199,7 @@ extern "C" {
static PyObject* PyAllianceFramework_getCell ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_getCell ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_getCell ()" << endl;
char* name = NULL;
Cell* cell = NULL;
@@ -223,7 +222,7 @@ extern "C" {
static PyObject* PyAllianceFramework_saveCell ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_saveCell ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_saveCell ()" << endl;
HTRY
@@ -244,7 +243,7 @@ extern "C" {
static PyObject* PyAllianceFramework_createCell ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_createCell ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_createCell ()" << endl;
char* name = NULL;
Cell* cell = NULL;
@@ -266,7 +265,7 @@ extern "C" {
static PyObject* PyAllianceFramework_createLibrary ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_createLibrary()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_createLibrary()" << endl;
AllianceLibrary* alib = NULL;
string libName = "";
@@ -305,7 +304,7 @@ extern "C" {
static PyObject* PyAllianceFramework_isPad ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_isPad ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_isPad ()" << endl;
char* name = NULL;
@@ -326,7 +325,7 @@ extern "C" {
static PyObject* PyAllianceFramework_addRoutingGauge ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_addRoutingGauge ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_addRoutingGauge ()" << endl;
HTRY
METHOD_HEAD("AllianceFramework.addRoutingGauge()")
@@ -342,7 +341,7 @@ extern "C" {
static PyObject* PyAllianceFramework_getRoutingGauge ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_getRoutingGauge ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_getRoutingGauge ()" << endl;
RoutingGauge* rg = NULL;
@@ -366,7 +365,7 @@ extern "C" {
static PyObject* PyAllianceFramework_addCellGauge ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_addCellGauge ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_addCellGauge ()" << endl;
HTRY
METHOD_HEAD("AllianceFramework.addCellGauge()")
@@ -382,7 +381,7 @@ extern "C" {
static PyObject* PyAllianceFramework_getCellGauge ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_getCellGauge ()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_getCellGauge ()" << endl;
CellGauge* rg = NULL;
@@ -406,7 +405,7 @@ extern "C" {
static PyObject* PyAllianceFramework_loadLibraryCells ( PyAllianceFramework* self, PyObject* args )
{
- trace << "PyAllianceFramework_loadLibraryCells()" << endl;
+ cdebug.log(30) << "PyAllianceFramework_loadLibraryCells()" << endl;
unsigned int count = 0;
diff --git a/crlcore/src/pyCRL/PyAllianceLibrary.cpp b/crlcore/src/pyCRL/PyAllianceLibrary.cpp
index 35a981b3..4bf7baec 100644
--- a/crlcore/src/pyCRL/PyAllianceLibrary.cpp
+++ b/crlcore/src/pyCRL/PyAllianceLibrary.cpp
@@ -28,7 +28,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -60,7 +59,7 @@ extern "C" {
static PyObject* PyAllianceLibrary_getLibrary ( PyAllianceLibrary* self, PyObject* args )
{
- trace << "PyAllianceLibrary_getLibrary()" << endl;
+ cdebug.log(30) << "PyAllianceLibrary_getLibrary()" << endl;
Library* lib = NULL;
@@ -75,7 +74,7 @@ extern "C" {
static PyObject* PyAllianceLibrary_getPath ( PyAllianceLibrary* self, PyObject* args )
{
- trace << "PyAllianceLibrary_getPath()" << endl;
+ cdebug.log(30) << "PyAllianceLibrary_getPath()" << endl;
HTRY
METHOD_HEAD("AllianceLibrary.getPath()")
@@ -115,7 +114,7 @@ extern "C" {
DirectHashMethod(PyAllianceLibrary_Hash, PyAllianceLibrary)
extern void PyAllianceLibrary_LinkPyType() {
- trace << "PyAllianceLibrary_LinkType()" << endl;
+ cdebug.log(30) << "PyAllianceLibrary_LinkType()" << endl;
PyTypeAllianceLibrary.tp_dealloc = (destructor) PyAllianceLibrary_DeAlloc;
PyTypeAllianceLibrary.tp_repr = (reprfunc) PyAllianceLibrary_Repr;
diff --git a/crlcore/src/pyCRL/PyBanner.cpp b/crlcore/src/pyCRL/PyBanner.cpp
index 98e1bec1..386639fd 100644
--- a/crlcore/src/pyCRL/PyBanner.cpp
+++ b/crlcore/src/pyCRL/PyBanner.cpp
@@ -28,7 +28,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Bug;
using Hurricane::Error;
using Hurricane::Warning;
@@ -58,7 +57,7 @@ extern "C" {
static PyObject* PyBanner_new ( PyTypeObject* type, PyObject* args, PyObject* kwArgs )
{
- trace << "PyBanner_new()" << endl;
+ cdebug.log(30) << "PyBanner_new()" << endl;
Banner* banner = NULL;
PyBanner* pyBanner = (PyBanner*)type->tp_alloc(type,0);
@@ -181,7 +180,7 @@ extern "C" {
DirectHashMethod(PyBanner_Hash, PyBanner)
extern void PyBanner_LinkPyType() {
- trace << "PyBanner_LinkType()" << endl;
+ cdebug.log(30) << "PyBanner_LinkType()" << endl;
PyTypeBanner.tp_new = PyBanner_new;
PyTypeBanner.tp_dealloc = (destructor)PyBanner_DeAlloc;
diff --git a/crlcore/src/pyCRL/PyBlif.cpp b/crlcore/src/pyCRL/PyBlif.cpp
index 8182e3a1..201d5b8a 100644
--- a/crlcore/src/pyCRL/PyBlif.cpp
+++ b/crlcore/src/pyCRL/PyBlif.cpp
@@ -28,7 +28,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -56,7 +55,7 @@ extern "C" {
static PyObject* PyBlif_load ( PyObject*, PyObject* args )
{
- trace << "PyBlif_load()" << endl;
+ cdebug.log(30) << "PyBlif_load()" << endl;
Cell* cell = NULL;
diff --git a/crlcore/src/pyCRL/PyCRL.cpp b/crlcore/src/pyCRL/PyCRL.cpp
index 7ebc9cc2..55de9efc 100644
--- a/crlcore/src/pyCRL/PyCRL.cpp
+++ b/crlcore/src/pyCRL/PyCRL.cpp
@@ -40,7 +40,6 @@ namespace CRL {
using std::cerr;
using std::endl;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -74,7 +73,7 @@ extern "C" {
static PyObject* PyVhdl_destroyAllVHDL ( PyObject* module )
{
- trace << "PyVhdl_destroyAllVHDL()" << endl;
+ cdebug.log(30) << "PyVhdl_destroyAllVHDL()" << endl;
HTRY
EntityExtension::destroyAll();
@@ -104,7 +103,7 @@ extern "C" {
// Module Initialization : "initCRL ()"
DL_EXPORT(void) initCRL () {
- trace << "initCRL()" << endl;
+ cdebug.log(30) << "initCRL()" << endl;
PyBanner_LinkPyType ();
PyCatalogState_LinkPyType ();
@@ -198,7 +197,7 @@ extern "C" {
//PyObject* dictionnary = PyModule_GetDict ( module );
//DbULoadConstants ( dictionnary );
- trace << "CRL.so loaded " << (void*)&typeid(string) << endl;
+ cdebug.log(30) << "CRL.so loaded " << (void*)&typeid(string) << endl;
}
diff --git a/crlcore/src/pyCRL/PyCatalog.cpp b/crlcore/src/pyCRL/PyCatalog.cpp
index 82fe53cb..051e6e9e 100644
--- a/crlcore/src/pyCRL/PyCatalog.cpp
+++ b/crlcore/src/pyCRL/PyCatalog.cpp
@@ -37,7 +37,6 @@ namespace CRL {
using std::hex;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Error;
using Hurricane::Warning;
using Isobar::ProxyProperty;
diff --git a/crlcore/src/pyCRL/PyCatalogState.cpp b/crlcore/src/pyCRL/PyCatalogState.cpp
index 346e4153..31f5a993 100644
--- a/crlcore/src/pyCRL/PyCatalogState.cpp
+++ b/crlcore/src/pyCRL/PyCatalogState.cpp
@@ -27,7 +27,6 @@ namespace CRL {
using std::hex;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -115,7 +114,7 @@ extern "C" {
DirectHashMethod(PyCatalogState_Hash, PyCatalogState)
extern void PyCatalogState_LinkPyType() {
- trace << "PyCatalogState_LinkType()" << endl;
+ cdebug.log(30) << "PyCatalogState_LinkType()" << endl;
PyTypeCatalogState.tp_dealloc = (destructor) PyCatalogState_DeAlloc;
PyTypeCatalogState.tp_compare = (cmpfunc) PyCatalogState_Cmp;
PyTypeCatalogState.tp_repr = (reprfunc) PyCatalogState_Repr;
diff --git a/crlcore/src/pyCRL/PyCellGauge.cpp b/crlcore/src/pyCRL/PyCellGauge.cpp
index 8fda554f..e50a4575 100644
--- a/crlcore/src/pyCRL/PyCellGauge.cpp
+++ b/crlcore/src/pyCRL/PyCellGauge.cpp
@@ -27,7 +27,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -62,7 +61,7 @@ extern "C" {
static PyObject* PyCellGauge_create ( PyObject*, PyObject* args )
{
- trace << "PyCellGauge_create()" << endl;
+ cdebug.log(30) << "PyCellGauge_create()" << endl;
CellGauge* cg = NULL;
PyCellGauge* pyCg = NULL;
diff --git a/crlcore/src/pyCRL/PyEnvironment.cpp b/crlcore/src/pyCRL/PyEnvironment.cpp
index 91964b4c..55e013c2 100644
--- a/crlcore/src/pyCRL/PyEnvironment.cpp
+++ b/crlcore/src/pyCRL/PyEnvironment.cpp
@@ -27,7 +27,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -68,7 +67,7 @@ extern "C" {
PyObject* PyEnvironment_addSYSTEM_LIBRARY ( PyEnvironment* self, PyObject* args, PyObject* kwArgs )
{
- trace << "PyEnvironment_addSYSTEM_LIBRARY()" << endl;
+ cdebug.log(30) << "PyEnvironment_addSYSTEM_LIBRARY()" << endl;
HTRY
METHOD_HEAD("Environment.addSYSTEM_LIBRARY()")
@@ -114,7 +113,7 @@ extern "C" {
PyObject* PyEnvironment_getLIBRARYPath ( PyEnvironment* self, PyObject* args )
{
- trace << "PyEnvironment_getLIBRARYPath()" << endl;
+ cdebug.log(30) << "PyEnvironment_getLIBRARYPath()" << endl;
HTRY
METHOD_HEAD("Environment.getLIBRARYPath()")
@@ -266,7 +265,7 @@ extern "C" {
DirectHashMethod(PyEnvironment_Hash, PyEnvironment)
extern void PyEnvironment_LinkPyType() {
- trace << "PyEnvironment_LinkType()" << endl;
+ cdebug.log(30) << "PyEnvironment_LinkType()" << endl;
PyTypeEnvironment.tp_dealloc = (destructor) PyEnvironment_DeAlloc;
PyTypeEnvironment.tp_repr = (reprfunc) PyEnvironment_Repr;
diff --git a/crlcore/src/pyCRL/PyIspd05.cpp b/crlcore/src/pyCRL/PyIspd05.cpp
index c91feb5b..fdf0e30f 100644
--- a/crlcore/src/pyCRL/PyIspd05.cpp
+++ b/crlcore/src/pyCRL/PyIspd05.cpp
@@ -29,7 +29,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -57,7 +56,7 @@ extern "C" {
static PyObject* PyIspd05_load ( PyObject*, PyObject* args )
{
- trace << "PyIspd05_load()" << endl;
+ cdebug.log(30) << "PyIspd05_load()" << endl;
Cell* cell = NULL;
diff --git a/crlcore/src/pyCRL/PyRoutingGauge.cpp b/crlcore/src/pyCRL/PyRoutingGauge.cpp
index e7516107..f670284f 100644
--- a/crlcore/src/pyCRL/PyRoutingGauge.cpp
+++ b/crlcore/src/pyCRL/PyRoutingGauge.cpp
@@ -30,7 +30,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -68,7 +67,7 @@ extern "C" {
static PyObject* PyRoutingGauge_create ( PyObject*, PyObject* args )
{
- trace << "PyRoutingGauge_create()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_create()" << endl;
RoutingGauge* rg = NULL;
PyRoutingGauge* pyRg = NULL;
@@ -97,7 +96,7 @@ extern "C" {
static PyObject* PyRoutingGauge_getTechnology ( PyRoutingGauge* self )
{
- trace << "PyRoutingGauge_getTechnology()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_getTechnology()" << endl;
Technology* technology = NULL;
@@ -112,7 +111,7 @@ extern "C" {
static PyObject* PyRoutingGauge_getDepth ( PyRoutingGauge* self )
{
- trace << "PyRoutingGauge_getDepth()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_getDepth()" << endl;
size_t depth = 0;
@@ -127,7 +126,7 @@ extern "C" {
static PyObject* PyRoutingGauge_getLayerDepth ( PyRoutingGauge* self, PyObject* args )
{
- trace << "PyRoutingGauge_getLayerDepth()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_getLayerDepth()" << endl;
size_t depth = 0;
@@ -154,7 +153,7 @@ extern "C" {
static PyObject* PyRoutingGauge_getLayerGauge ( PyRoutingGauge* self, PyObject* args )
{
- trace << "PyRoutingGauge_getLayerGauge()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_getLayerGauge()" << endl;
RoutingLayerGauge* rlg = NULL;
@@ -189,7 +188,7 @@ extern "C" {
static PyObject* PyRoutingGauge_getLayerDirection ( PyRoutingGauge* self, PyObject* args )
{
- trace << "PyRoutingGauge_getLayerDirection()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_getLayerDirection()" << endl;
unsigned int direction = 0;
@@ -220,7 +219,7 @@ extern "C" {
static PyObject* PyRoutingGauge_getLayerPitch ( PyRoutingGauge* self, PyObject* args )
{
- trace << "PyRoutingGauge_getLayerPitch()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_getLayerPitch()" << endl;
DbU::Unit pitch = 0;
@@ -251,7 +250,7 @@ extern "C" {
static PyObject* PyRoutingGauge_getRoutingLayer ( PyRoutingGauge* self, PyObject* args )
{
- trace << "PyRoutingGauge_getRoutingLayer()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_getRoutingLayer()" << endl;
Layer* layer = NULL;
@@ -278,7 +277,7 @@ extern "C" {
static PyObject* PyRoutingGauge_getContactLayer ( PyRoutingGauge* self, PyObject* args )
{
- trace << "PyRoutingGauge_getContactLayer()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_getContactLayer()" << endl;
Layer* layer = NULL;
@@ -305,7 +304,7 @@ extern "C" {
PyObject* PyRoutingGauge_addLayerGauge ( PyRoutingGauge* self, PyObject* args )
{
- trace << "PyRoutingGauge_addLayerGauge()" << endl;
+ cdebug.log(30) << "PyRoutingGauge_addLayerGauge()" << endl;
HTRY
METHOD_HEAD("RoutingGauge.addLayerGauge()")
diff --git a/crlcore/src/pyCRL/PyRoutingLayerGauge.cpp b/crlcore/src/pyCRL/PyRoutingLayerGauge.cpp
index a4576238..b7418878 100644
--- a/crlcore/src/pyCRL/PyRoutingLayerGauge.cpp
+++ b/crlcore/src/pyCRL/PyRoutingLayerGauge.cpp
@@ -28,7 +28,6 @@ namespace CRL {
using std::string;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -61,7 +60,7 @@ extern "C" {
static PyObject* PyRoutingLayerGauge_create ( PyObject*, PyObject* args )
{
- trace << "PyRoutingLayerGauge_create()" << endl;
+ cdebug.log(30) << "PyRoutingLayerGauge_create()" << endl;
RoutingLayerGauge* rlg = NULL;
PyRoutingLayerGauge* pyRlg = NULL;
@@ -141,7 +140,7 @@ extern "C" {
static PyObject* PyRoutingLayerGauge_getLayer ( PyRoutingLayerGauge* self )
{
- trace << "PyRoutingLayerGauge_getLayer()" << endl;
+ cdebug.log(30) << "PyRoutingLayerGauge_getLayer()" << endl;
Layer* layer = NULL;
@@ -156,7 +155,7 @@ extern "C" {
static PyObject* PyRoutingLayerGauge_getBlockageLayer ( PyRoutingLayerGauge* self )
{
- trace << "PyRoutingLayerGauge_getBlockageLayer()" << endl;
+ cdebug.log(30) << "PyRoutingLayerGauge_getBlockageLayer()" << endl;
Layer* layer = NULL;
@@ -171,7 +170,7 @@ extern "C" {
static PyObject* PyRoutingLayerGauge_getTrackNumber ( PyRoutingLayerGauge* self, PyObject* args )
{
- trace << "PyRoutingLayerGauge_getTrackNumber()" << endl;
+ cdebug.log(30) << "PyRoutingLayerGauge_getTrackNumber()" << endl;
unsigned int trackNumber = 0;
@@ -195,7 +194,7 @@ extern "C" {
static PyObject* PyRoutingLayerGauge_getTrackIndex ( PyRoutingLayerGauge* self, PyObject* args )
{
- trace << "PyRoutingLayerGauge_getTrackIndex()" << endl;
+ cdebug.log(30) << "PyRoutingLayerGauge_getTrackIndex()" << endl;
unsigned int trackIndex = 0;
@@ -233,7 +232,7 @@ extern "C" {
static PyObject* PyRoutingLayerGauge_getTrackPosition ( PyRoutingLayerGauge* self, PyObject* args )
{
- trace << "PyRoutingLayerGauge_getTrackPosition()" << endl;
+ cdebug.log(30) << "PyRoutingLayerGauge_getTrackPosition()" << endl;
DbU::Unit trackPosition = 0;
diff --git a/crlcore/src/pyCRL/PyToolBox.cpp b/crlcore/src/pyCRL/PyToolBox.cpp
index f43ed29e..6c7b7aeb 100644
--- a/crlcore/src/pyCRL/PyToolBox.cpp
+++ b/crlcore/src/pyCRL/PyToolBox.cpp
@@ -35,7 +35,6 @@ namespace CRL {
using std::hex;
using std::ostringstream;
using Hurricane::tab;
- using Hurricane::in_trace;
using Hurricane::Exception;
using Hurricane::Bug;
using Hurricane::Error;
@@ -71,7 +70,7 @@ extern "C" {
extern PyObject* PyToolBox_createPartRing ( PyObject* module, PyObject* args )
{
- trace << "PyToolBox_createPartRing ()" << endl;
+ cdebug.log(30) << "PyToolBox_createPartRing ()" << endl;
HTRY
PyObject* arg0;
diff --git a/crlcore/src/pyCRL/PyToolEngine.cpp b/crlcore/src/pyCRL/PyToolEngine.cpp
index 05aa584d..51daba1f 100644
--- a/crlcore/src/pyCRL/PyToolEngine.cpp
+++ b/crlcore/src/pyCRL/PyToolEngine.cpp
@@ -46,7 +46,7 @@ extern "C" {
static PyObject* PyToolEngine_get ( PyObject*, PyObject* args, PyObject* kwArgs )
{
- trace << "PyToolEngine_get()" << endl;
+ cdebug.log(30) << "PyToolEngine_get()" << endl;
HTRY
PyObject* pyCell = NULL;
@@ -98,7 +98,7 @@ extern "C" {
static PyObject* PyToolEngine_destroyAll ( PyObject* )
{
- trace << "PyToolEngine_destroyAll()" << endl;
+ cdebug.log(30) << "PyToolEngine_destroyAll()" << endl;
HTRY
ToolEngine::destroyAll();
@@ -110,7 +110,7 @@ extern "C" {
static PyObject* PyToolEngine_getCell ( PyToolEngine* self )
{
- trace << "PyToolEngine_getCell ()" << endl;
+ cdebug.log(30) << "PyToolEngine_getCell ()" << endl;
Cell* cell = NULL;
diff --git a/crlcore/src/x2y/x2y.cpp b/crlcore/src/x2y/x2y.cpp
index 1868845a..878cc260 100644
--- a/crlcore/src/x2y/x2y.cpp
+++ b/crlcore/src/x2y/x2y.cpp
@@ -16,7 +16,6 @@ using namespace CRL;
int main(int argc, char *argv[]) {
try {
- unsigned int traceLevel;
bool verbose1;
bool verbose2;
bool coreDump;
@@ -30,9 +29,6 @@ int main(int argc, char *argv[]) {
, "Second level of verbosity.")
( "core-dump,D" , poptions::bool_switch(&coreDump)->default_value(false)
, "Enable core dumping.")
- ( "trace-level,l" , poptions::value(&traceLevel)->default_value(1000)
- , "Set the level of trace, trace messages with a level superior to "
- " will be printed on ." )
( "cell,c" , poptions::value()
, "The name of the cell to load, whithout extension." );
diff --git a/documentation/UsersGuide/UsersGuide.html b/documentation/UsersGuide/UsersGuide.html
index 48fe8301..31b835e9 100644
--- a/documentation/UsersGuide/UsersGuide.html
+++ b/documentation/UsersGuide/UsersGuide.html
@@ -395,7 +395,7 @@ dummy@lepka:~$ git clone https://www-soc.lip6.fr/git/coriolis.git
Third and final step, build & install:
-dummy@lepka:src$ ./bootstrap/ccp.py --project=support \
+dummy@lepka:src$ ./bootstrap/ccb.py --project=support \
--project=coriolis \
--make="-j4 install"
dummy@lepka:src$ ./bootstrap/ccb.py --project=support \
@@ -407,7 +407,7 @@ do not support to be generated with a parallel build. So we compile & instal
stage in -j4 (or whatever) then we generate the documentation in -j1 |
Under rhel6 or clones, you must build using the devtoolset2:
-dummy@lepka:src$ ./bootstrap/ccp.py --project=coriolis \
+dummy@lepka:src$ ./bootstrap/ccb.py --project=coriolis \
--devtoolset-2 --make="-j4 install"
If you want to uses Qt 5 instead of Qt 4, you may add the --qt5 argument.
@@ -425,7 +425,7 @@ development team. To use it instead of the master one, d
command just after the first step:
dummy@lepka:~$ git checkout devel
-dummy@lepka:src$ ./bootstrap/ccp.py --project=coriolis \
+dummy@lepka:src$ ./bootstrap/ccb.py --project=coriolis \
--make="-j4 install" --debug
Be aware that it may requires newer versions of the dependencies and may introduce
diff --git a/documentation/UsersGuide/UsersGuide.pdf b/documentation/UsersGuide/UsersGuide.pdf
index b11b3f2c..5159e71a 100644
--- a/documentation/UsersGuide/UsersGuide.pdf
+++ b/documentation/UsersGuide/UsersGuide.pdf
@@ -121,20 +121,16 @@ p\
endstream
endobj
99 0 obj
-<>
+<>
stream
-xڵY[s۸~`C3;SJlniRx=ulIȑ"u}p Ki26I\;`A
Sg$1,!q<(?',4,(4,ʨLbnh_|C)Y옆Tv
&N#ۄq5~lqi|3Ɠ^Rp8'aWFa|@ݎʎKBO.JqG,ӤPj@lALk2+Jm()ЄYdEj