code wiki / _hdl_build / _evo_enc_r_champ.nx

_evo_enc_r_champ.nx source

↩ module page · 4 lines · 372 B

1// DISCOVERED BY nx_evo_enc_r (evolved RV64 R-type encoder; structure search-derived). license_tier: ORIGINAL 2func evo_enc_r(opcode: i64, funct3: i64, funct7: i64, rd: i64, rs1: i64, rs2: i64) -> i64 { 3 return ((funct3 & 4294967295) << 12) | ((rs2 & 4294967295) << 20) | ((opcode & 127) << 0) | ((rd & 4294967295) << 7) | ((rs1 & 127) << 15) | ((funct7 & 127) << 25) 4}