[Libre-soc-bugs] [Bug 784] Implement cl* instructions for carry-less operations

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Apr 8 09:11:14 BST 2022


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

--- Comment #24 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
not quite, but you are right about the name, let's strip back
the diff to the bare minimum so you can see the logic is good.
you need to look at each individual commit to see it rather
than a combined diff because a combined diff throws too many
changes together at you:

-        different = self.a ^ self.b
-        m.d.comb += addend2.eq(~different)
+        m.d.comb += different.eq(~(self.a ^ self.b))

so the two operations have been preserved (XOR and NOT)
but the name "different" kept, which i didn't spot.

what i'll do is, move the NOT into the add-carry, that way the
name "different" doesn't change and it keeps to the ref code?

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


More information about the libre-soc-bugs mailing list