code wiki / _hdl_build / nx_alu_select_mem_test.nx
nx_alu_select_mem_test.nx
buildroot/runtime/_hdl_build/nx_alu_select_mem_test.nx
about
nx_alu_select_mem_test.nx -- proves the ONE unified builder (nx_alu_build_select)
drives the MEM sink correctly in BOTH modes: use_divider=0 reproduces the stub
census (17 match) and use_divider=1 the divider+mulh census (24 match: +DIV DIVU
REM REMU via the divider, +MULH MULHSU MULHU via the wide multiplier). This is
the equivalence proof that the netlist the shipping emitter ships (same builder,
TEXT sink) is the one the Verifier proves correct.
a=20 b=4. Known answer (FAIL LOUD): "stub=17 div=24" rc=0.
dependencies 2 imports · 0 importers
imports: nx_alu_select.nxrv64im_min_alu.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
| 13 | func _emit_cstr(s: *u8) -> i64 called by 1: main |
| 19 | func _emit_dec(v: i64) -> i64 called by 1: main |
| 33 | func _run_census(g: *NxGsim, a: i64, b: i64, use_div: i64) -> i64 |
| 54 | func main() -> i64 |