nmigen.hdl.rec: restore Record.shape().
This method was lost in commit abbebf8e.
This commit is contained in:
parent
44318149e0
commit
c1ed90807b
2 changed files with 7 additions and 0 deletions
|
|
@ -198,6 +198,9 @@ class Record(ValueCastable):
|
|||
name = "<unnamed>"
|
||||
return "(rec {} {})".format(name, " ".join(fields))
|
||||
|
||||
def shape(self):
|
||||
return self.as_value().shape()
|
||||
|
||||
def connect(self, *subordinates, include=None, exclude=None):
|
||||
def rec_name(record):
|
||||
if record.name is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue