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

scripts/check-ddr-host-solver.ts

import { AutoroutingPipelineSolver9_PreloadedTraceGraph } from '@tscircuit/capacity-autorouter'
import { readFileSync, writeFileSync } from 'node:fs'
const input=JSON.parse(readFileSync(process.argv[2]!,'utf8'))
const solver=new AutoroutingPipelineSolver9_PreloadedTraceGraph(input)
solver.solve()
if(solver.failed)throw new Error(solver.error??'Host capacity router failed')
writeFileSync(process.argv[3]!,JSON.stringify(solver.getOutputSimplifiedPcbTraces()))