0hmX/TMDS62LEVM
This code defines the physical layout and component placement for a TI AM62L evaluation module, including mechanical and population components, without routing.
- Version
- 1.0.2
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone 0hmX/TMDS62LEVM # download the package files into ./TMDS62LEVM
tsci add 0hmX/TMDS62LEVM # add it to your project as @tsci/0hmX.TMDS62LEVMIn 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.
src/generated/BoardPopulation.tsx
import { AM62L32 } from "@tsci/tscircuit.ti"
import { placements } from "./placements"
import { PlacedPackage } from "./PlacedPackage"
import type { PlacementRecord } from "./types"
const SOC_PINS = Array.from({ length: 373 }, (_, index) =>
`pin${index + 1}`,
) as never[]
interface AreaBounds {
minX: number
maxX: number
minY: number
maxY: number
}
const isInside = (placement: PlacementRecord, bounds: AreaBounds) =>
placement.pcbX >= bounds.minX &&
placement.pcbX < bounds.maxX &&
placement.pcbY >= bounds.minY &&
placement.pcbY < bounds.maxY
const BoardArea = ({ bounds }: { bounds: AreaBounds }) => (
<>
{placements
.filter(
(placement) =>
placement.name !== "U28" &&
isInside(placement, bounds),
)
.map((placement) => (
<PlacedPackage key={placement.name} placement={placement} />
))}
</>
)
export const NorthWestPopulation = () => (
<BoardArea bounds={{ minX: -68, maxX: 0, minY: 0, maxY: 72 }} />
)
export const NorthEastPopulation = () => (
<BoardArea bounds={{ minX: 0, maxX: 69, minY: 0, maxY: 72 }} />
)
export const SouthWestPopulation = () => (
<BoardArea bounds={{ minX: -68, maxX: 0, minY: -72, maxY: 0 }} />
)
export const SouthEastPopulation = () => (
<BoardArea bounds={{ minX: 0, maxX: 69, minY: -72, maxY: 0 }} />
)
export const ExactAm62l = () => {
const placement = placements.find(({ name }) => name === "U28")!
return (
<AM62L32
name="U28"
footprintVariant="fccsp_373_anb"
pcbX={placement.pcbX}
pcbY={placement.pcbY}
pcbRotation={placement.pcbRotation}
noConnect={SOC_PINS}
noSchematicRepresentation
/>
)
}