2012-11-16 06:54:28 -06:00
|
|
|
// -*- C++ -*-
|
|
|
|
//
|
|
|
|
// This file is part of the Coriolis Software.
|
Improved UpdateSession & exception catching. Start of RoutingGauge implem.
Miscellaneous:
* Change: In <crlcore>, in display.conf use the same display threshold
for both METAL2 & METAL3.
In alliance.conf, the side of VIAs in the gauge is 2l (not 3l).
In kite.conf, separate edge densities for H/V.
* Change: In <Cell>, in flattenNets() use flag as argument, not a
boolean. Do not create rings for clock or supply nets.
* Change: In <DeepNet>, in _createRoutingPads() do not create rings
for clock or supply net (duplicated policy as in Cell::flattenNets()).
* Bug: In <ControllerWidget>, at last find the bad signal disconnect
that was causing ungraceful messages.
* Change: In <knik>, in Edge display occupancy/capacity in the string
name. Improved display progress and debugging capabilities.
Improved exception catch & breakpoint managment:
* Bug: In <PaletteWidget>, in updateExtensions() replace the calls to
deleteLayer() by delete. This cause the widget to be immediatly
erased instead of waiting for the event queue to be completly
processed. This was causing the widget to be left in a incoherent
state when stoping at a breakpoint.
* Bug: In <BreakpointWidget>, in execNoModal(), flush the main event
loop (QApplication::flush()) *before* lauching the *local* event
loop. This is to ensure all widgets are in their final state when
waiting (especially <PaletteWidget>).
* Change: In <ExceptionWidget>, new method catchAllWrapper() to
execute any std::function< void() > function/method with a "try"/
"catch" wraparound and lauch the widget in case something is catch.
* New: In <hurricane>, support for a oberver pattern, backported from
<katabatic> with an Obervable capable of being linked to any
number of Obervers.
* New: In <Cell>, made it observable to detect Cell change, currently
emit two kind of signals:
- Cell::CellAboutToChange : *before* any change.
- Cell::CellChanged : *after* the change has been completed.
* New: In <UpdateSession>, in Go::invalidate() add the Cell owning the
Go to the UPDATOR_STACK (of course the cell is added only once).
In addition, when the Cell is added, send a notification of
Cell::CellAboutToChange to all it's observers. The slave instances
are also invalidated.
Conversely in UpdateSession::_preDestroy() for each invalidated
Cell send a Cell::CellChanged notification to all observer.
The UPDATOR_STACK has been slightly amended to accept Cell which
are not Gos. Prior to this, the Cell where completly excluded from
the UpdateSession mechanism, so it's instances where never actualised
of anything referring to the Cell for that matter.
Note: we use two different mechanisms to transmit a Cell change,
observers and the slave instance map. I think at some point it
should be unificated.
* Change: In <CellViewer>, make it a Cell observer to redraw when the
cell is modificated (also update the palette).
Uses the catchAllWrapper() to protect all critical actions.
* Change: In <GraphicTool>, no longer need of cellPreModificated and
cellPostModificated signals. Now done through the Cell obersvers.
* Change: In <mauka>, <etesian> & <kite> now uses the catchAllWrapper
method for protection (need to split methods in two, to be able
to pass it as argument). No longer emit cellPreModificated and
cellPostModificated.
Support for RoutingGauge in P&R:
* Bug: In <placeandroute.py>, the connection from the internal power
ring to the connectors was not done correctly. Wrong contact layers
leading to a gap.
* Change: In <BuildPowerRails>, detection of the corona signals based
on how the "pck_px" pad is connected. No longer based on name
matching.
* Change: In <placeandroute.py>, support for 2 routing metal only
(3 metal in the technology).
* Change: In <katabatic> & <kite> support for a "top layer" limitation
on the routing gauge, this allows to use only two routing metals
(METAL2 & METAL3). Work in progress.
2014-04-20 12:25:08 -05:00
|
|
|
// Copyright (c) UPMC/LIP6 2008-2014, All Rights Reserved
|
2012-11-16 06:54:28 -06:00
|
|
|
//
|
|
|
|
// +-----------------------------------------------------------------+
|
|
|
|
// | C O R I O L I S |
|
|
|
|
// | K i t e - D e t a i l e d R o u t e r |
|
|
|
|
// | |
|
|
|
|
// | Author : Jean-Paul Chaput |
|
|
|
|
// | E-mail : Jean-Paul.Chaput@lip6.fr |
|
|
|
|
// | =============================================================== |
|
|
|
|
// | C++ Module : "./PyGraphicKiteEngine.cpp" |
|
|
|
|
// +-----------------------------------------------------------------+
|
|
|
|
|
|
|
|
|
|
|
|
#include "kite/PyGraphicKiteEngine.h"
|
|
|
|
#include "hurricane/isobar/PyCell.h"
|
|
|
|
#include "hurricane/Cell.h"
|
|
|
|
|
|
|
|
|
|
|
|
#undef ACCESS_OBJECT
|
|
|
|
#undef ACCESS_CLASS
|
|
|
|
#define ACCESS_OBJECT _baseObject._object
|
|
|
|
#define ACCESS_CLASS(_pyObject) &(_pyObject->_baseObject)
|
|
|
|
#define METHOD_HEAD(function) GENERIC_METHOD_HEAD(GraphicKiteEngine,gtool,function)
|
|
|
|
|
|
|
|
|
|
|
|
namespace Kite {
|
|
|
|
|
|
|
|
using namespace Hurricane;
|
|
|
|
using namespace Isobar;
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
|
|
|
|
// +=================================================================+
|
|
|
|
// | "PyGraphicKiteEngine" Python Module Code Part |
|
|
|
|
// +=================================================================+
|
|
|
|
|
|
|
|
#if defined(__PYTHON_MODULE__)
|
|
|
|
|
|
|
|
|
|
|
|
// +-------------------------------------------------------------+
|
|
|
|
// | "PyGraphicKiteEngine" Attribute Methods |
|
|
|
|
// +-------------------------------------------------------------+
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject* PyGraphicKiteEngine_grab ( PyObject* )
|
|
|
|
{
|
|
|
|
trace << "PyGraphicKiteEngine_grab()" << endl;
|
|
|
|
PyGraphicKiteEngine* pyGraphicKiteEngine = NULL;
|
|
|
|
|
|
|
|
HTRY
|
|
|
|
pyGraphicKiteEngine = PyObject_NEW ( PyGraphicKiteEngine, &PyTypeGraphicKiteEngine );
|
|
|
|
if ( pyGraphicKiteEngine == NULL ) return NULL;
|
|
|
|
|
|
|
|
pyGraphicKiteEngine->ACCESS_OBJECT = GraphicKiteEngine::grab();
|
|
|
|
HCATCH
|
|
|
|
|
|
|
|
return (PyObject*)pyGraphicKiteEngine;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject* PyGraphicKiteEngine_getCell ( PyGraphicKiteEngine* self )
|
|
|
|
{
|
|
|
|
trace << "PyGraphicKiteEngine_getCell ()" << endl;
|
|
|
|
|
|
|
|
Cell* cell = NULL;
|
|
|
|
|
|
|
|
HTRY
|
|
|
|
METHOD_HEAD("GraphicKiteEngine.getCell()")
|
|
|
|
cell = gtool->getCell ();
|
|
|
|
HCATCH
|
|
|
|
|
|
|
|
if (cell == NULL) Py_RETURN_NONE;
|
|
|
|
return PyCell_Link(cell);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GetNameMethod(GraphicKiteEngine, gtool)
|
|
|
|
|
|
|
|
// Standart destroy (Attribute).
|
|
|
|
|
|
|
|
|
|
|
|
PyMethodDef PyGraphicKiteEngine_Methods[] =
|
|
|
|
{ { "grab" , (PyCFunction)PyGraphicKiteEngine_grab , METH_NOARGS|METH_STATIC
|
|
|
|
, "Returns the GraphicKiteEngine singleton." }
|
|
|
|
, { "getName" , (PyCFunction)PyGraphicKiteEngine_getName , METH_NOARGS
|
|
|
|
, "Returns the name of the GraphicKiteEngine (class attribute)." }
|
|
|
|
, { "getCell" , (PyCFunction)PyGraphicKiteEngine_getCell , METH_NOARGS
|
|
|
|
, "Returns the Cell on which this GraphicKiteEngine is attached." }
|
|
|
|
, {NULL, NULL, 0, NULL} /* sentinel */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------
|
|
|
|
// PyGraphicKiteEngine Type Methods.
|
|
|
|
|
|
|
|
|
|
|
|
PythonOnlyDeleteMethod(GraphicKiteEngine)
|
|
|
|
PyTypeObjectLinkPyType(GraphicKiteEngine)
|
|
|
|
|
|
|
|
|
|
|
|
#else // End of Python Module Code Part.
|
|
|
|
|
|
|
|
|
|
|
|
// +=================================================================+
|
|
|
|
// | "PyGraphicKiteEngine" Shared Library Code Part |
|
|
|
|
// +=================================================================+
|
|
|
|
|
|
|
|
// Link/Creation Method.
|
|
|
|
LinkCreateMethod(GraphicKiteEngine)
|
|
|
|
|
|
|
|
PyTypeInheritedObjectDefinitions(GraphicKiteEngine,GraphicTool)
|
|
|
|
|
|
|
|
|
|
|
|
#endif // End of Shared Library Code Part.
|
|
|
|
|
|
|
|
} // extern "C".
|
|
|
|
|
|
|
|
} // CRL namespace.
|