code wiki / _hdl_build / rv64im_min_alu_proof.nx

rv64im_min_alu_proof.nx

buildroot/runtime/_hdl_build/rv64im_min_alu_proof.nx

3577 B115 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind orphan librarytopic rv64im
docsdependenciesstructsconstsfunctions

about

nx_rv64im_alu_proof.nx -- vector dumper to PROVE the RV64IM ALU. Runs nx_rv64im_alu_compute over every ALU op (1..28) across a deterministic mix of edge values + LCG-generated 64-bit operands, and writes "<op_dec>\t<a_hex16>\t<b_hex16>\t<r_hex16>\n" lines to the proof folder. An independent Python implementation of the RV64IM spec then recomputes each result and diffs -- 1:1 proof, not "assertions PASS". expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx rv64im_min_alu.nx rv64im_min_alu_proof.nx

imports: nx_syscalls.nxrv64im_min_alu.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

16func _hex16(v: i64, out: *u8, pos: i64) -> i64
29func _dec2(v: i64, out: *u8, pos: i64) -> i64
37func _emit_vec(op: i64, a: i64, b: i64, out: *u8, pos: i64) -> i64
51func main() -> i64