From 910a549cf3437b2f590138f9cbb9376d73839a99 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 29 Sep 2021 19:10:23 +0100 Subject: [PATCH] add PartitionedSignal.shape function (simply returns underlying self.sig.shape()) --- src/ieee754/part/partsig.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ieee754/part/partsig.py b/src/ieee754/part/partsig.py index 35487330..d3518984 100644 --- a/src/ieee754/part/partsig.py +++ b/src/ieee754/part/partsig.py @@ -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) -- 2.30.2