min/max in Signal deprecated in nmigen
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 17 Jan 2020 14:18:34 +0000 (14:18 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 17 Jan 2020 14:18:34 +0000 (14:18 +0000)
src/ieee754/div_rem_sqrt_rsqrt/core.py

index cef62a343ad8da05d6c8746a30d8a276a050660f..fea59dce0c4f73d652985faa8181d5af97d5877c 100644 (file)
@@ -70,8 +70,7 @@ class DivPipeCoreOperation(enum.Enum):
     @classmethod
     def create_signal(cls, *, src_loc_at=0, **kwargs):
         """ Create a signal that can contain a ``DivPipeCoreOperation``. """
-        return Signal(min=min(map(int, cls)),
-                      max=max(map(int, cls)) + 2,
+        return Signal(range(min(map(int, cls)), max(map(int, cls)) + 2),
                       src_loc_at=(src_loc_at + 1),
                       decoder=lambda v: str(cls(v)),
                       **kwargs)