Skip to content

Commit

Permalink
compat.fhdl.specials: fix platform lowering.
Browse files Browse the repository at this point in the history
get_tristate only has O/OE; the triple is created by get_input_output.
  • Loading branch information
whitequark committed Jun 4, 2019
1 parent 0cbb743 commit 79a3710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nmigen/compat/fhdl/specials.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def __init__(self, target, o, oe, i=None):
self.triple.i = i

def elaborate(self, platform):
if hasattr(platform, "get_tristate"):
return platform.get_tristate(self.triple, self.target)
if hasattr(platform, "get_input_output"):
return platform.get_input_output(self.triple, self.target, extras={})

m = Module()
m.d.comb += self.triple.i.eq(self.target)
Expand Down

0 comments on commit 79a3710

Please sign in to comment.