[libre-riscv-dev] div/mod algorithm written in python

Jacob Lifshay programmerjake at gmail.com
Sat Jun 29 10:46:08 BST 2019


I completed the integer div/mod algorithm for simulation/testing and will
be adding fixed-point sqrt/rsqrt next. Those are the operations that handle
the mantissas for fdiv/fsqrt/frsqrt.

See:
https://git.libre-riscv.org/?p=ieee754fpu.git;a=blob;f=src/ieee754/div_rem_sqrt_rsqrt/algorithm.py;h=74b7dec16164390576ab6bd741400e4eaa2a362a;hb=HEAD

after the algorithms work in simulation, I'll convert to nmigen and wire
into the fp pipeline.

I'm planning on having the whole fpdiv pipe in the div_rem_sqrt_rsqrt
folder, I just haven't gotten around to it.

Jacob


More information about the libre-riscv-dev mailing list