0hmX/am3352

This code suite comprises TypeScript scripts that analyze, verify, and assemble complex DDR memory interface hardware, focusing on physical routing, via and pad placement, electrical clearance, and physical constraints, often involving precise geometric calculations and consistent provenance tracking.

Version
1.0.5
License
unset
Stars
0

src/UnroutedModule.tsx

import { Fragment } from 'react'
import { Am3352 } from '../imports/AM3352'
import { AM3352_PINS } from './pin-map'
import { AM3352_PLANE_DROPS, AM3352_SIGNAL_CONNECTIONS } from './layout'
import { DecouplingNetwork } from './DecouplingNetwork'

/** Physical parts, fixed capacitor copper and electrical power connections. */
export function UnroutedModule() {
  return <>
    <Am3352/>
    <DecouplingNetwork/>
    {AM3352_PLANE_DROPS.map(d=><Fragment key={d.traceName}>
      <trace name={d.traceName} from={`U1.pin${d.pinNumber}`} to={`net.${d.netName}`}/>
    </Fragment>)}
  </>
}

/** Sibling declarations keep saved fanout nets usable by the parent router. */
export function AM3352SignalNets({signalNetPrefix}:{signalNetPrefix:string}) {
 return <>
    {AM3352_SIGNAL_CONNECTIONS.map(connection => {
      const pin = AM3352_PINS[connection.pinNumber - 1]!
      const netName = `${signalNetPrefix}_SIGNAL_${pin.ballName}`
      return <Fragment key={pin.ballName}>
        <net name={netName}/>
        <trace name={`${signalNetPrefix}_${pin.ballName}_escape`} from={`.${signalNetPrefix} .U1 > .${pin.ballName}`} to={`net.${netName}`}/>
      </Fragment>
    })}
 </>
}