Source code for jitxlib.jlcpcb.JLC02076_RO4350B

from jitx.container import inline
from jitx.stackup import Stackup

from jitxlib.physics import phase_velocity

from .materials import (
    Copper1oz,
    Df_RO4350B,
    RO4350B_Core762,
    SoldermaskMaterial,
)
from .rules import JLCPCBRogersRules
from .substrate import (
    SOLDERMASK,
    JLCPCBSubstrate,
    Trace,
    single_ended,
    symmetric,
)
from .vias import UnfilledVias

# Effective permittivity of the 50 ohm line below, from the same field solve
# as its width and gap.
eeff_50 = 2.547


[docs] class JLC02076_RO4350B(JLCPCBSubstrate, UnfilledVias): """2-layer Rogers RO4350B, 0.762 mm laminate, 1 oz copper. Ordered as base material Rogers, laminate RO4350B, PCB thickness 0.76 mm. JLCPCB gives the finished board as 0.9 mm. Surface finish is ENIG or OSP; HASL is not offered on Rogers. """ @inline class stackup(Stackup): """2 layer stackup on a 0.762 mm RO4350B laminate""" layers = symmetric( SoldermaskMaterial(thickness=SOLDERMASK), Copper1oz(), centre=RO4350B_Core762(), ) constraints = JLCPCBRogersRules() # Grounded coplanar waveguide: the trace with ground pour on both sides # at `clearance`, over the ground plane on the other face. Microstrip on # this laminate would be wider than a 0402 pad. # # Width and gap: the 50 ohm line should land on a 0402 pad (about 0.5 mm # wide) without a large step, so the width is as close to 0.55 mm as a # gap of 0.12 mm or more allows (0.02 mm above the 0.10 mm minimum space, # in 0.01 mm steps), and never under 0.50 mm. On this laminate a # 0.12 mm gap gives 0.52 mm and 0.13 mm gives 0.57 mm, the closer of the # two. # # Solved by `gcpw` in tests/test_stackups.py, which TestGroundedCoplanar # runs: a 2D quasi-static finite-difference solve of the cross-section as # built, with Dk 3.66, 35 um copper and JLCPCB's soldermask coating # (0.6 mil over the trace, 1.2 mil in the gap, Dk 3.8). It gives 50.0 ohm. # JLCPCB's etch moves the edges: a gap 0.02 mm narrower or wider moves # the line by -2.79 or +2.45 ohm, a width 0.02 mm narrower or wider by # +0.53 or -0.50 ohm. The soldermask is worth about 3.6 ohm: opened over # the line, the solve gives 53.6 ohm. # # The pour must sit at exactly the 0.13 mm gap. `clearance` is a minimum, # so a board-level clearance rule above it widens the gap: at 0.20 mm the # line is 57.5 ohm. # The solve also holds that pour at the bottom plane's potential, so it # must be stitched to the bottom plane with vias along the line. RS_50 = single_ended( 50, {0: Trace(trace_width=0.57, clearance=0.13, velocity=phase_velocity(eeff_50))}, insertion_loss=Df_RO4350B, )