[Libre-soc-bugs] [Bug 782] add galois field bitmanip instructions
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Tue Mar 15 08:58:00 GMT 2022
https://bugs.libre-soc.org/show_bug.cgi?id=782
--- Comment #81 from Jacob Lifshay <programmerjake at gmail.com> ---
I added separate python files for clmul, clmulh, clmulr, and cldivrem (helper
function for cldiv and clrem), and added a unittest-based test (test_cl.py) for
them all.
https://git.libre-soc.org/?p=libreriscv.git;a=tree;f=openpower/sv/bitmanip;hb=4852bd74b9e2ec7f4c8ae8c0677daa4402314a1b
I also changed bitmanip.mdwn to embed the python files into it, rather than
having separately maintained code in the markdown, allowing us to test
everything and import it much easier, since I'm planning on using the cf*
python code in the definitions of the GF(2^n) ops.
I think this approach is better than having to constantly keep gf2.py and
bitmanip.mdwn in sync and having the DIY tests in gf2.py where the user has to
manually compare print outputs.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list