Skip to content

Commit

Permalink
compat.fhdl.specials: fix Tristate.
Browse files Browse the repository at this point in the history
  • Loading branch information
peteut authored and whitequark committed Apr 22, 2019
1 parent 93d15ab commit 371dc8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nmigen/compat/fhdl/specials.py
Expand Up @@ -41,12 +41,12 @@ def __init__(self, target, o, oe, i=None):

def elaborate(self, platform):
if hasattr(platform, "get_tristate"):
return platform.get_tristate(self.triple, self.io)
return platform.get_tristate(self.triple, self.target)

m = Module()
m.d.comb += self.triple.i.eq(self.io)
m.d.comb += self.triple.i.eq(self.target)
m.submodules += Instance("$tribuf",
p_WIDTH=len(self.io),
p_WIDTH=len(self.target),
i_EN=self.triple.oe,
i_A=self.triple.o,
o_Y=self.io,

This comment has been minimized.

Copy link
@peteut

peteut Apr 22, 2019

Author Contributor

@whitequark Sorry, missed this one. Should spell o_Y=self.target,.

Expand Down

0 comments on commit 371dc8b

Please sign in to comment.