diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-10 21:19:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 21:19:38 +0200 |
commit | 28d9f2f1ac31281c68780cae647945130303bc6c (patch) | |
tree | f4235b43deed97e048b9cc378fd74bfef4eead63 | |
parent | 16a9962fb16d50683a7b69835194703c48bc1759 (diff) | |
parent | d0f654b0c6247de2ccbf786902f0065fe2f1fda4 (diff) | |
download | icestorm-28d9f2f1ac31281c68780cae647945130303bc6c.tar.gz icestorm-28d9f2f1ac31281c68780cae647945130303bc6c.tar.bz2 icestorm-28d9f2f1ac31281c68780cae647945130303bc6c.zip |
Merge pull request #170 from mithro/const-lut-out
icebox_vlog: Fix constant LUT output.
-rwxr-xr-x | icebox/icebox_vlog.py | 4 |
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: |