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: 01a3101fd3e9
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: 70bbfecf6d30
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 14, 2019

  1. vendor.lattice_ice40: never place an inverter on global buffer output.

    This would make `pin.i` not a global network anymore, which is likely
    undesirable if an explicit Attrs(GLOBAL=1) is specified.
    whitequark committed Jun 14, 2019
    Copy the full SHA
    70bbfec View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 nmigen/vendor/lattice_ice40.py
3 changes: 2 additions & 1 deletion nmigen/vendor/lattice_ice40.py
Original file line number Diff line number Diff line change
@@ -164,6 +164,7 @@ def get_o_inverter(a, invert):
del attrs["GLOBAL"]
else:
is_global_input = False
assert not (is_global_input and i_invert)

if "i" in pin.dir:
if pin.xdr < 2:
@@ -222,7 +223,7 @@ def get_o_inverter(a, invert):

if "i" in pin.dir:
if pin.xdr == 0 and is_global_input:
io_args.append(("o", "GLOBAL_BUFFER_OUTPUT", pin_i[bit]))
io_args.append(("o", "GLOBAL_BUFFER_OUTPUT", pin.i[bit]))
elif pin.xdr < 2:
io_args.append(("o", "D_IN_0", pin_i[bit]))
elif pin.xdr == 2: