ShiboSoftwareDev/am69-cm5
A 55×40 mm 10-layer CM5 carrier board integrating an AM69A98 SoC, 8‑GiB LPDDR4, 32‑GB eMMC, CM5 connectors, clocking, extensive decoupling/EMI filtering, and HDI DDR/ground escape routing.
- Version
- 0.0.7-engineering-draft-20261107-manual-ddr0
- 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-cm5 # download the package files into ./am69-cm5
tsci add ShiboSoftwareDev/am69-cm5 # add it to your project as @tsci/ShiboSoftwareDev.am69-cm5In 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/NativeDdrRoutingRules.tsx
import facts from './CoreConnections.data.json'
import {Fragment} from 'react'
import {sourceNetToTscircuitNet} from './ReferenceDecoupling'
const cpu=Object.entries(facts.components.U28.pins)
const bySignal=Object.fromEntries(cpu.map(([ball,pin])=>[pin.signal,ball]))
const signals=cpu.filter(([,pin])=>/^DDR0_(DQ\d+|DM\d|DQS\d[PN]|CA\d|CK[PN]|CKE\d|CSN\d_\d)$/.test(pin.signal))
const anchor=(signal:string)=>`DDR_RULE_${bySignal[signal]}`
const signalLayers=['inner1','inner3','inner6','inner8']as const
/** Native routing intent from TI SPRACN9F. The geometric matching targets below
* are provisional PCB budgets. They do not replace package-delay compensation,
* delay-domain branch matching, an impedance-qualified stackup or3D/IBIS SI.
* CK and CA use real multidrop topology; no fake point-to-point pair is declared.
*/
export function NativeDdrRoutingRules() {
return <>
{signals.map(([ball,pin])=><trace key={ball} name={`DDR_RULE_${ball}`}
from={`.U28 > .${ball}`} to={`net.${sourceNetToTscircuitNet(pin.referenceNet)}`} />)}
{Array.from({length:4},(_,byte)=>{
const data=Array.from({length:8},(_,bit)=>anchor(`DDR0_DQ${byte*8+bit}`))
return <Fragment key={byte}>
<bus name={`DDR0_BYTE_${byte}`} connections={[...data,anchor(`DDR0_DM${byte}`),anchor(`DDR0_DQS${byte}P`),anchor(`DDR0_DQS${byte}N`)]}
pcbAllowedLayers={[...signalLayers]} pcbTraceSpacing="3w" pcbSpacingToOtherSignals="4w"
maxLengthSkew={.75} targetImpedance={40} targetImpedanceMin={36} targetImpedanceMax={44} />
<differentialpair name={`DDR0_DQS_${byte}`} positiveConnection={anchor(`DDR0_DQS${byte}P`)} negativeConnection={anchor(`DDR0_DQS${byte}N`)}
maxLengthSkew={.1} pcbSpacingToOtherSignals="4w"
targetDifferentialImpedance={80} targetDifferentialImpedanceMin={72} targetDifferentialImpedanceMax={88} />
</Fragment>
})}
<bus name="DDR0_CA_CONTROL" connections={signals.filter(([,pin])=>/^DDR0_(CA\d|CKE\d|CSN\d_\d)$/.test(pin.signal)).map(([ball])=>`DDR_RULE_${ball}`)}
pcbAllowedLayers={[...signalLayers]} pcbTraceSpacing="3w" pcbSpacingToOtherSignals="4w" />
<bus name="DDR0_CK_MULTIDROP" connections={[anchor('DDR0_CKP'),anchor('DDR0_CKN')]}
pcbAllowedLayers={[...signalLayers]} pcbSpacingToOtherSignals="4w" />
</>
}