[Libre-soc-bugs] [Bug 745] OP_TERNLOG instruction

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Mar 9 08:21:36 GMT 2023


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

--- Comment #65 from Jacob Lifshay <programmerjake at gmail.com> ---
https://libre-soc.org/openpower/sv/bitmanip/ternlogi_simplification_experiment/

https://git.libre-soc.org/?p=libreriscv.git;a=commit;h=8268a10d4827a095f7c776d3424e7b5abc581056
Author: Jacob Lifshay <programmerjake at gmail.com>
Date:   Thu Mar 9 00:10:47 2023 -0800

    add experiment for seeing if changing ternlogi to have 7-bit immediate
could even work

    turns out, it probably can. I wrote a script that looks for possible
expand_encoded_imm()
    functions and filled in one I found.

assuming I counted correctly and the function I found actually is correct, it
should only need 9 xor gates! so, imho this is trivial to decode even if we
(unwisely) decided to mush it into the decoder instead of the ALU.

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


More information about the libre-soc-bugs mailing list