From c78b4ddd838f43b926e8a90cdd4d54a934680cad Mon Sep 17 00:00:00 2001 From: whitequark Date: Mon, 22 Apr 2019 08:15:03 +0000 Subject: [PATCH] compat.fhdl.specials: fix TSTriple. --- nmigen/compat/fhdl/specials.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nmigen/compat/fhdl/specials.py b/nmigen/compat/fhdl/specials.py index acd521b..053f213 100644 --- a/nmigen/compat/fhdl/specials.py +++ b/nmigen/compat/fhdl/specials.py @@ -13,11 +13,11 @@ __all__ = ["TSTriple", "Instance", "Memory", "READ_FIRST", "WRITE_FIRST", "NO_CH 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(shape, min=min, max=max, reset=reset_o, + self.o = Signal(bits_sign, min=min, max=max, reset=reset_o, name=None if name is None else name + "_o") self.oe = Signal(reset=reset_oe, name=None if name is None else name + "_oe") - self.i = Signal(shape, min=min, max=max, reset=reset_i, + self.i = Signal(bits_sign, min=min, max=max, reset=reset_i, name=None if name is None else name + "_i") def __len__(self): -- 2.30.2