From: Luke Kenneth Casson Leighton Date: Wed, 29 Sep 2021 18:10:23 +0000 (+0100) Subject: add PartitionedSignal.shape function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=910a549cf3437b2f590138f9cbb9376d73839a99;p=ieee754fpu.git add PartitionedSignal.shape function (simply returns underlying self.sig.shape()) --- 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)