[Libre-soc-bugs] [Bug 782] add galois field bitmanip instructions
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Tue Mar 8 04:56:47 GMT 2022
https://bugs.libre-soc.org/show_bug.cgi?id=782
--- Comment #38 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #37)
> yes, that's correct, though i probably would have spelled out the arithmetic
> rather than relying on globals.
that came from the programming style used by the gfMUL function
which i originally found online, but if you think about it, it
kinda reflects the concept we had in mind to have an SPR for the modulo.
i've often found that converting python code to classes, so as to
avoid considering the *module* as the encapsulation of the concept,
to result in unnecessary complexity and loss of clarity.
given that the SPR for the modulo would be fully global in nature,
polyred as a global funnily enough more accurately represents the
real-world scenario as to how the assembly instructions would be
used in the ISA, giving us a "feel" for how things would go.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list