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

Jacob Lifshay programmerjake at gmail.com
Fri Jul 5 10:51:04 BST 2019


On Fri, Jul 5, 2019 at 2:46 AM Luke Kenneth Casson Leighton
<lkcl at lkcl.net> wrote:
>
> On Friday, July 5, 2019, Jacob Lifshay <programmerjake at gmail.com> wrote:
>
> >
> > 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,
Seems like a bad design, since the calling code should be able to pick
the submodule names, not the called code. What happens if a module
needs to make 2 instances of the same class as different submodules?
> and something of type ispec that must be eq'd into the submodule.
Ok, That makes sense.



More information about the libre-riscv-dev mailing list