Horizon
Loading...
Searching...
No Matches
pns_meander_skew_placer.h
1/*
2 * KiRouter - a push-and-(sometimes-)shove PCB router
3 *
4 * Copyright (C) 2013-2015 CERN
5 * Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
6 * Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef __PNS_MEANDER_SKEW_PLACER_H
23#define __PNS_MEANDER_SKEW_PLACER_H
24
25#include "pns_meander_placer.h"
26#include "pns_diff_pair.h"
27
28namespace PNS {
29
30class ROUTER;
31class SHOVE;
32class OPTIMIZER;
33
40{
41public:
42 MEANDER_SKEW_PLACER( ROUTER* aRouter );
44
46 bool Start( const VECTOR2I& aP, ITEM* aStartItem ) override;
47
49 bool Move( const VECTOR2I& aP, ITEM* aEndItem ) override;
50
52 const wxString TuningInfo( EDA_UNITS aUnits ) const override;
53
54private:
55 long long int currentSkew() const;
56
57 long long int origPathLength() const override;
58
59 DIFF_PAIR m_originPair;
60 ITEM_SET m_tunedPath, m_tunedPathP, m_tunedPathN;
61
62 long long int m_coupledLength;
63 int m_padToDieP;
64 int m_padToDieN;
65};
66
67}
68
69#endif // __PNS_MEANDER_SKEW_PLACER_H
Basic class for a differential pair.
Definition pns_diff_pair.h:235
Definition pns_itemset.h:37
Base class for PNS router board items.
Definition pns_item.h:57
Single track length matching/meandering tool.
Definition pns_meander_placer.h:46
MEANDER_SKEW_PLACER.
Definition pns_meander_skew_placer.h:40
const wxString TuningInfo(EDA_UNITS aUnits) const override
Return a string describing the status and length of the tuned traces.
Definition pns_meander_skew_placer.cpp:158
bool Move(const VECTOR2I &aP, ITEM *aEndItem) override
Function Move()
Definition pns_meander_skew_placer.cpp:140
bool Start(const VECTOR2I &aP, ITEM *aStartItem) override
Function Start()
Definition pns_meander_skew_placer.cpp:50
Definition pns_router.h:116
Definition wx_compat.h:13