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

Luke Kenneth Casson Leighton lkcl at lkcl.net
Wed Jul 10 09:26:44 BST 2019


On Wed, Jul 10, 2019 at 9:03 AM Jacob Lifshay <programmerjake at gmail.com> wrote:
>
> DivPipeCore tests pass.

 i saw, after the enum issue was fixed.

> still need to add more tests though.

 yehyeh, that's going to get interesting.  i'd be really interested to
see what happens on putting some data into the pipe.

 see fpmux.py btw - it does ready_io/valid_io signalling.  if you
ignore that, something similar can be used (one cls.send, one cls.rcv
function) to get an array of data into the pipeline (cls.send), and in
cls.rcv, delay by N fixed cycles (to wait for pipe propagation), and
start reading out of the pipeline.

l.



More information about the libre-riscv-dev mailing list