code wiki / _hdl_build / nx_decode_kind_test.nx

nx_decode_kind_test.nx

buildroot/runtime/_hdl_build/nx_decode_kind_test.nx

1907 B50 linesdepth 9pulls 10 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_decode_kind_test.nx -- EXHAUSTIVE proof of the RV64IM decoder gate-network (nx_decode_kind_synth) vs the behavioral nx_rv64im_decode_kind. decode_kind depends only on {opcode[6:0], funct3[14:12], funct7[31:25]} (17 bits), so this sweeps ALL 2^17 = 131072 combinations -- a complete proof, not a sample. Known answer: "131072 131072" (ok total), exit 0.

dependencies 1 imports · 0 importers

nx_decode_kind.nx nx_decode_kind_test.nx

imports: nx_decode_kind.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_decode_kind_synth div_const div_op2 div_mux dk_sel div_op2 ↻ div_const ↻ div_mux ↻ nx_gsim_run nx_gsim_kind_supported nx_gsim_eval_cell nx_rv64im_decode_kind nx_rv64im_opcode nx_rv64im_funct7 nx_rv64im_funct3 _emit_dec _nl

structs

none

consts

none

functions

9func _emit_dec(v: i64) -> i64
called by 1: main
17func _nl() -> i64 { let z: *u8 = sys_mmap(2); z[0] = 10; sys_write(1, z, 1); return 0 }
called by 1: main
19func main() -> i64