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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Aug 31 20:30:43 BST 2021


--- Comment #3 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
ok so the idea here is to have the bare minimum code-generator which is
actually executable c code.  it is reasonable to assume (for now) that
the maximum Signal width will be 64-bit, but not reasonable to assume
it will stay that way.

therefore, part of the project involves creating some macro-templates
for Signal arithmetic (in c) and having the compiler spit out both
the macros and their usage.


     comb += x.eq(y + 5)

c output (or close to it):

     #define SIGNAL uint64_t
     #define SADD(res, x, y) (res = x + y)

     .... SADD(x, y, 5)

something like that.

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

More information about the libre-soc-bugs mailing list