code wiki / _hdl_build / nx_bom_hb.nx

nx_bom_hb.nx

buildroot/runtime/_hdl_build/nx_bom_hb.nx

1735 B39 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind orphan librarytopic bom
docsdependenciesstructsconstsfunctions

about

nx_bom.nx -- LIB: component library + supply-chain BILL OF MATERIALS, as a digital twin of real procurement. A parts library carries REAL data per part (mfr part number, unit price in CENTS, available stock). A design maps each component instance to a library part; the BOM aggregates by part -> quantity + extended cost, sums an EXACT integer total (no float rounding -> what you'd really pay), and flags supply-chain SHORTFALLS (required qty > stock = can't source). Composes the schematic's component list (schematic -> ... -> BOM). Data-driven: adding a part = a library row. never-brick #26: pure arithmetic, bounded, deterministic. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_bom_hb.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

10func bom_qty(comp_part: *i64, ncomp: i64, part: i64) -> i64
18func bom_total_cents(comp_part: *i64, ncomp: i64, lib_price: *i64, nlib: i64) -> i64
calls 1: bom_qty
30func bom_shortfalls(comp_part: *i64, ncomp: i64, lib_stock: *i64, nlib: i64) -> i64
calls 1: bom_qty