add PartitionedSignal.shape function
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 29 Sep 2021 18:10:23 +0000 (19:10 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 29 Sep 2021 18:10:23 +0000 (19:10 +0100)
(simply returns underlying self.sig.shape())

src/ieee754/part/partsig.py

index 35487330ba342a3567d23a306b09525c00b5dc23..d3518984327dfc535a4168c1626e51ff3d1e76e4 100644 (file)
@@ -87,6 +87,8 @@ class PartitionedSignal(UserValue):
 
     def __len__(self):
         return len(self.sig)
+    def shape(self):
+        return self.sig.shape()
 
     # nmigen-redirected constructs (Mux, Cat, Switch, Assign)