nx_pcb_drill_gate.nx
buildroot/runtime/nx_pcb_drill_gate.nx
about
nx_pcb_drill_gate.nx -- R1b GATE of the Omniforge PCB/EDA leg: Excellon drill export.
Builds a drill program for the demo board (2 tools, 3 holes at the pad centres), emits via
nx_pcb_drill, writes the real .drl artifact, then VERIFIES by reconstructing the canonical ASCII
for every tool def + hole from the integer model and asserting EXACT presence (integer round-trip,
no float drift). Checks M48/FMAT,2/METRIC/M30 headers, counts hole lines, and a NEGATIVE CONTROL:
a hole off by 1um must be ABSENT. Together with nx_pcb_gerber_gate this proves a COMPLETE fab
package (copper + drills). 100% sovereign, integer-only.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_pcb_drill.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 12 | func sw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 13 | func sn(v: i64) -> i64 |
| 24 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 26 | func contains(hay: *u8, haylen: i64, needle: *u8) -> i64 |
| 40 | func count_occur(hay: *u8, haylen: i64, needle: *u8) -> i64 |
| 55 | func expect_hole(nb: *u8, x_um: i64, y_um: i64) -> i64 |
| 65 | func expect_tool(nb: *u8, tcode: i64, dia_um: i64) -> i64 |
| 74 | func check(name: *u8, cond: i64, tot: *i64) -> i64 |
| 81 | func main() -> i64 |