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):
336
336
337
337
338
338
class 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 : ...
339
346
340
347
def elaborate (self , platform ):
341
348
if not isinstance (self .port , SiliconPlatformPort ):
@@ -363,6 +370,15 @@ def elaborate(self, platform):
363
370
364
371
365
372
class 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
+
366
382
def elaborate (self , platform ):
367
383
if not isinstance (self .port , SiliconPlatformPort ):
368
384
raise TypeError (f"Cannot elaborate SiliconPlatform buffer with port { self .port !r} " )
You can’t perform that action at this time.
0 commit comments