Source code for jitxlib.jlcpcb.JLC04161H_7628
from jitx.container import inline
from jitx.stackup import Stackup
from jitxlib.physics import phase_velocity
from .materials import (
Copper1oz,
CopperHalfOz,
Df_7628,
Er_7628,
FR4_7628,
FR4_Core1065,
SoldermaskMaterial,
)
from .rules import JLCPCBRules
from .substrate import (
SOLDERMASK,
JLCPCBSubstrate,
Pair,
Trace,
differential,
single_ended,
symmetric,
)
from .vias import StandardVias
med_velocity = phase_velocity((Er_7628 + 1) / 2)
[docs]
class JLC04161H_7628(JLCPCBSubstrate, StandardVias):
"""JLC04161H Stackup with 7628 Prepreg"""
@inline
class stackup(Stackup):
"""4 layer stackup with 7628 prepreg"""
layers = symmetric(
SoldermaskMaterial(thickness=SOLDERMASK),
Copper1oz(),
FR4_7628(thickness=0.2104),
CopperHalfOz(),
centre=FR4_Core1065(),
)
constraints = JLCPCBRules()
RS_50 = single_ended(
50,
{0: Trace(trace_width=0.3244, clearance=0.3, velocity=med_velocity)},
insertion_loss=Df_7628,
)
DRS_90 = differential(
90,
{
0: Pair(
trace_width=0.2332,
pair_spacing=0.15,
clearance=0.3,
uncoupled_clearance=0.15,
velocity=med_velocity,
)
},
insertion_loss=Df_7628,
)
DRS_100 = differential(
100,
{
0: Pair(
trace_width=0.1722,
pair_spacing=0.15,
clearance=0.3,
uncoupled_clearance=0.15,
velocity=med_velocity,
)
},
insertion_loss=Df_7628,
)