[Libre-soc-bugs] [Bug 665] very basic nmigen-to-c compiler needed

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Aug 6 19:29:19 BST 2021


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

--- Comment #2 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Cesar Strauss from comment #1)
> > for PowerDecoder and PowerDecoder2 the output is sufficiently
> > complex that duplicating it (and maintaining a duplicate) is not sensible.
> 
> An alternative for this would be to convert to a C++ simulation using cxxrtl
> and wrap the evaluation function into a library.

nice idea in theory however c++ and the associated template library
it uses will not make it into the linux kernel.

i took a look yesterday at _pyrtl.py, i did not realise it actually creates
*python* code which is eval'd and compiled and then executed as a nameless
function.

this is extremely cool because the python code (which can be inspected
by enabling a debug os.ENV var) is very basic and conversion to c should
be extremely easy.

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


More information about the libre-soc-bugs mailing list