aboutsummaryrefslogtreecommitdiffstats
path: root/icebox
diff options
context:
space:
mode:
authorTim 'mithro' Ansell <me@mith.ro>2018-07-08 18:11:32 -0700
committerTim 'mithro' Ansell <me@mith.ro>2018-07-08 18:18:56 -0700
commitd0f654b0c6247de2ccbf786902f0065fe2f1fda4 (patch)
treef4235b43deed97e048b9cc378fd74bfef4eead63 /icebox
parent16a9962fb16d50683a7b69835194703c48bc1759 (diff)
downloadicestorm-d0f654b0c6247de2ccbf786902f0065fe2f1fda4.tar.gz
icestorm-d0f654b0c6247de2ccbf786902f0065fe2f1fda4.tar.bz2
icestorm-d0f654b0c6247de2ccbf786902f0065fe2f1fda4.zip
icebox_vlog: Fix constant LUT output.
Diffstat (limited to 'icebox')
-rwxr-xr-xicebox/icebox_vlog.py4
1 files 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: