code wiki / _hdl_build / nx_pcb_autoroute.nx

nx_pcb_autoroute.nx

buildroot/runtime/_hdl_build/nx_pcb_autoroute.nx

2317 B43 linesdepth 5pulls 5 transitivereach 5 importersview sourcekind librarytopic pcb
docsdependenciesstructsconstsfunctions

about

nx_pcb_autoroute.nx -- LIB: sovereign PCB copper AUTOROUTER, built by REUSING the silicon place-and-route router (nx_fpga_pnr / pnr_route_net_ex). ONE shared routing engine serves BOTH FPGA fabric routing AND PCB trace routing -- the "shared resources" architecture, literally. Routes a netlist of 2-pad nets on a single copper layer (a WxH grid); node-keepout blocking keeps different nets NODE-disjoint (no shorts / crossings = the core DRC). Reports total copper length + a short count (0 = DRC-clean) + a routed flag. This closes the omniforge ED "interactive autorouter" gap sovereignly (vs KiCad/Freerouting -- benchmark only). never-brick #26: pure memory, bounded (BFS <= W*H per net), deterministic, zero hardware writes. license_tier: ORIGINAL

dependencies 2 imports · 5 importers

nx_fpga_pnr.nx nx_syscalls.nx nx_pcb_autoroute.nx nx_pcb_autoroute_gate.nx nx_pcb_drc_gate.nx nx_pcb_render_gate.nx nx_pcb_twin_gate.nx nx_schematic_gate.nx

imports: nx_fpga_pnr.nxnx_syscalls.nx

imported by: nx_pcb_autoroute_gate.nxnx_pcb_drc_gate.nxnx_pcb_render_gate.nxnx_pcb_twin_gate.nxnx_schematic_gate.nx

structs

none

consts

none

functions

14func pa_route_board(nnets: i64, ax: *i64, ay: *i64, bx: *i64, by: *i64,