diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-07-08 11:41:26 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-07-08 11:41:26 +0200 |
commit | 72149aba2e8fece72450a81142a44d123154fd12 (patch) | |
tree | f5012fcdbc74c34e2f7bf6f9f8cfe6a9e8bf3d7f /backends | |
parent | 6bda61292513cbe7ffd69b4e3462b849757d2337 (diff) | |
download | yosys-72149aba2e8fece72450a81142a44d123154fd12.tar.gz yosys-72149aba2e8fece72450a81142a44d123154fd12.tar.bz2 yosys-72149aba2e8fece72450a81142a44d123154fd12.zip |
In BLIF, a .names without entries already always outputs 0
Diffstat (limited to 'backends')
-rw-r--r-- | backends/blif/blif.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/backends/blif/blif.cc b/backends/blif/blif.cc index 93953049a..d5787c23a 100644 --- a/backends/blif/blif.cc +++ b/backends/blif/blif.cc @@ -351,24 +351,13 @@ struct BlifDumper f << stringf(" %s", cstr(output)); f << stringf("\n"); RTLIL::SigSpec mask = cell->parameters.at("\\LUT"); - bool one = false; for (int i = 0; i < (1 << width); i++) if (mask[i] == RTLIL::S1) { for (int j = width-1; j >= 0; j--) { f << ((i>>j)&1 ? '1' : '0'); } f << " 1\n"; - one = true; } - /* For some reason, sometimes we get LUTs with - * an all zero mask, which won't give any - * .names entries, so write one entry with - * all don't cares */ - if (!one) { - for (int j = width-1; j >= 0; j--) - f << '-'; - f << " 0\n"; - } continue; } |