code wiki / _hdl_build / nx_riscv_decode.nx

nx_riscv_decode.nx

buildroot/runtime/_hdl_build/nx_riscv_decode.nx

4837 B71 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic riscv
docsdependenciesstructsconstsfunctions

about

nx_riscv_decode.nx -- SOVEREIGN RISC-V backend RUNG 1b: our own rv64im DECODER / round-trip oracle. Now on the GENERAL nx_riscv_lib (shared encoders, decoders, ident, UI) -- only name_of + the tests are local. T1 round-trip decode(encode(x))==x. T2 read back the bytes our encoder emitted == the no-float kernel. T3 (teeth) a corrupted word decodes to a different instruction. (no objdump/gcc/sh) expect_exit: 0 Sovereign: nx_riscv_lib (+ nx_syscalls).

dependencies 2 imports · 0 importers

nx_riscv_lib.nx nx_syscalls.nx nx_riscv_decode.nx

imports: nx_riscv_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main g_puts sys_write enc_r d_op d_f3 d_f7 d_rd d_rs1 d_rs2 ident enc_i d_immi g_pn nxi_out nxi_fd sys_mmap ccz_cat_num sys_write ↻ sys_munmap ck g_puts ↻ sys_openat_rd sys_mmap ↻ sys_read sys_close name_of g_puts ↻ sys_openat_append sys_write ↻ sys_exit

structs

none

consts

none

functions

9func name_of(id: i64) -> i64
called by 1: main calls 1: g_puts
16func main() -> i64