code wiki / _hdl_build / nx_fpga_ecall_gate.nx
nx_fpga_ecall_gate.nx
buildroot/runtime/_hdl_build/nx_fpga_ecall_gate.nx
dependencies 9 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_fpga_ram.nxnx_fpga_decode.nxnx_fpga_alu.nxnx_fpga_regfile.nxnx_fpga_pc.nxrv64im_min_alu.nxnx_syscalls.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
| 21 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 23 | func enc_i(rd: i64, rs1: i64, imm: i64, f3: i64) -> i64 { return ((imm & 4095) << 20) | (rs1 << 15) | (f3 << 12) | (rd << 7) | 19 } called by 1: main |
| 24 | func enc_jalr(rd: i64, rs1: i64, imm: i64) -> i64 { return ((imm&4095)<<20)|(rs1<<15)|(rd<<7)|103 } called by 1: main |
| 25 | func enc_b(rs1: i64, rs2: i64, off: i64, f3: i64) -> i64 |
| 29 | func dec_b(instr: i64) -> i64 { var imm: i64=(((instr>>31)&1)<<12)|(((instr>>7)&1)<<11)|(((instr>>25)&63)<<5)|(((instr>>8)&15)<<1); if (imm&4096)!=0 {imm=imm-8192} return imm } |
| 31 | func main() -> i64 |