From 4c443a7ef50eca3c43fe87cd54d304ef1648300b Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 3 Jun 2019 09:39:38 +0000 Subject: [PATCH] compat.fhdl.specials: TSTriple is not an elaboratable. --- nmigen/compat/fhdl/specials.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nmigen/compat/fhdl/specials.py b/nmigen/compat/fhdl/specials.py index 4a517e7..64f8db3 100644 --- a/nmigen/compat/fhdl/specials.py +++ b/nmigen/compat/fhdl/specials.py @@ -12,7 +12,7 @@ from .module import Module as CompatModule __all__ = ["TSTriple", "Instance", "Memory", "READ_FIRST", "WRITE_FIRST", "NO_CHANGE"] -class TSTriple(Elaboratable): +class TSTriple: def __init__(self, bits_sign=None, min=None, max=None, reset_o=0, reset_oe=0, reset_i=0, name=None): self.o = Signal(bits_sign, min=min, max=max, reset=reset_o, @@ -25,9 +25,6 @@ class TSTriple(Elaboratable): def __len__(self): return len(self.o) - def elaborate(self, platform): - return Fragment() - def get_tristate(self, io): return Tristate(io, self.o, self.oe, self.i) -- 2.30.2