projects
/
ieee754fpu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e38bd
)
add PartitionedSignal.shape function
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Wed, 29 Sep 2021 18:10:23 +0000
(19:10 +0100)
committer
Luke 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
patch
|
blob
|
history
diff --git
a/src/ieee754/part/partsig.py
b/src/ieee754/part/partsig.py
index 35487330ba342a3567d23a306b09525c00b5dc23..d3518984327dfc535a4168c1626e51ff3d1e76e4 100644
(file)
--- 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)