2015-02-18 00:29:54 +00:00
|
|
|
/*
|
|
|
|
* KiRouter - a push-and-(sometimes-)shove PCB router
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013-2015 CERN
|
2016-08-29 14:38:11 +00:00
|
|
|
* Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
|
2015-02-18 00:29:54 +00:00
|
|
|
* Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PNS_MEANDER_SKEW_PLACER_H
|
|
|
|
#define __PNS_MEANDER_SKEW_PLACER_H
|
|
|
|
|
|
|
|
#include "pns_meander_placer.h"
|
|
|
|
#include "pns_diff_pair.h"
|
|
|
|
|
2016-08-29 14:38:11 +00:00
|
|
|
namespace PNS {
|
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
class ROUTER;
|
|
|
|
class SHOVE;
|
|
|
|
class OPTIMIZER;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
|
|
|
/**
|
2020-01-10 14:31:00 +00:00
|
|
|
* MEANDER_SKEW_PLACER
|
2015-02-18 00:29:54 +00:00
|
|
|
*
|
|
|
|
* Differential pair skew adjustment algorithm.
|
|
|
|
*/
|
2016-08-29 17:31:13 +00:00
|
|
|
class MEANDER_SKEW_PLACER : public MEANDER_PLACER
|
2015-02-18 00:29:54 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-08-29 17:31:13 +00:00
|
|
|
MEANDER_SKEW_PLACER( ROUTER* aRouter );
|
|
|
|
~MEANDER_SKEW_PLACER();
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
/// @copydoc PLACEMENT_ALGO::Start()
|
2016-09-24 18:53:15 +00:00
|
|
|
bool Start( const VECTOR2I& aP, ITEM* aStartItem ) override;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
/// @copydoc PLACEMENT_ALGO::Move()
|
2016-09-24 18:53:15 +00:00
|
|
|
bool Move( const VECTOR2I& aP, ITEM* aEndItem ) override;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
/// @copydoc MEANDER_PLACER_BASE::TuningInfo()
|
2019-12-20 14:11:39 +00:00
|
|
|
const wxString TuningInfo( EDA_UNITS aUnits ) const override;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2023-10-08 19:40:20 +00:00
|
|
|
long long int CurrentSkew() const;
|
2015-02-18 16:53:46 +00:00
|
|
|
|
2023-10-08 19:40:20 +00:00
|
|
|
private:
|
2019-09-03 23:38:58 +00:00
|
|
|
long long int origPathLength() const override;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2016-08-29 17:31:13 +00:00
|
|
|
DIFF_PAIR m_originPair;
|
|
|
|
ITEM_SET m_tunedPath, m_tunedPathP, m_tunedPathN;
|
2015-02-18 00:29:54 +00:00
|
|
|
|
2019-09-03 23:38:58 +00:00
|
|
|
long long int m_coupledLength;
|
2019-10-31 13:00:01 +00:00
|
|
|
int m_padToDieP;
|
|
|
|
int m_padToDieN;
|
2015-02-18 00:29:54 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 14:38:11 +00:00
|
|
|
}
|
|
|
|
|
2015-02-18 00:29:54 +00:00
|
|
|
#endif // __PNS_MEANDER_SKEW_PLACER_H
|