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

Luke Kenneth Casson Leighton lkcl at lkcl.net
Fri Jul 5 10:46:02 BST 2019

On Friday, July 5, 2019, Jacob Lifshay <programmerjake at gmail.com> wrote:

> I added the DivPipeCoreSetupStage class, which is the translation for
> the constructor of FixedUDivRemSqrtRSqrt.

Will take a look.

> I'm not sure how setup and
> process are supposed to be defined,

there's lots or examples and they're documented in nmutil/iocontrol.py

setup can be ignored entirely for non-module-based combinatorial stages.

with module-based designs, setup takes the module that submodules must be
added to, and something of type ispec that must be eq'd into the submodule.

usually the setup function will drop something into the class that is
returned by process().

that's all.

crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68

More information about the libre-riscv-dev mailing list