Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
// -*- C++ -*-
|
|
|
|
//
|
|
|
|
// This file is part of the Coriolis Software.
|
|
|
|
// Copyright (c) UPMC 2008-2016, All Rights Reserved
|
|
|
|
//
|
|
|
|
// +-----------------------------------------------------------------+
|
|
|
|
// | 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++ Header : "./GraphicKatanaEngine.cpp" |
|
|
|
|
// +-----------------------------------------------------------------+
|
|
|
|
|
|
|
|
|
|
|
|
#include <boost/bind.hpp>
|
|
|
|
#include <QAction>
|
|
|
|
#include <QMenu>
|
|
|
|
#include <QMenuBar>
|
|
|
|
#include <QApplication>
|
|
|
|
#include <hurricane/Warning.h>
|
|
|
|
#include <hurricane/Error.h>
|
|
|
|
#include <hurricane/Breakpoint.h>
|
|
|
|
#include <hurricane/DebugSession.h>
|
|
|
|
#include <hurricane/Go.h>
|
|
|
|
#include <hurricane/Net.h>
|
|
|
|
#include <hurricane/Cell.h>
|
|
|
|
#include <hurricane/viewer/Graphics.h>
|
|
|
|
#include <hurricane/viewer/CellWidget.h>
|
|
|
|
#include <hurricane/viewer/CellViewer.h>
|
|
|
|
#include <hurricane/viewer/ControllerWidget.h>
|
|
|
|
#include <hurricane/viewer/ExceptionWidget.h>
|
|
|
|
#include <crlcore/Utilities.h>
|
|
|
|
#include <crlcore/AllianceFramework.h>
|
|
|
|
#include <anabatic/GCell.h>
|
|
|
|
#include <katana/GraphicKatanaEngine.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace Katana {
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using Hurricane::Error;
|
|
|
|
using Hurricane::Warning;
|
|
|
|
using Hurricane::Exception;
|
|
|
|
using Hurricane::Breakpoint;
|
|
|
|
using Hurricane::DebugSession;
|
|
|
|
using Hurricane::Point;
|
|
|
|
using Hurricane::Entity;
|
|
|
|
using Hurricane::Net;
|
|
|
|
using Hurricane::Graphics;
|
|
|
|
using Hurricane::ColorScale;
|
2016-09-07 04:21:36 -05:00
|
|
|
using Hurricane::DisplayStyle;
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
using Hurricane::ControllerWidget;
|
|
|
|
using Hurricane::ExceptionWidget;
|
|
|
|
using CRL::Catalog;
|
|
|
|
using CRL::AllianceFramework;
|
2016-09-07 04:21:36 -05:00
|
|
|
using Anabatic::Edge;
|
|
|
|
using Anabatic::GCell;
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
size_t GraphicKatanaEngine::_references = 0;
|
|
|
|
GraphicKatanaEngine* GraphicKatanaEngine::_singleton = NULL;
|
|
|
|
|
|
|
|
|
2016-09-07 04:21:36 -05:00
|
|
|
void GraphicKatanaEngine::initGCell ( CellWidget* widget )
|
|
|
|
{
|
|
|
|
widget->getDrawingPlanes().setPen( Qt::NoPen );
|
2016-09-10 11:49:48 -05:00
|
|
|
KatanaEngine* katana = KatanaEngine::get( widget->getCell() );
|
|
|
|
if (katana) katana->setDensityMode( GCell::MaxDensity );
|
2016-09-07 04:21:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::drawGCell ( CellWidget* widget
|
|
|
|
, const Go* go
|
|
|
|
, const BasicLayer* basicLayer
|
|
|
|
, const Box& box
|
|
|
|
, const Transformation& transformation
|
|
|
|
)
|
|
|
|
{
|
|
|
|
const GCell* gcell = static_cast<const GCell*>(go);
|
|
|
|
|
|
|
|
QPainter& painter = widget->getPainter();
|
|
|
|
QPen pen = Graphics::getPen ("Anabatic::GCell",widget->getDarkening());
|
|
|
|
Box bb = gcell->getBoundingBox();
|
|
|
|
QRect pixelBb = widget->dbuToScreenRect(bb);
|
|
|
|
|
2016-09-10 11:49:48 -05:00
|
|
|
if (GCell::getDisplayMode() == GCell::Density) {
|
|
|
|
unsigned int density = (unsigned int)( 255.0 * gcell->getDensity() );
|
|
|
|
if (density > 255) density = 255;
|
2016-09-07 04:21:36 -05:00
|
|
|
|
2016-09-10 11:49:48 -05:00
|
|
|
painter.setBrush( Graphics::getColorScale( ColorScale::Fire ).getBrush( density, widget->getDarkening() ) );
|
|
|
|
painter.drawRect( pixelBb );
|
|
|
|
} else {
|
First intergration of the Analogic router parts.
* New: In Anabatic::AutoSegment, introduce a the kind (associated to a
flag) "LongLocal". Analog GCells can be very wide, so at least some
carefuly choosen long local segments must be took into account as
attractors in the computation of the optimal axis.
* New: In Anabatic::AutoSegment::computeOptimal(), take LongLocal into
account as attractors.
* Change: In ::GCellTopology constructors compare the layers of the
RoutingPads using layer masks instead of Layer pointers. Allows to
find both "METALx" (symbolic) and "metalX" (real).
* Change: In ::GCellTopology::_doHChannel(), _doChannel(), _doStrut()
and _doDevice(), tag long locals as "LongLocal". This need to be
reviewed as it as bind done a bit too quickly.
* Change: In Anabatic::AutoSegment, due too a much bigger span of the
analogic GCells the _optimalMin & _optimalMax bitfields must use
16 bits instead of 8 (they where overflowed).
* New: In Katana, reorganisation of the initialization procedure to fit
both digital and analogic cases. Create an analogInit() method.
* Change: In Katana::RoutingEvent, the _tracksNb and _tracksFree bitfields
where too short for the Analog GCell size, now uses 16 bits instead of
6.
* Bug: In Katana::GraphicKatanEngine::drawGCell(), skip drawing of a
GCell if *both* width and height are under 150 pixels.
* New: In Katana::Session, add a new isOpen() method.
2016-10-04 10:12:58 -05:00
|
|
|
if ( (pixelBb.width() > 150) or (pixelBb.height() > 150) ) {
|
2016-09-10 11:49:48 -05:00
|
|
|
painter.setPen ( pen );
|
|
|
|
painter.setBrush( Graphics::getBrush("Anabatic::GCell",widget->getDarkening()) );
|
|
|
|
painter.drawRect( pixelBb );
|
|
|
|
|
First intergration of the Analogic router parts.
* New: In Anabatic::AutoSegment, introduce a the kind (associated to a
flag) "LongLocal". Analog GCells can be very wide, so at least some
carefuly choosen long local segments must be took into account as
attractors in the computation of the optimal axis.
* New: In Anabatic::AutoSegment::computeOptimal(), take LongLocal into
account as attractors.
* Change: In ::GCellTopology constructors compare the layers of the
RoutingPads using layer masks instead of Layer pointers. Allows to
find both "METALx" (symbolic) and "metalX" (real).
* Change: In ::GCellTopology::_doHChannel(), _doChannel(), _doStrut()
and _doDevice(), tag long locals as "LongLocal". This need to be
reviewed as it as bind done a bit too quickly.
* Change: In Anabatic::AutoSegment, due too a much bigger span of the
analogic GCells the _optimalMin & _optimalMax bitfields must use
16 bits instead of 8 (they where overflowed).
* New: In Katana, reorganisation of the initialization procedure to fit
both digital and analogic cases. Create an analogInit() method.
* Change: In Katana::RoutingEvent, the _tracksNb and _tracksFree bitfields
where too short for the Analog GCell size, now uses 16 bits instead of
6.
* Bug: In Katana::GraphicKatanEngine::drawGCell(), skip drawing of a
GCell if *both* width and height are under 150 pixels.
* New: In Katana::Session, add a new isOpen() method.
2016-10-04 10:12:58 -05:00
|
|
|
if ( (pixelBb.width() > 300) and (pixelBb.height() > 100) ) {
|
2016-09-10 11:49:48 -05:00
|
|
|
QString text = QString("id:%1").arg(gcell->getId());
|
|
|
|
QFont font = Graphics::getFixedFont( QFont::Bold );
|
|
|
|
painter.setFont(font);
|
|
|
|
|
|
|
|
pen.setWidth( 1 );
|
|
|
|
painter.setPen( pen );
|
|
|
|
|
|
|
|
painter.save ();
|
|
|
|
painter.translate( widget->dbuToScreenPoint(bb.getCenter().getX(), bb.getCenter().getY()) );
|
First intergration of the Analogic router parts.
* New: In Anabatic::AutoSegment, introduce a the kind (associated to a
flag) "LongLocal". Analog GCells can be very wide, so at least some
carefuly choosen long local segments must be took into account as
attractors in the computation of the optimal axis.
* New: In Anabatic::AutoSegment::computeOptimal(), take LongLocal into
account as attractors.
* Change: In ::GCellTopology constructors compare the layers of the
RoutingPads using layer masks instead of Layer pointers. Allows to
find both "METALx" (symbolic) and "metalX" (real).
* Change: In ::GCellTopology::_doHChannel(), _doChannel(), _doStrut()
and _doDevice(), tag long locals as "LongLocal". This need to be
reviewed as it as bind done a bit too quickly.
* Change: In Anabatic::AutoSegment, due too a much bigger span of the
analogic GCells the _optimalMin & _optimalMax bitfields must use
16 bits instead of 8 (they where overflowed).
* New: In Katana, reorganisation of the initialization procedure to fit
both digital and analogic cases. Create an analogInit() method.
* Change: In Katana::RoutingEvent, the _tracksNb and _tracksFree bitfields
where too short for the Analog GCell size, now uses 16 bits instead of
6.
* Bug: In Katana::GraphicKatanEngine::drawGCell(), skip drawing of a
GCell if *both* width and height are under 150 pixels.
* New: In Katana::Session, add a new isOpen() method.
2016-10-04 10:12:58 -05:00
|
|
|
painter.drawRect ( QRect( -80, -25, 160, 50 ) );
|
|
|
|
painter.drawText ( QRect( -80, -25, 160, 50 )
|
2016-09-10 11:49:48 -05:00
|
|
|
, text
|
|
|
|
, QTextOption(Qt::AlignCenter)
|
|
|
|
);
|
|
|
|
painter.restore ();
|
|
|
|
}
|
|
|
|
}
|
2016-09-07 04:21:36 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::initEdge ( CellWidget* widget )
|
|
|
|
{
|
|
|
|
widget->getDrawingPlanes().setPen( Qt::NoPen );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::drawEdge ( CellWidget* widget
|
|
|
|
, const Go* go
|
|
|
|
, const BasicLayer* basicLayer
|
|
|
|
, const Box& box
|
|
|
|
, const Transformation& transformation
|
|
|
|
)
|
|
|
|
{
|
|
|
|
static QFont font = Graphics::getFixedFont( QFont::Bold );
|
|
|
|
static int fontHeight = QFontMetrics(font).height();
|
|
|
|
|
|
|
|
const Edge* edge = static_cast<const Edge*>(go);
|
|
|
|
|
|
|
|
if (edge) {
|
|
|
|
Box bb = edge->getBoundingBox();
|
|
|
|
unsigned int occupancy = 255;
|
|
|
|
if (edge->getRealOccupancy() < edge->getCapacity())
|
|
|
|
occupancy = (unsigned int)( 255.0 * ( (float)edge->getRealOccupancy() / (float)edge->getCapacity() ) );
|
|
|
|
|
|
|
|
QPainter& painter = widget->getPainter();
|
|
|
|
if (edge->getRealOccupancy() > edge->getCapacity()) {
|
|
|
|
QColor color ( Qt::cyan );
|
|
|
|
painter.setPen( DisplayStyle::darken(color,widget->getDarkening()) );
|
|
|
|
}
|
|
|
|
|
|
|
|
QBrush brush = QBrush( Qt::white, Qt::DiagCrossPattern );
|
|
|
|
if (edge->getCapacity() > 0.0)
|
|
|
|
brush = Graphics::getColorScale( ColorScale::Fire ).getBrush( occupancy, widget->getDarkening() );
|
|
|
|
|
|
|
|
QRect pixelBb = widget->dbuToScreenRect( bb, false);
|
|
|
|
painter.setPen( Qt::NoPen );
|
|
|
|
painter.setBrush( brush );
|
|
|
|
painter.drawRect( pixelBb );
|
|
|
|
|
|
|
|
if (fontHeight > ((edge->isHorizontal()) ? pixelBb.height() : pixelBb.width()) + 4) return;
|
|
|
|
|
|
|
|
QString text = QString("%1/%2").arg(edge->getRealOccupancy()).arg(edge->getCapacity());
|
|
|
|
QColor color ( (occupancy > 170) ? Qt::black : Qt::white );
|
|
|
|
painter.setPen (DisplayStyle::darken(color,widget->getDarkening()));
|
|
|
|
painter.setFont(font);
|
|
|
|
|
|
|
|
if (edge->isVertical()) {
|
|
|
|
painter.save ();
|
|
|
|
painter.translate( widget->dbuToScreenPoint(bb.getXMin(), bb.getYMin()) );
|
|
|
|
painter.rotate ( -90 );
|
|
|
|
painter.drawText (QRect( 0
|
|
|
|
, 0
|
|
|
|
, widget->dbuToScreenLength(bb.getHeight())
|
|
|
|
, widget->dbuToScreenLength(bb.getWidth ()))
|
|
|
|
, text
|
|
|
|
, QTextOption(Qt::AlignCenter)
|
|
|
|
);
|
|
|
|
painter.restore ();
|
|
|
|
} else
|
|
|
|
painter.drawText( widget->dbuToScreenRect(bb,false ), text, QTextOption(Qt::AlignCenter) );
|
|
|
|
|
|
|
|
painter.setPen( Qt::NoPen );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
KatanaEngine* GraphicKatanaEngine::createEngine ()
|
|
|
|
{
|
|
|
|
Cell* cell = getCell ();
|
|
|
|
|
|
|
|
KatanaEngine* katana = KatanaEngine::get( cell );
|
|
|
|
if (not katana) {
|
|
|
|
katana = KatanaEngine::create( cell );
|
|
|
|
katana->setPostEventCb( boost::bind(&GraphicKatanaEngine::postEvent,this) );
|
|
|
|
katana->setViewer( _viewer );
|
2016-09-06 09:27:20 -05:00
|
|
|
katana->digitalInit();
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
if (cmess1.enabled()) katana->printConfiguration();
|
|
|
|
} else
|
|
|
|
cerr << Warning( "%s already has a Katana engine.", getString(cell).c_str() ) << endl;
|
|
|
|
|
|
|
|
return katana;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KatanaEngine* GraphicKatanaEngine::getForFramework ( unsigned int flags )
|
|
|
|
{
|
|
|
|
// Currently, only one framework is avalaible: Alliance.
|
|
|
|
|
|
|
|
KatanaEngine* katana = KatanaEngine::get( getCell() );
|
|
|
|
if (katana) return katana;
|
|
|
|
|
|
|
|
if (flags & CreateEngine) {
|
|
|
|
katana = createEngine();
|
|
|
|
if (not katana)
|
|
|
|
throw Error( "Failed to create Katana engine on %s.", getString(getCell()).c_str() );
|
|
|
|
} else {
|
|
|
|
throw Error( "KatanaEngine not created yet, run the global router first." );
|
|
|
|
}
|
|
|
|
|
|
|
|
return katana;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_globalRoute ()
|
|
|
|
{
|
|
|
|
KatanaEngine* katana = getForFramework( CreateEngine );
|
|
|
|
katana->runGlobalRouter();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_loadGlobalRouting ()
|
|
|
|
{
|
Apaired segments building for symmetric routing (step 1).
* Change: In Hurricane::BaseFlags, store flags in uint64_t instead of
unsigned int because we start to need more than 32 different flags
in some tools.
* New: In ::getString() & ::getRecord() templates, add support for
std::array<>.
* Change: In CRL::ToolEngine, add support for timer (time & memory
measurements) displaced from Katabatic. This way all ToolEngine
can use this feature. The _postCreate() method display the
memory just after ToolEngine allocation.
* Change: In Etesian::EtesianEngine, make use of the ToolEngine
builtin timer (remove the local one). Forgot to call the base
class _postCreate() and _preDestroy().
* Change: In Anabatic::AnabaticEngine, make use of the ToolEngine
builtin timer (remove the local one).
* New: In Anabatic, new AutoSegments_Connecteds() collection. This
Collection allows a deterministic walkthough *all* the AutoSegments
connected either to source or target of one AutoSegment.
* New: In Anabatic::AutoContactTerminal::isEndPoint() to check if an
AutoContactTerminal is the *only one* anchored on a RoutingPad,
thus being a true "end point" and not a kind of feed-through.
* New: In Katana::KatanaEngine, added support for symmetric nets.
Created new class DataSymmetric to store symmetric information
of a net (mainly the paired AutoSegments).
Added KatanaEngine::runSymmetricRouter(), for now only build
the DataSymmetric informations. More to come...
* Change: In Katana::GraphicKatanaEngine::_runTest(), now perform
symmetric information building the non-symmetric routing.
2017-03-12 13:34:12 -05:00
|
|
|
KatanaEngine* katana = getForFramework( NoFlags );
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
|
|
|
|
_viewer->clearToolInterrupt();
|
Apaired segments building for symmetric routing (step 1).
* Change: In Hurricane::BaseFlags, store flags in uint64_t instead of
unsigned int because we start to need more than 32 different flags
in some tools.
* New: In ::getString() & ::getRecord() templates, add support for
std::array<>.
* Change: In CRL::ToolEngine, add support for timer (time & memory
measurements) displaced from Katabatic. This way all ToolEngine
can use this feature. The _postCreate() method display the
memory just after ToolEngine allocation.
* Change: In Etesian::EtesianEngine, make use of the ToolEngine
builtin timer (remove the local one). Forgot to call the base
class _postCreate() and _preDestroy().
* Change: In Anabatic::AnabaticEngine, make use of the ToolEngine
builtin timer (remove the local one).
* New: In Anabatic, new AutoSegments_Connecteds() collection. This
Collection allows a deterministic walkthough *all* the AutoSegments
connected either to source or target of one AutoSegment.
* New: In Anabatic::AutoContactTerminal::isEndPoint() to check if an
AutoContactTerminal is the *only one* anchored on a RoutingPad,
thus being a true "end point" and not a kind of feed-through.
* New: In Katana::KatanaEngine, added support for symmetric nets.
Created new class DataSymmetric to store symmetric information
of a net (mainly the paired AutoSegments).
Added KatanaEngine::runSymmetricRouter(), for now only build
the DataSymmetric informations. More to come...
* Change: In Katana::GraphicKatanaEngine::_runTest(), now perform
symmetric information building the non-symmetric routing.
2017-03-12 13:34:12 -05:00
|
|
|
katana->loadGlobalRouting( Anabatic::EngineLoadGrByNet );
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_balanceGlobalDensity ()
|
|
|
|
{
|
|
|
|
KatanaEngine* katana = getForFramework( NoFlags );
|
|
|
|
//katana->balanceGlobalDensity();
|
|
|
|
katana->layerAssign( Anabatic::EngineNoNetLayerAssign );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_runNegociatePreRouted ()
|
|
|
|
{
|
|
|
|
KatanaEngine* katana = getForFramework( CreateEngine );
|
|
|
|
katana->runNegociate( Flags::PreRoutedStage );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_runNegociate ()
|
|
|
|
{
|
|
|
|
KatanaEngine* katana = getForFramework( NoFlags );
|
|
|
|
katana->runNegociate();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_finalize ()
|
|
|
|
{
|
|
|
|
KatanaEngine* katana = getForFramework( NoFlags );
|
|
|
|
if (katana) {
|
|
|
|
katana->finalizeLayout();
|
|
|
|
katana->destroy();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-24 07:37:11 -06:00
|
|
|
|
|
|
|
void GraphicKatanaEngine::_runTest ()
|
|
|
|
{
|
|
|
|
KatanaEngine* katana = getForFramework( NoFlags );
|
Apaired segments building for symmetric routing (step 1).
* Change: In Hurricane::BaseFlags, store flags in uint64_t instead of
unsigned int because we start to need more than 32 different flags
in some tools.
* New: In ::getString() & ::getRecord() templates, add support for
std::array<>.
* Change: In CRL::ToolEngine, add support for timer (time & memory
measurements) displaced from Katabatic. This way all ToolEngine
can use this feature. The _postCreate() method display the
memory just after ToolEngine allocation.
* Change: In Etesian::EtesianEngine, make use of the ToolEngine
builtin timer (remove the local one). Forgot to call the base
class _postCreate() and _preDestroy().
* Change: In Anabatic::AnabaticEngine, make use of the ToolEngine
builtin timer (remove the local one).
* New: In Anabatic, new AutoSegments_Connecteds() collection. This
Collection allows a deterministic walkthough *all* the AutoSegments
connected either to source or target of one AutoSegment.
* New: In Anabatic::AutoContactTerminal::isEndPoint() to check if an
AutoContactTerminal is the *only one* anchored on a RoutingPad,
thus being a true "end point" and not a kind of feed-through.
* New: In Katana::KatanaEngine, added support for symmetric nets.
Created new class DataSymmetric to store symmetric information
of a net (mainly the paired AutoSegments).
Added KatanaEngine::runSymmetricRouter(), for now only build
the DataSymmetric informations. More to come...
* Change: In Katana::GraphicKatanaEngine::_runTest(), now perform
symmetric information building the non-symmetric routing.
2017-03-12 13:34:12 -05:00
|
|
|
if (katana) {
|
|
|
|
katana->loadGlobalRouting( Anabatic::EngineLoadGrByNet );
|
|
|
|
katana->runTest();
|
|
|
|
katana->runNegociate( Flags::SymmetricStage );
|
|
|
|
katana->runNegociate();
|
|
|
|
}
|
2017-02-24 07:37:11 -06:00
|
|
|
}
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
|
2017-02-24 07:37:11 -06:00
|
|
|
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
void GraphicKatanaEngine::_dumpMeasures ()
|
|
|
|
{
|
|
|
|
KatanaEngine* katana = getForFramework( NoFlags );
|
|
|
|
if (katana) katana->dumpMeasures();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_save ()
|
|
|
|
{
|
|
|
|
Cell* cell = getCell();
|
|
|
|
AllianceFramework* af = AllianceFramework::get();
|
|
|
|
|
|
|
|
string name = getString(cell->getName()) + "_katana";
|
|
|
|
cell->setName( name );
|
|
|
|
af->saveCell( cell, Catalog::State::Physical );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_detailRoute ()
|
|
|
|
{
|
|
|
|
_loadGlobalRouting ();
|
|
|
|
//Breakpoint::stop( 0, "Global routing loaded." );
|
|
|
|
_balanceGlobalDensity();
|
|
|
|
//Breakpoint::stop( 0, "Global density balanced." );
|
|
|
|
_runNegociate ();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::_route ()
|
|
|
|
{
|
|
|
|
_runNegociatePreRouted();
|
|
|
|
_globalRoute ();
|
|
|
|
_detailRoute ();
|
|
|
|
_finalize ();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::postEvent ()
|
|
|
|
{
|
|
|
|
static unsigned int count = 0;
|
|
|
|
|
|
|
|
if (not (count++ % 500)) {
|
|
|
|
QApplication::processEvents();
|
|
|
|
|
|
|
|
if (_viewer->isToolInterrupted()) {
|
|
|
|
KatanaEngine* katana = KatanaEngine::get( getCell() );
|
|
|
|
if (katana) katana->setInterrupt( true );
|
|
|
|
_viewer->clearToolInterrupt();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void GraphicKatanaEngine::addToMenu ( CellViewer* viewer )
|
|
|
|
{
|
|
|
|
assert( _viewer == NULL );
|
|
|
|
|
|
|
|
_viewer = viewer;
|
|
|
|
|
|
|
|
if (_viewer->hasMenuAction("placeAndRoute.katana.route")) {
|
|
|
|
cerr << Warning( "GraphicKatanaEngine::addToMenu() - Katana detailed router already hooked in." ) << endl;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
_viewer->addMenu ( "placeAndRoute.katana" , "Katana" );
|
|
|
|
_viewer->addMenu ( "placeAndRoute.katana.stepByStep", "&Step by step" );
|
|
|
|
|
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.route"
|
|
|
|
, "Katana - &Route"
|
|
|
|
, "Route the design (global & detailed)"
|
|
|
|
, std::bind(&GraphicKatanaEngine::_route,this)
|
|
|
|
);
|
|
|
|
|
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.stepByStep.========" );
|
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.stepByStep.detailedPreRoute"
|
|
|
|
, "Katana - Detailed Pre-Route"
|
|
|
|
, "Run the <b>Katana</b> detailed router on pre-routed nets"
|
|
|
|
, std::bind(&GraphicKatanaEngine::_runNegociatePreRouted,this)
|
|
|
|
);
|
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.stepByStep.globalRoute"
|
|
|
|
, "Katana - &Global Route"
|
2016-09-10 11:49:48 -05:00
|
|
|
, "Run the <b>Katana</b> global router"
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
, std::bind(&GraphicKatanaEngine::_globalRoute,this)
|
|
|
|
);
|
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.stepByStep.detailedRoute"
|
|
|
|
, "Katana - &Detailed Route"
|
|
|
|
, "Run the <b>Katana</b> detailed router"
|
|
|
|
, std::bind(&GraphicKatanaEngine::_detailRoute,this)
|
|
|
|
);
|
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.stepByStep.finalize"
|
|
|
|
, "Katana - &Finalize Routing"
|
|
|
|
, "Closing Routing"
|
|
|
|
, std::bind(&GraphicKatanaEngine::_finalize,this)
|
|
|
|
);
|
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.stepByStep.dumpMeasures"
|
|
|
|
, "Katana - Dump &Measures"
|
|
|
|
, "Dumping Measurements on the disk"
|
|
|
|
, std::bind(&GraphicKatanaEngine::_dumpMeasures,this)
|
|
|
|
);
|
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.stepByStep.save"
|
|
|
|
, "Katana - &Save Design"
|
|
|
|
, "Save routed design (temporary hack)"
|
|
|
|
, std::bind(&GraphicKatanaEngine::_save,this)
|
|
|
|
);
|
2017-02-24 07:37:11 -06:00
|
|
|
_viewer->addToMenu( "placeAndRoute.katana.stepByStep.runTest"
|
|
|
|
, "Katana - Run &Test"
|
|
|
|
, "Run Test Program (symmetric routing of gmChamla)"
|
|
|
|
, std::bind(&GraphicKatanaEngine::_runTest,this)
|
|
|
|
);
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const Name& GraphicKatanaEngine::getName () const
|
|
|
|
{ return KatanaEngine::staticGetName(); }
|
|
|
|
|
|
|
|
|
|
|
|
Cell* GraphicKatanaEngine::getCell ()
|
|
|
|
{
|
|
|
|
if (_viewer == NULL) {
|
|
|
|
throw Error( "<b>Katana:</b> GraphicKatanaEngine not bound to any Viewer." );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (_viewer->getCell() == NULL) {
|
|
|
|
throw Error( "<b>Katana:</b> No Cell is loaded into the Viewer." );
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return _viewer->getCell();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GraphicKatanaEngine* GraphicKatanaEngine::grab ()
|
|
|
|
{
|
|
|
|
if (not _references) {
|
|
|
|
_singleton = new GraphicKatanaEngine ();
|
|
|
|
}
|
|
|
|
_references++;
|
|
|
|
|
|
|
|
return _singleton;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
size_t GraphicKatanaEngine::release ()
|
|
|
|
{
|
|
|
|
--_references;
|
|
|
|
if (not _references) {
|
|
|
|
delete _singleton;
|
|
|
|
_singleton = NULL;
|
|
|
|
}
|
|
|
|
return _references;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GraphicKatanaEngine::GraphicKatanaEngine ()
|
|
|
|
: GraphicTool()
|
|
|
|
, _viewer (NULL)
|
2016-09-07 04:21:36 -05:00
|
|
|
{
|
|
|
|
addDrawGo( "Anabatic::GCell", initGCell, drawGCell );
|
|
|
|
addDrawGo( "Anabatic::Edge" , initEdge , drawEdge );
|
|
|
|
}
|
Anabatic transient commit 18. Port of Kite (Katana), Yeah, Baby! Yeah!
* Bug: In Hurricane, in StaticObservable::getObserver(), if the slot
pointer is NULL, do not try to access the owner. Returns NULL, so
the caller can be aware of the situation...
* Change: In Hurricane, in BreakpointWidget & ExceptionWidget some
cosmetic changes (fonts and window sizes).
* Bug: In Anabatic, In AutoHorizontal::getConstraints(), take into account
the constraints from the source AutoContact, as it holds the constraints
transmitted by the RoutingPads and sets up by propageConstraintsFromRp().
It is likely to be a bug affecting the original Katabatic as well.
* Change: In Anabatic, in RawGCellsUnder(), check that the segment is not
completly oustside the cell abutment box and truncate the coordinates
to the part that is inside. Use the "shrink" if we reach the east/north
border.
* Change: In Anabatic, in Configuration, no more decorator because we will
use a true derived relationship. Katana *derives* from *Anabatic* and do
not *decorate* it, so the Configuration can do the same. It also implies
that we directly create a Katana engine, not an Anabatic one.
* Change: In Anabatic, in Session, do not allow the opening of the Session
in a standalone fashion (with a static method). Instead it must be opened
using the relevant method of the Anabatic/Katana engine. This ensure we
are opening the right Session type.
* Change: In Anabatic, in AutoSegment_Aligneds() collection the seed segment
is not part of the collection by default, but will be included if the
Flags::WithSelf is set.
* Change: In Configuration, all the flags value are now defined in two steps.
Declared in the header and initialized in the module. This is to prevent
the fact that on some cases, in relation with the Python "extern C" part
modules, we need a true allocated variable. It was causing weird linking
problems.
A side effect is that they can no longer be used as entry is switches,
have to replace them by if/else.
* New: In Anabatic, new GCell::getNeighborAt() utility function.
* Bug: In Anabatic, in GCell::doGrid(), tag all the GCells of the grid with
the grid type... Back annote all the edges capacity (north & east) with
the reserved local capacity.
* New: Complete portage of Kite over Anabatic. The new engine is christened
"Katana" for Kite-Analogic. When it's capabilities and performances
will be on a part with Kite, it is to completly replace it (and take
back the "Kite" name). Preliminary tests seems to show that, contrary
to intuition (because built on a more complex/slower grid), it is even
slightly faster than Kite 8-).
2016-08-15 09:30:13 -05:00
|
|
|
|
|
|
|
|
|
|
|
GraphicKatanaEngine::~GraphicKatanaEngine ()
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
|
|
} // Katana namespace.
|