I am trying to setup a custom DRC to check the length matching of my diff pairs and to flag the nets whose lengths are not matched. I just want to check that I have everything correct. I run the DRC and nothing is flagged. I am not sure if it is because none of my lengths are out of spec (hard to believe) or if my DRC rule is not correct. Could I get a second pair of eyes?
If you’re literally using A.inDiffPair('x'), that won’t work as the 'x' is there to replace with a net name matching calues. There’s also an extra opening brace on the first max condition.
For your rule, I’d simplify it and use the within_diff_pairs option:
I’d set min to 0mm and max to 0.127 - the skew is always calculated with respect of the longest net in the matching group, so a negative min value will never apply.
Confusingly, the DRC will report the skew as negative, but the test internally is against the absolute value of the skew (hence negative skews are not really supported). I’m not sure that’s particularly clear; will have a think about the documentation for skew tuning / checks.