From d3ed390b9d087ea63ad03901aaf3cb1d51eafa77 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 12 Jun 2019 17:38:14 +0000 Subject: [PATCH] vendor.lattice_ice40: fix typo. --- nmigen/vendor/lattice_ice40.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/vendor/lattice_ice40.py b/nmigen/vendor/lattice_ice40.py index ae8d0ce..6120d10 100644 --- a/nmigen/vendor/lattice_ice40.py +++ b/nmigen/vendor/lattice_ice40.py @@ -133,7 +133,7 @@ class LatticeICE40Platform(TemplatedPlatform): if invert is None: return y else: - a = Signal.like(y, name="{}_x{}".format(a.name, 1 if invert else 0)) + a = Signal.like(y, name="{}_x{}".format(y.name, 1 if invert else 0)) for bit in range(len(y)): m.submodules += Instance("SB_LUT4", p_LUT_INIT=0b01 if invert else 0b10, -- 2.30.2