code wiki / _hdl_build / nx_alu_divider_r8.nx

nx_alu_divider_r8.nx

buildroot/runtime/_hdl_build/nx_alu_divider_r8.nx

2416 B54 linesdepth 9pulls 9 transitivereach 0 importersview sourcekind orphan librarytopic alu
docsdependenciesstructsconstsfunctions

about

nx_alu_divider_r8.nx -- radix-8 divider (3 quotient bits/iteration => W/3 subtract-stages). Bottom-up latency iteration on the divider car (don't move up until S-class): radix-2 (W) -> radix-4 (W/2) -> radix-8 (W/3) -> ... toward the multiplicative frontier (Goldschmidt ~log W). Same proven digit-recurrence invariant, q-digit in {0..7} via 7 compare-multiples + a cascade. Reuses nx_alu_divider_r4 (radix-2 + radix-4) helpers. width must be a multiple of 3. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_alu_divider_r4.nx nx_alu_divider_r8.nx

imports: nx_alu_divider_r4.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

11func nx_div_synth_r8(g: *NxGsim, na: i64, nb: i64, width: i64, rem_out: *i64) -> i64