From d0f654b0c6247de2ccbf786902f0065fe2f1fda4 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Sun, 8 Jul 2018 18:11:32 -0700 Subject: icebox_vlog: Fix constant LUT output. --- icebox/icebox_vlog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icebox/icebox_vlog.py b/icebox/icebox_vlog.py index a86f11e..68c0925 100755 --- a/icebox/icebox_vlog.py +++ b/icebox/icebox_vlog.py @@ -842,9 +842,9 @@ for lut in luts_queue: else: always_stmts.append("/* FF %2d %2d %2d */ assign %s = %s;" % (lut[0], lut[1], lut[2], net_out, net_lout)) if not "1" in lut_bits: - const_assigns.append([net_out, "1'b0"]) + const_assigns.append([net_lout, "/* LUT %2d %2d %2d */ 1'b0" % (lut[0], lut[1], lut[2])]) elif not "0" in lut_bits: - const_assigns.append([net_out, "1'b1"]) + const_assigns.append([net_lout, "/* LUT %2d %2d %2d */ 1'b1" % (lut[0], lut[1], lut[2])]) else: def make_lut_expr(bits, sigs): if not sigs: -- cgit v1.2.3