code wiki / _hdl_build / nx_fpga_cpu3_gate.nx
nx_fpga_cpu3_gate.nx
buildroot/runtime/_hdl_build/nx_fpga_cpu3_gate.nx
dependencies 10 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_fpga_decode.nxnx_fpga_alu.nxnx_fpga_cmp.nxnx_fpga_shift.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 |
| 24 | func ref_aluop(f3: i64, f7b5: i64) -> i64 |
| 34 | 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 |
| 35 | func enc_r(rd: i64, rs1: i64, rs2: i64, f3: i64, f7b5: i64) -> i64 { var f7: i64=0; if f7b5==1 {f7=32} return (f7<<25)|(rs2<<20)|(rs1<<15)|(f3<<12)|(rd<<7)|51 } |
| 37 | func enc_b(rs1: i64, rs2: i64, off: i64, f3: i64) -> i64 |
| 41 | func dec_btype(instr: i64) -> i64 |
| 47 | func cpu_exec(DI: *i64, DS: *i64, DP: *i64, AI: *i64, AS: *i64, AP: *i64, anpi: i64, CI: *i64, CS: *i64, CP: *i64, cnpi: i64, SI: *i64, SS: *i64, SP: *i64, snpi: i64, pi: *i64, co: *i64, ctrl: *i64, f3: i64, f7b5: i64, a: i64, b: i64) -> i64 |
| 55 | func main() -> i64 |