Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/nmigen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 93d15abcf1ac
Choose a base ref
...
head repository: m-labs/nmigen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 371dc8bebe0f
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 22, 2019

  1. compat.fhdl.specials: fix Tristate.

    peteut authored and whitequark committed Apr 22, 2019
    1
    Copy the full SHA
    371dc8b View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 nmigen/compat/fhdl/specials.py
6 changes: 3 additions & 3 deletions nmigen/compat/fhdl/specials.py
Original file line number Diff line number Diff line change
@@ -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,