router: Refactor m_padToDieLength out of meander placer base.
This commit is contained in:
parent
3b25fdc212
commit
e56064696b
|
@ -120,8 +120,6 @@ bool DP_MEANDER_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
|
||||||
if( m_endPad_n )
|
if( m_endPad_n )
|
||||||
m_padToDieN += m_endPad_n->GetPadToDie();
|
m_padToDieN += m_endPad_n->GetPadToDie();
|
||||||
|
|
||||||
m_padToDieLength = std::max( m_padToDieP, m_padToDieN );
|
|
||||||
|
|
||||||
m_world->Remove( m_originPair.PLine() );
|
m_world->Remove( m_originPair.PLine() );
|
||||||
m_world->Remove( m_originPair.NLine() );
|
m_world->Remove( m_originPair.NLine() );
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ MEANDER_PLACER::MEANDER_PLACER( ROUTER* aRouter ) :
|
||||||
m_initialSegment = nullptr;
|
m_initialSegment = nullptr;
|
||||||
m_lastLength = 0;
|
m_lastLength = 0;
|
||||||
m_lastStatus = TOO_SHORT;
|
m_lastStatus = TOO_SHORT;
|
||||||
|
m_padToDieLength = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,9 @@ protected:
|
||||||
MEANDERED_LINE m_result;
|
MEANDERED_LINE m_result;
|
||||||
LINKED_ITEM* m_initialSegment;
|
LINKED_ITEM* m_initialSegment;
|
||||||
|
|
||||||
|
///< Total length added by pad to die size.
|
||||||
|
int m_padToDieLength;
|
||||||
|
|
||||||
long long int m_lastLength;
|
long long int m_lastLength;
|
||||||
TUNING_STATUS m_lastStatus;
|
TUNING_STATUS m_lastStatus;
|
||||||
};
|
};
|
||||||
|
|
|
@ -32,7 +32,6 @@ MEANDER_PLACER_BASE::MEANDER_PLACER_BASE( ROUTER* aRouter ) :
|
||||||
{
|
{
|
||||||
m_world = nullptr;
|
m_world = nullptr;
|
||||||
m_currentWidth = 0;
|
m_currentWidth = 0;
|
||||||
m_padToDieLength = 0;
|
|
||||||
m_startPad_n = nullptr;
|
m_startPad_n = nullptr;
|
||||||
m_startPad_p = nullptr;
|
m_startPad_p = nullptr;
|
||||||
m_endPad_n = nullptr;
|
m_endPad_n = nullptr;
|
||||||
|
|
|
@ -154,9 +154,6 @@ protected:
|
||||||
///< Pointer to world to search colliding items.
|
///< Pointer to world to search colliding items.
|
||||||
NODE* m_world;
|
NODE* m_world;
|
||||||
|
|
||||||
///< Total length added by pad to die size.
|
|
||||||
int m_padToDieLength;
|
|
||||||
|
|
||||||
///< Width of the meandered trace(s).
|
///< Width of the meandered trace(s).
|
||||||
int m_currentWidth;
|
int m_currentWidth;
|
||||||
|
|
||||||
|
|
|
@ -107,13 +107,11 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
|
||||||
|
|
||||||
if ( m_originPair.NetP() == m_originLine.Net() )
|
if ( m_originPair.NetP() == m_originLine.Net() )
|
||||||
{
|
{
|
||||||
m_padToDieLength = m_padToDieP;
|
|
||||||
m_coupledLength = m_padToDieN + lineLength( m_tunedPathN, m_startPad_n, m_endPad_n );
|
m_coupledLength = m_padToDieN + lineLength( m_tunedPathN, m_startPad_n, m_endPad_n );
|
||||||
m_tunedPath = m_tunedPathP;
|
m_tunedPath = m_tunedPathP;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_padToDieLength = m_padToDieN;
|
|
||||||
m_coupledLength = m_padToDieP + lineLength( m_tunedPathP, m_startPad_p, m_endPad_p );
|
m_coupledLength = m_padToDieP + lineLength( m_tunedPathP, m_startPad_p, m_endPad_p );
|
||||||
m_tunedPath = m_tunedPathN;
|
m_tunedPath = m_tunedPathN;
|
||||||
}
|
}
|
||||||
|
@ -125,9 +123,9 @@ bool MEANDER_SKEW_PLACER::Start( const VECTOR2I& aP, ITEM* aStartItem )
|
||||||
long long int MEANDER_SKEW_PLACER::origPathLength() const
|
long long int MEANDER_SKEW_PLACER::origPathLength() const
|
||||||
{
|
{
|
||||||
if ( m_originPair.NetP() == m_originLine.Net() )
|
if ( m_originPair.NetP() == m_originLine.Net() )
|
||||||
return m_padToDieLength + lineLength( m_tunedPath, m_startPad_p, m_endPad_p );
|
return m_padToDieP + lineLength( m_tunedPath, m_startPad_p, m_endPad_p );
|
||||||
|
|
||||||
return m_padToDieLength + lineLength( m_tunedPath, m_startPad_n, m_endPad_n );
|
return m_padToDieN + lineLength( m_tunedPath, m_startPad_n, m_endPad_n );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue