Untitled

Pasted by zyp on Thu Oct 12 21:30:34 2023 UTC as Diff
diff --git a/amaranth/lib/wiring.py b/amaranth/lib/wiring.py
index 0e99203..c892f51 100644
--- a/amaranth/lib/wiring.py
+++ b/amaranth/lib/wiring.py
@@ -570,6 +570,8 @@ class FlippedInterface:
         value = getattr(self.__unflipped, name)
         if inspect.ismethod(value):
             return types.MethodType(value.__func__, self)
+        elif name in self.__unflipped.signature.members:
+            return flipped(value)
         else:
             return value