From: Luke Kenneth Casson Leighton Date: Sun, 27 Dec 2020 00:09:57 +0000 (+0000) Subject: comment PartitionedSignal lt/le X-Git-Tag: ls180-24jan2020~33 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54ebe54bb3dceacfddf376a73088896daf900bc6;p=ieee754fpu.git comment PartitionedSignal lt/le --- diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index a5f95140..728764e7 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -252,6 +252,7 @@ class PartitionedSignal: def __lt__(self, other): width = self.sig.shape()[0] + # swap operands, use gt to do lt return self._compare(width, other, self, "gt", PartitionedEqGtGe.GT) def __ge__(self, other): @@ -260,6 +261,7 @@ class PartitionedSignal: def __le__(self, other): width = self.sig.shape()[0] + # swap operands, use ge to do le return self._compare(width, other, self, "ge", PartitionedEqGtGe.GE) # useful operators