Source code for jitxlib.jlcpcb.JLC04161H_1080
from jitx.container import inline
from jitx.stackup import Stackup
from jitxlib.physics import phase_velocity
from .materials import (
Copper1oz,
CopperHalfOz,
Df_1080,
Er_1080,
FR4_1080,
FR4_Core1265,
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_1080 + 1) / 2)
[docs]
class JLC04161H_1080(JLCPCBSubstrate, StandardVias):
"""JLC04161H Stackup with 1080 Prepreg"""
@inline
class stackup(Stackup):
"""4 layer stackup with 1080 prepreg"""
layers = symmetric(
SoldermaskMaterial(thickness=SOLDERMASK),
Copper1oz(),
FR4_1080(thickness=0.0764),
CopperHalfOz(),
centre=FR4_Core1265(),
)
constraints = JLCPCBRules()
RS_50 = single_ended(
50,
{0: Trace(trace_width=0.1176, clearance=0.2, velocity=med_velocity)},
insertion_loss=Df_1080,
)
DRS_90 = differential(
90,
{
0: Pair(
trace_width=0.09,
pair_spacing=0.09,
clearance=0.2,
uncoupled_clearance=0.2,
velocity=med_velocity,
)
},
insertion_loss=Df_1080,
)
DRS_100 = differential(
100,
{
0: Pair(
trace_width=0.09,
pair_spacing=0.137,
clearance=0.2,
uncoupled_clearance=0.2,
velocity=med_velocity,
)
},
insertion_loss=Df_1080,
)