drc: error codes for diff-pair related stuff
This commit is contained in:
parent
3654e7b795
commit
cb2dfcde83
|
@ -186,6 +186,14 @@ DRC_ITEM DRC_ITEM::tooManyVias( DRCE_TOO_MANY_VIAS,
|
||||||
_( "Too many vias on a connection" ),
|
_( "Too many vias on a connection" ),
|
||||||
wxT( "too_many_vias" ) );
|
wxT( "too_many_vias" ) );
|
||||||
|
|
||||||
|
DRC_ITEM DRC_ITEM::diffPairGapOutOfRange( DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE,
|
||||||
|
_( "Differential pair gap out of range" ),
|
||||||
|
wxT( "diff_pair_gap_out_of_range" ) );
|
||||||
|
|
||||||
|
DRC_ITEM DRC_ITEM::diffPairUncoupledLengthTooLong( DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG,
|
||||||
|
_( "Differential uncoupled length too long" ),
|
||||||
|
wxT( "diff_pair_uncoupled_length_too_long" ) );
|
||||||
|
|
||||||
std::vector<std::reference_wrapper<RC_ITEM>> DRC_ITEM::allItemTypes( {
|
std::vector<std::reference_wrapper<RC_ITEM>> DRC_ITEM::allItemTypes( {
|
||||||
DRC_ITEM::unconnectedItems,
|
DRC_ITEM::unconnectedItems,
|
||||||
DRC_ITEM::shortingItems,
|
DRC_ITEM::shortingItems,
|
||||||
|
@ -222,7 +230,9 @@ std::vector<std::reference_wrapper<RC_ITEM>> DRC_ITEM::allItemTypes( {
|
||||||
DRC_ITEM::silkOverPad,
|
DRC_ITEM::silkOverPad,
|
||||||
DRC_ITEM::lengthOutOfRange,
|
DRC_ITEM::lengthOutOfRange,
|
||||||
DRC_ITEM::skewOutOfRange,
|
DRC_ITEM::skewOutOfRange,
|
||||||
DRC_ITEM::tooManyVias
|
DRC_ITEM::tooManyVias,
|
||||||
|
DRC_ITEM::diffPairGapOutOfRange,
|
||||||
|
DRC_ITEM::diffPairUncoupledLengthTooLong
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
||||||
|
@ -267,7 +277,8 @@ std::shared_ptr<DRC_ITEM> DRC_ITEM::Create( int aErrorCode )
|
||||||
case DRCE_LENGTH_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( lengthOutOfRange );
|
case DRCE_LENGTH_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( lengthOutOfRange );
|
||||||
case DRCE_SKEW_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( skewOutOfRange );
|
case DRCE_SKEW_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( skewOutOfRange );
|
||||||
case DRCE_TOO_MANY_VIAS: return std::make_shared<DRC_ITEM>( tooManyVias );
|
case DRCE_TOO_MANY_VIAS: return std::make_shared<DRC_ITEM>( tooManyVias );
|
||||||
|
case DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE: return std::make_shared<DRC_ITEM>( diffPairGapOutOfRange );
|
||||||
|
case DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG: return std::make_shared<DRC_ITEM>( diffPairUncoupledLengthTooLong );
|
||||||
default:
|
default:
|
||||||
wxFAIL_MSG( "Unknown DRC error code" );
|
wxFAIL_MSG( "Unknown DRC error code" );
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
|
@ -74,6 +74,8 @@ enum PCB_DRC_CODE {
|
||||||
DRCE_SKEW_OUT_OF_RANGE,
|
DRCE_SKEW_OUT_OF_RANGE,
|
||||||
DRCE_TOO_MANY_VIAS,
|
DRCE_TOO_MANY_VIAS,
|
||||||
|
|
||||||
|
DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE,
|
||||||
|
DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG,
|
||||||
|
|
||||||
DRCE_LAST = DRCE_TOO_MANY_VIAS
|
DRCE_LAST = DRCE_TOO_MANY_VIAS
|
||||||
};
|
};
|
||||||
|
@ -155,6 +157,8 @@ private:
|
||||||
static DRC_ITEM lengthOutOfRange;
|
static DRC_ITEM lengthOutOfRange;
|
||||||
static DRC_ITEM skewOutOfRange;
|
static DRC_ITEM skewOutOfRange;
|
||||||
static DRC_ITEM tooManyVias;
|
static DRC_ITEM tooManyVias;
|
||||||
|
static DRC_ITEM diffPairGapOutOfRange;
|
||||||
|
static DRC_ITEM diffPairUncoupledLengthTooLong;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DRC_RULE* m_violatingRule = nullptr;
|
DRC_RULE* m_violatingRule = nullptr;
|
||||||
|
|
Loading…
Reference in New Issue