File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,13 @@ def port_for_process(p: Process):
336336
337337
338338class IOBuffer (io .Buffer ):
339+ # Type annotation - should go in amaranth-stubs eventually
340+ @property
341+ def i (self ) -> Signal : ...
342+ @property
343+ def o (self ) -> Signal : ...
344+ @property
345+ def oe (self ) -> Signal : ...
339346
340347 def elaborate (self , platform ):
341348 if not isinstance (self .port , SiliconPlatformPort ):
@@ -363,6 +370,15 @@ def elaborate(self, platform):
363370
364371
365372class FFBuffer (io .FFBuffer ):
373+ # Type annotation - should go in amaranth-stubs eventually
374+ @property
375+ def i (self ) -> Signal : ...
376+ @property
377+ def o (self ) -> Signal : ...
378+ @property
379+ def oe (self ) -> Signal : ...
380+
381+
366382 def elaborate (self , platform ):
367383 if not isinstance (self .port , SiliconPlatformPort ):
368384 raise TypeError (f"Cannot elaborate SiliconPlatform buffer with port { self .port !r} " )
You can’t perform that action at this time.
0 commit comments