-Subproject commit 34254f4b3c7c7ceb49fbf806014f0d90eee9011a
+Subproject commit 22a93badbd972f3f6009ff1a2d7be2948dcb45d2
import unittest
-from soc.decoder.selectable_int import SelectableInt
+from soc.decoder.selectable_int import SelectableInt, onebit
from nmutil.divmod import trunc_div, trunc_rem
+from soc.decoder.selectable_int import selectltu as ltu
+from soc.decoder.selectable_int import selectgtu as gtu
"""
Links:
return mask_a ^ mask_b
def ne(a, b):
- return SelectableInt((a != b), bits=1)
+ return onebit(a != b)
def eq(a, b):
- return SelectableInt((a == b), bits=1)
+ return onebit(a == b)
def gt(a, b):
- return SelectableInt((a > b), bits=1)
+ return onebit(a > b)
def ge(a, b):
- return SelectableInt((a >= b), bits=1)
+ return onebit(a >= b)
def lt(a, b):
- return SelectableInt((a < b), bits=1)
+ return onebit(a < b)
def le(a, b):
- return SelectableInt((a <= b), bits=1)
+ return onebit(a <= b)
def length(a):
return len(a)
from soc.decoder.isa.caller import inject, instruction_info
from soc.decoder.helpers import (EXTS, EXTS64, EXTZ64, ROTL64, ROTL32, MASK,
- ne, eq, gt, ge, lt, le, length,
+ ne, eq, gt, ge, lt, le, ltu, gtu, length,
trunc_div, trunc_rem)
from soc.decoder.selectable_int import SelectableInt
from soc.decoder.selectable_int import selectconcat as concat