DIFF_PAIR_GAP_CONSTRAINT does not need to be restricted to two items
We just need one item to see what netclass we're in; the constraint itself is specific to diff pairs so the condition doesn't need to be. Fixes https://gitlab.com/kicad/code/kicad/-/issues/8205
This commit is contained in:
parent
1d7e5a0443
commit
4920692bcd
|
@ -176,7 +176,7 @@ void DRC_ENGINE::loadImplicitRules()
|
||||||
rule->AddConstraint( courtyardClearanceConstraint );
|
rule->AddConstraint( courtyardClearanceConstraint );
|
||||||
|
|
||||||
DRC_CONSTRAINT diffPairGapConstraint( DIFF_PAIR_GAP_CONSTRAINT );
|
DRC_CONSTRAINT diffPairGapConstraint( DIFF_PAIR_GAP_CONSTRAINT );
|
||||||
diffPairGapConstraint.Value().SetMin( bds.GetDefault()->GetClearance() );
|
diffPairGapConstraint.Value().SetMin( bds.m_MinClearance );
|
||||||
rule->AddConstraint( diffPairGapConstraint );
|
rule->AddConstraint( diffPairGapConstraint );
|
||||||
|
|
||||||
rule = createImplicitRule( _( "board setup constraints" ) );
|
rule = createImplicitRule( _( "board setup constraints" ) );
|
||||||
|
@ -284,8 +284,7 @@ void DRC_ENGINE::loadImplicitRules()
|
||||||
ncName );
|
ncName );
|
||||||
netclassRule->m_Implicit = true;
|
netclassRule->m_Implicit = true;
|
||||||
|
|
||||||
expr = wxString::Format( "A.NetClass == '%s' && AB.isCoupledDiffPair()",
|
expr = wxString::Format( "A.NetClass == '%s'", ncName );
|
||||||
ncName );
|
|
||||||
netclassRule->m_Condition = new DRC_RULE_CONDITION( expr );
|
netclassRule->m_Condition = new DRC_RULE_CONDITION( expr );
|
||||||
netclassItemSpecificRules.push_back( netclassRule );
|
netclassItemSpecificRules.push_back( netclassRule );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue