nmigen.hdl.rec: restore Record.shape().

This method was lost in commit abbebf8e.
This commit is contained in:
awygle 2020-11-17 11:36:58 -08:00 committed by GitHub
parent 44318149e0
commit c1ed90807b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -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: