0hmX/am3352-ddr-track-c-stackup-wip-20261007

Saved native stackup-first preview: 11 DDR endpoint routes and 179 selected pad-to-plane joins. Matching and full-board connectivity incomplete. Not fabrication-ready.

Version
0.0.2
License
unset
Stars
0

scripts/preserve-frozen-dist.mjs

import { readFileSync, writeFileSync } from 'node:fs';
import { createHash } from 'node:crypto';
import { isDeepStrictEqual } from 'node:util';

const frozen = readFileSync('routed/circuit.json');
const expected = 'b4df5185814ebaa17a19675b586702e62f3470bbea3a8d33079150b4ea3ee38e';
if (createHash('sha256').update(frozen).digest('hex') !== expected) {
  throw new Error('Frozen board hash mismatch');
}
const built = JSON.parse(readFileSync('dist/routed/circuit.json', 'utf8'));
if (!isDeepStrictEqual(built, JSON.parse(frozen.toString('utf8')))) {
  throw new Error('Built board records differ from the frozen board');
}
writeFileSync('dist/routed/circuit.json', frozen);
console.log(`Preserved all ${built.length} frozen records and exact ${expected} bytes in dist/routed/circuit.json`);