ShiboSoftwareDev/am69-pi5

A 85×56 mm 10-layer AM69A single-board computer carrier integrates 8 GiB LPDDR4, 32 GB eMMC, Pi-style expansion and multimedia/USB/Ethernet connectors, multi-rail PMIC power, STM32 boot/power control, USB-C PD, SD/fan protection, and HDI-controlled high-speed routing.

Version
0.0.8-engineering-draft-20261107-dqs19
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone ShiboSoftwareDev/am69-pi5  # download the package files into ./am69-pi5
tsci add ShiboSoftwareDev/am69-pi5    # add it to your project as @tsci/ShiboSoftwareDev.am69-pi5

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

components/shared/core/NativeHdiGround.tsx

import plans from './NativeHdi.data.json'

/** Fixed ground/power via placements and native ground pours. This does not route signal paths.
 * Laser vias require copper filling/capping. A qualified1+8+1 stackup and
 * final copper-connectivity/clearance/impedance checks remain release gates.
 */
type GroundEscape={x:number;y:number;port_x:number;port_y:number;layer:string;owner:string;pin:string;microvia_index:number;hole_diameter?:number;outer_diameter?:number}
export function NativeHdiGround({board,connectGroundPorts=false,unbrokenReferences=true,references}:{board:'pi5'|'cm5';connectGroundPorts?:boolean;unbrokenReferences?:boolean;references?:readonly string[]}) {
 const plan=plans[board]
 const wanted=(ref:string)=>!references||references.includes(ref)
 const escapes=connectGroundPorts?((plan as typeof plan&{ground_port_escapes?:GroundEscape[]}).ground_port_escapes??[]).filter(p=>wanted(p.owner)):[]
 const traceVias=new Set(escapes.map(p=>p.microvia_index))
 return <>
  {plan.ground_microvias.map((p,i)=>wanted(p.owner)&&!traceVias.has(i)&&<via key={`GM${i}`} name={`GROUND_MICRO_${i}`}
    pcbX={p.x} pcbY={p.y} fromLayer={p.layer==='top'?'top':'inner8'} toLayer={p.layer==='top'?'inner1':'bottom'}
    holeDiameter={(p as GroundEscape).hole_diameter??.11} outerDiameter={(p as GroundEscape).outer_diameter??.25} tented connectsTo="net.GND" />)}
  {connectGroundPorts&&<group name="HDI_GROUND_PORTS" pcbX={0} pcbY={0} pcbLayout={{layoutMode:'none'}}>
   {([false,true]as const).map(small=><group key={String(small)} name={`HDI_GROUND_${small?'SMALL':'STANDARD'}`} pcbX={0} pcbY={0}
    pcbStyle={{viaHoleDiameter:small?.1:.11,viaPadDiameter:small?.24:.25}}>
   {escapes.filter(p=>(p.hole_diameter===.1)===small).map(p=>{
    const pose=plan.escape_poses[p.owner as keyof typeof plan.escape_poses]
    const a=(pose.pcbRotation??0)*Math.PI/180,c=Math.cos(a),s=Math.sin(a)
    const local=(x:number,y:number)=>({x:(x-pose.pcbX)*c+(y-pose.pcbY)*s,y:-(x-pose.pcbX)*s+(y-pose.pcbY)*c})
    const start=local(p.port_x,p.port_y),end=local(p.x,p.y)
    const fromLayer=p.layer==='top'?'top':'bottom',toLayer=p.layer==='top'?'inner1':'inner8'
    return <trace key={p.microvia_index} name={`HDI_GROUND_${p.owner}_${p.pin}`}
     from={`.${p.owner} > .${p.pin}`} to="net.GND" thickness={.1}
     pcbPath={[start,end,{...end,via:true,fromLayer,toLayer},end]} />
   })}
   </group>)}
  </group>}
  {plan.core_ground_stitches.map((p,i)=><via key={`GC${i}`} name={`GROUND_CORE_${i}`}
    pcbX={p.x} pcbY={p.y} fromLayer="inner1" toLayer="inner8"
    holeDiameter={.2} outerDiameter={.45} tented connectsTo="net.GND" />)}
  {(['inner1','inner2','inner7','inner8']as const).map(layer=><copperpour key={layer}
    connectsTo="net.GND" layer={layer} unbroken={unbrokenReferences&&(layer==='inner2'||layer==='inner7')} clearance={.1} boardEdgeMargin={.305} cutoutMargin={.3} />)}
 </>
}