Skip to content

Add BGA rule for BGA Pad to Trace Clearance#20

Open
SolvedSphinx126 wants to merge 1 commit into
Cimos:mainfrom
SolvedSphinx126:add-BGA-rules
Open

Add BGA rule for BGA Pad to Trace Clearance#20
SolvedSphinx126 wants to merge 1 commit into
Cimos:mainfrom
SolvedSphinx126:add-BGA-rules

Conversation

@SolvedSphinx126

Copy link
Copy Markdown

@Cimos

Cimos commented Jul 28, 2025

Copy link
Copy Markdown
Owner

Hi @SolvedSphinx126,

Thanks for adding. This rule will match for a lot more than the intended BGA pads.

@Cimos Cimos mentioned this pull request May 10, 2026
@Cimos

Cimos commented May 10, 2026

Copy link
Copy Markdown
Owner

The 0.1mm clearance is fine for BGA fan-outs, but A.Pad_Type == 'SMD' matches every SMD pad on the board. As written this relaxes pad-to-track clearance to 0.1mm everywhere, not just under the BGA.

Cleanest fix is to scope by net class:

(rule "JLCPCB: BGA to Trace"
    (condition "A.NetClass == 'BGA' && B.Type == 'Track' && A.Net != B.Net")
    (constraint clearance (min 0.1mm))
)

Users then assign the relevant nets to a BGA net class in Board Setup. Only those nets get the relaxed clearance, nothing else changes.

Also worth pinning the 0.1mm value to a specific line in JLCPCB's capabilities/BGA page in a comment above the rule, so it's checkable against future updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants