[Libre-soc-bugs] [Bug 458] PartitionedSignal needs nmigen constructs "m.If", Switch etc

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Mon Sep 27 21:04:08 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=458

--- Comment #15 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #13)
> well, that could have gone better. turns out that whitequark has decided
> not to support concepts such as PartitionedSignal.
> 
> this forces us into a position of making a hard fork of nmigen in order to
> support PartitionedSignal and other advanced concepts.

well, if we make a wrapper class like:
class PModule:
    def __init__(self, nmigen_module):
        self.nmigen_module = nmigen_module
        self.d = ...
    def If(self, cond):
        ... # ultimately call Module.If if needed
    ...

we avoid needing a nmigen fork

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list