File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ def filter_fields(src):
532532 raise TypeError (f"Field collection must be a dict or a list, not { fields !r} " )
533533
534534 width = 0
535- for field_path , field in self . _fields . flatten () :
535+ for field_path , field in self :
536536 width += Shape .cast (field .port .shape ).width
537537 if field .port .access .readable () and not access .readable ():
538538 raise ValueError (f"Field { '__' .join (field_path )} is readable, but element access "
@@ -569,7 +569,7 @@ def elaborate(self, platform):
569569
570570 field_start = 0
571571
572- for field_path , field in self . fields . flatten () :
572+ for field_path , field in self :
573573 field_width = Shape .cast (field .port .shape ).width
574574 field_slice = slice (field_start , field_start + field_width )
575575
You can’t perform that action at this time.
0 commit comments