2020-08-25 19:42:52 +02:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2025-01-01 13:30:11 -08:00
|
|
|
* Copyright The KiCad Developers.
|
2020-08-25 19:42:52 +02:00
|
|
|
*
|
|
|
|
* 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 2
|
|
|
|
* 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, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2020-11-12 20:19:22 +00:00
|
|
|
#include <board.h>
|
2021-06-06 15:03:10 -04:00
|
|
|
#include <pad.h>
|
2020-09-11 22:50:53 +01:00
|
|
|
#include <drc/drc_engine.h>
|
2020-09-11 16:04:11 +01:00
|
|
|
#include <drc/drc_item.h>
|
|
|
|
#include <drc/drc_rule.h>
|
|
|
|
#include <drc/drc_test_provider.h>
|
2020-08-25 19:42:52 +02:00
|
|
|
|
|
|
|
#include <kiway.h>
|
|
|
|
#include <netlist_reader/pcb_netlist.h>
|
|
|
|
|
|
|
|
/*
|
2021-07-11 12:49:36 +01:00
|
|
|
Schematic parity test.
|
2020-08-25 19:42:52 +02:00
|
|
|
|
|
|
|
Errors generated:
|
|
|
|
- DRCE_MISSING_FOOTPRINT
|
|
|
|
- DRCE_DUPLICATE_FOOTPRINT
|
|
|
|
- DRCE_EXTRA_FOOTPRINT
|
2024-08-16 15:33:26 -06:00
|
|
|
- DRCE_SCHEMATIC_PARITY
|
|
|
|
- DRCE_FOOTPRINT_FILTERS
|
2020-08-25 19:42:52 +02:00
|
|
|
|
|
|
|
TODO:
|
|
|
|
- cross-check PCB netlist against SCH netlist
|
|
|
|
- cross-check PCB fields against SCH fields
|
|
|
|
*/
|
|
|
|
|
2021-07-11 12:49:36 +01:00
|
|
|
class DRC_TEST_PROVIDER_SCHEMATIC_PARITY : public DRC_TEST_PROVIDER
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
|
|
|
public:
|
2021-07-11 12:49:36 +01:00
|
|
|
DRC_TEST_PROVIDER_SCHEMATIC_PARITY()
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
|
|
|
m_isRuleDriven = false;
|
|
|
|
}
|
|
|
|
|
2025-06-09 18:38:28 +01:00
|
|
|
virtual ~DRC_TEST_PROVIDER_SCHEMATIC_PARITY() = default;
|
2020-08-25 19:42:52 +02:00
|
|
|
|
|
|
|
virtual bool Run() override;
|
|
|
|
|
2025-06-09 18:38:28 +01:00
|
|
|
virtual const wxString GetName() const override { return wxT( "schematic_parity" ); };
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2020-09-14 18:54:14 +01:00
|
|
|
private:
|
2021-07-11 12:49:36 +01:00
|
|
|
void testNetlist( NETLIST& aNetlist );
|
2020-08-25 19:42:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-07-11 12:49:36 +01:00
|
|
|
void DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist( NETLIST& aNetlist )
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
2020-09-11 22:50:53 +01:00
|
|
|
BOARD* board = m_drcEngine->GetBoard();
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2020-11-13 15:15:52 +00:00
|
|
|
auto compare = []( const FOOTPRINT* x, const FOOTPRINT* y )
|
2020-09-12 20:28:22 +01:00
|
|
|
{
|
|
|
|
return x->GetReference().CmpNoCase( y->GetReference() ) < 0;
|
|
|
|
};
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2020-11-13 15:15:52 +00:00
|
|
|
auto footprints = std::set<FOOTPRINT*, decltype( compare )>( compare );
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2020-09-11 22:50:53 +01:00
|
|
|
// Search for duplicate footprints on the board
|
2020-11-13 15:15:52 +00:00
|
|
|
for( FOOTPRINT* footprint : board->Footprints() )
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
2020-09-12 20:28:22 +01:00
|
|
|
if( m_drcEngine->IsErrorLimitExceeded( DRCE_DUPLICATE_FOOTPRINT ) )
|
|
|
|
break;
|
|
|
|
|
2020-11-12 23:50:33 +00:00
|
|
|
auto ins = footprints.insert( footprint );
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2021-08-25 20:13:42 +01:00
|
|
|
if( !ins.second && !( footprint->GetAttributes() & FP_BOARD_ONLY ) )
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_DUPLICATE_FOOTPRINT );
|
2020-11-12 23:50:33 +00:00
|
|
|
drcItem->SetItems( footprint, *ins.first );
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2021-12-26 13:47:00 +00:00
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
2020-08-25 19:42:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Search for component footprints in the netlist but not on the board.
|
|
|
|
for( unsigned ii = 0; ii < aNetlist.GetCount(); ii++ )
|
|
|
|
{
|
|
|
|
COMPONENT* component = aNetlist.GetComponent( ii );
|
2020-11-24 22:16:41 +00:00
|
|
|
FOOTPRINT* footprint = board->FindFootprintByReference( component->GetReference() );
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2020-11-12 23:50:33 +00:00
|
|
|
if( footprint == nullptr )
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
2024-01-20 18:41:11 +00:00
|
|
|
if( !m_drcEngine->IsErrorLimitExceeded( DRCE_MISSING_FOOTPRINT ) )
|
|
|
|
{
|
|
|
|
wxString msg;
|
|
|
|
msg.Printf( _( "Missing footprint %s (%s)" ),
|
|
|
|
component->GetReference(),
|
|
|
|
component->GetValue() );
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2024-01-20 18:41:11 +00:00
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_MISSING_FOOTPRINT );
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2024-01-20 18:41:11 +00:00
|
|
|
drcItem->SetErrorMessage( msg );
|
|
|
|
reportViolation( drcItem, VECTOR2I(), UNDEFINED_LAYER );
|
|
|
|
}
|
2020-08-25 19:42:52 +02:00
|
|
|
}
|
2020-09-11 22:50:53 +01:00
|
|
|
else
|
|
|
|
{
|
2024-01-24 12:35:51 +00:00
|
|
|
if( component->GetValue() != footprint->GetValue()
|
2024-08-16 15:33:26 -06:00
|
|
|
&& !m_drcEngine->IsErrorLimitExceeded( DRCE_SCHEMATIC_PARITY ) )
|
2024-01-24 12:35:51 +00:00
|
|
|
{
|
|
|
|
wxString msg;
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "Value (%s) doesn't match symbol value (%s)" ),
|
2024-01-24 12:35:51 +00:00
|
|
|
footprint->GetReference(), footprint->GetValue(),
|
|
|
|
component->GetValue() );
|
|
|
|
|
2024-08-16 15:33:26 -06:00
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_SCHEMATIC_PARITY );
|
2024-01-24 12:35:51 +00:00
|
|
|
drcItem->SetErrorMessage( msg );
|
|
|
|
drcItem->SetItems( footprint );
|
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
|
|
|
}
|
|
|
|
|
|
|
|
if( component->GetFPID().GetUniStringLibId() != footprint->GetFPID().GetUniStringLibId()
|
2024-08-16 15:33:26 -06:00
|
|
|
&& !m_drcEngine->IsErrorLimitExceeded( DRCE_SCHEMATIC_PARITY ) )
|
2024-01-24 12:35:51 +00:00
|
|
|
{
|
|
|
|
wxString msg;
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "%s doesn't match footprint given by symbol (%s)" ),
|
2024-08-16 15:33:26 -06:00
|
|
|
footprint->GetFPID().GetUniStringLibId(),
|
2024-01-24 12:35:51 +00:00
|
|
|
component->GetFPID().GetUniStringLibId() );
|
|
|
|
|
2024-08-16 15:33:26 -06:00
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_SCHEMATIC_PARITY );
|
2024-01-24 12:35:51 +00:00
|
|
|
drcItem->SetErrorMessage( msg );
|
|
|
|
drcItem->SetItems( footprint );
|
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
|
|
|
}
|
|
|
|
|
2024-08-16 15:33:26 -06:00
|
|
|
if( !m_drcEngine->IsErrorLimitExceeded( DRCE_FOOTPRINT_FILTERS ) )
|
|
|
|
{
|
2025-03-06 15:12:57 -05:00
|
|
|
wxString libIdLower = footprint->GetFPID().GetUniStringLibId().Lower();
|
|
|
|
wxString fpNameLower = footprint->GetFPID().GetUniStringLibItemName().Lower();
|
2024-08-16 15:33:26 -06:00
|
|
|
size_t filtercount = component->GetFootprintFilters().GetCount();
|
|
|
|
bool found = ( 0 == filtercount ); // if no entries, do not filter
|
|
|
|
|
|
|
|
for( size_t jj = 0; jj < filtercount && !found; jj++ )
|
2025-03-04 07:59:45 -05:00
|
|
|
{
|
2025-03-06 15:12:57 -05:00
|
|
|
wxString filterLower = component->GetFootprintFilters()[jj].Lower();
|
|
|
|
|
|
|
|
if( filterLower.Find( ':' ) == wxNOT_FOUND )
|
|
|
|
found = fpNameLower.Matches( filterLower );
|
2025-03-04 07:59:45 -05:00
|
|
|
else
|
2025-03-06 15:12:57 -05:00
|
|
|
found = libIdLower.Matches( filterLower );
|
2025-03-04 07:59:45 -05:00
|
|
|
}
|
2024-08-16 15:33:26 -06:00
|
|
|
|
|
|
|
if( !found )
|
|
|
|
{
|
|
|
|
wxString msg;
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "%s doesn't match symbol's footprint filters (%s)" ),
|
2025-03-06 15:12:57 -05:00
|
|
|
footprint->GetFPID().GetUniStringLibId(),
|
2024-08-16 15:33:26 -06:00
|
|
|
wxJoin( component->GetFootprintFilters(), ' ' ) );
|
|
|
|
|
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_FOOTPRINT_FILTERS );
|
|
|
|
drcItem->SetErrorMessage( msg );
|
|
|
|
drcItem->SetItems( footprint );
|
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-20 18:41:11 +00:00
|
|
|
if( ( component->GetProperties().count( "dnp" ) > 0 )
|
|
|
|
!= ( ( footprint->GetAttributes() & FP_DNP ) > 0 )
|
2024-08-16 15:33:26 -06:00
|
|
|
&& !m_drcEngine->IsErrorLimitExceeded( DRCE_SCHEMATIC_PARITY ) )
|
2024-01-20 18:41:11 +00:00
|
|
|
{
|
|
|
|
wxString msg;
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "'%s' settings differ" ), _( "Do not populate" ) );
|
2024-01-20 18:41:11 +00:00
|
|
|
|
2024-08-16 15:33:26 -06:00
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_SCHEMATIC_PARITY );
|
2024-01-20 18:41:11 +00:00
|
|
|
drcItem->SetErrorMessage( drcItem->GetErrorMessage() + wxS( ": " ) + msg );
|
|
|
|
drcItem->SetItems( footprint );
|
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
|
|
|
}
|
|
|
|
|
|
|
|
if( ( component->GetProperties().count( "exclude_from_bom" ) > 0 )
|
|
|
|
!= ( (footprint->GetAttributes() & FP_EXCLUDE_FROM_BOM ) > 0 )
|
2024-08-16 15:33:26 -06:00
|
|
|
&& !m_drcEngine->IsErrorLimitExceeded( DRCE_SCHEMATIC_PARITY ) )
|
2024-01-20 18:41:11 +00:00
|
|
|
{
|
|
|
|
wxString msg;
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "'%s' settings differ" ), _( "Exclude from bill of materials" ) );
|
2024-01-20 18:41:11 +00:00
|
|
|
|
2024-08-16 15:33:26 -06:00
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_SCHEMATIC_PARITY );
|
2024-01-20 18:41:11 +00:00
|
|
|
drcItem->SetErrorMessage( drcItem->GetErrorMessage() + wxS( ": " ) + msg );
|
|
|
|
drcItem->SetItems( footprint );
|
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
|
|
|
}
|
|
|
|
|
2020-11-12 23:50:33 +00:00
|
|
|
for( PAD* pad : footprint->Pads() )
|
2020-09-11 22:50:53 +01:00
|
|
|
{
|
2020-09-12 20:28:22 +01:00
|
|
|
if( m_drcEngine->IsErrorLimitExceeded( DRCE_NET_CONFLICT ) )
|
|
|
|
break;
|
|
|
|
|
2021-08-24 00:10:21 +01:00
|
|
|
if( !pad->CanHaveNumber() )
|
|
|
|
continue;
|
|
|
|
|
|
|
|
const COMPONENT_NET& sch_net = component->GetNet( pad->GetNumber() );
|
2020-09-11 22:50:53 +01:00
|
|
|
const wxString& pcb_netname = pad->GetNetname();
|
|
|
|
|
|
|
|
if( !pcb_netname.IsEmpty() && sch_net.GetPinName().IsEmpty() )
|
|
|
|
{
|
2022-06-15 16:42:34 -07:00
|
|
|
wxString msg;
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "No corresponding pin found in schematic" ) );
|
2020-09-11 22:50:53 +01:00
|
|
|
|
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_NET_CONFLICT );
|
2022-06-15 16:42:34 -07:00
|
|
|
drcItem->SetErrorMessage( msg );
|
2020-09-11 22:50:53 +01:00
|
|
|
drcItem->SetItems( pad );
|
2021-12-26 13:47:00 +00:00
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
2020-09-11 22:50:53 +01:00
|
|
|
}
|
|
|
|
else if( pcb_netname.IsEmpty() && !sch_net.GetNetName().IsEmpty() )
|
|
|
|
{
|
2022-06-15 16:42:34 -07:00
|
|
|
wxString msg;
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "Pad missing net given by schematic (%s)" ),
|
2024-01-01 10:45:18 +00:00
|
|
|
sch_net.GetNetName() );
|
2020-09-11 22:50:53 +01:00
|
|
|
|
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_NET_CONFLICT );
|
2022-06-15 16:42:34 -07:00
|
|
|
drcItem->SetErrorMessage( msg );
|
2020-09-11 22:50:53 +01:00
|
|
|
drcItem->SetItems( pad );
|
2021-12-26 13:47:00 +00:00
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
2020-09-11 22:50:53 +01:00
|
|
|
}
|
2024-04-15 17:40:04 -07:00
|
|
|
else if( pcb_netname != sch_net.GetNetName()
|
|
|
|
&& !( pcb_netname.starts_with(
|
|
|
|
wxT( "unconnected-" ) )
|
|
|
|
&& pcb_netname.starts_with( sch_net.GetNetName() ) ) )
|
2020-09-11 22:50:53 +01:00
|
|
|
{
|
2022-06-15 16:42:34 -07:00
|
|
|
wxString msg;
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "Pad net (%s) doesn't match net given by schematic (%s)" ),
|
2024-01-01 10:45:18 +00:00
|
|
|
pcb_netname,
|
|
|
|
sch_net.GetNetName() );
|
2020-09-11 22:50:53 +01:00
|
|
|
|
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_NET_CONFLICT );
|
2022-06-15 16:42:34 -07:00
|
|
|
drcItem->SetErrorMessage( msg );
|
2020-09-11 22:50:53 +01:00
|
|
|
drcItem->SetItems( pad );
|
2021-12-26 13:47:00 +00:00
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
2020-09-11 22:50:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for( unsigned jj = 0; jj < component->GetNetCount(); ++jj )
|
|
|
|
{
|
2020-09-12 20:28:22 +01:00
|
|
|
if( m_drcEngine->IsErrorLimitExceeded( DRCE_NET_CONFLICT ) )
|
|
|
|
break;
|
|
|
|
|
2020-09-11 22:50:53 +01:00
|
|
|
const COMPONENT_NET& sch_net = component->GetNet( jj );
|
|
|
|
|
2021-08-24 00:10:21 +01:00
|
|
|
if( !footprint->FindPadByNumber( sch_net.GetPinName() ) )
|
2020-09-11 22:50:53 +01:00
|
|
|
{
|
2022-06-15 16:42:34 -07:00
|
|
|
wxString msg;
|
2024-01-01 10:45:18 +00:00
|
|
|
|
|
|
|
if( sch_net.GetNetName().StartsWith( wxT( "unconnected-" ) ) )
|
|
|
|
{
|
|
|
|
msg = sch_net.GetPinName();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
msg = wxString::Format( wxT( "%s (%s)" ),
|
|
|
|
sch_net.GetPinName(),
|
|
|
|
sch_net.GetNetName() );
|
|
|
|
}
|
|
|
|
|
2025-09-07 17:50:34 +01:00
|
|
|
msg.Printf( _( "No pad found for pin %s in schematic" ), msg );
|
2020-09-11 22:50:53 +01:00
|
|
|
|
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_NET_CONFLICT );
|
2022-06-15 16:42:34 -07:00
|
|
|
drcItem->SetErrorMessage( msg );
|
2020-11-12 23:50:33 +00:00
|
|
|
drcItem->SetItems( footprint );
|
2021-12-26 13:47:00 +00:00
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
2020-09-11 22:50:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-08-25 19:42:52 +02:00
|
|
|
}
|
|
|
|
|
2020-09-11 22:50:53 +01:00
|
|
|
// Search for component footprints found on board but not in netlist.
|
2020-11-13 15:15:52 +00:00
|
|
|
for( FOOTPRINT* footprint : board->Footprints() )
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
2020-09-12 20:28:22 +01:00
|
|
|
if( m_drcEngine->IsErrorLimitExceeded( DRCE_EXTRA_FOOTPRINT ) )
|
|
|
|
break;
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2020-11-13 02:09:34 +00:00
|
|
|
if( footprint->GetAttributes() & FP_BOARD_ONLY )
|
2020-10-23 17:02:18 +01:00
|
|
|
continue;
|
|
|
|
|
2020-11-12 23:50:33 +00:00
|
|
|
if( !aNetlist.GetComponentByReference( footprint->GetReference() ) )
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
|
|
|
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_EXTRA_FOOTPRINT );
|
|
|
|
|
2020-11-12 23:50:33 +00:00
|
|
|
drcItem->SetItems( footprint );
|
2021-12-26 13:47:00 +00:00
|
|
|
reportViolation( drcItem, footprint->GetPosition(), UNDEFINED_LAYER );
|
2020-08-25 19:42:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-07-11 12:49:36 +01:00
|
|
|
bool DRC_TEST_PROVIDER_SCHEMATIC_PARITY::Run()
|
2020-08-25 19:42:52 +02:00
|
|
|
{
|
2020-09-14 18:54:14 +01:00
|
|
|
if( m_drcEngine->GetTestFootprints() )
|
|
|
|
{
|
2020-09-18 20:57:54 +01:00
|
|
|
if( !reportPhase( _( "Checking PCB to schematic parity..." ) ) )
|
|
|
|
return false;
|
2020-08-25 19:42:52 +02:00
|
|
|
|
2020-09-18 16:23:26 +02:00
|
|
|
auto netlist = m_drcEngine->GetSchematicNetlist();
|
|
|
|
|
|
|
|
if( !netlist )
|
|
|
|
{
|
2025-06-09 18:38:28 +01:00
|
|
|
REPORT_AUX( wxT( "No netlist provided, skipping schematic parity tests." ) );
|
2020-10-01 18:47:35 +02:00
|
|
|
return true;
|
2020-09-18 16:23:26 +02:00
|
|
|
}
|
|
|
|
|
2021-07-11 12:49:36 +01:00
|
|
|
testNetlist( *netlist );
|
2020-08-25 19:42:52 +02:00
|
|
|
}
|
|
|
|
|
2022-03-11 21:16:52 +00:00
|
|
|
return !m_drcEngine->IsCancelled();
|
2020-08-25 19:42:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
namespace detail
|
|
|
|
{
|
2021-07-11 12:49:36 +01:00
|
|
|
static DRC_REGISTER_TEST_PROVIDER<DRC_TEST_PROVIDER_SCHEMATIC_PARITY> dummy;
|
2020-08-25 19:42:52 +02:00
|
|
|
}
|