diff options
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/show.cc | 2 | ||||
-rw-r--r-- | passes/techmap/techmap.cc | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/passes/cmds/show.cc b/passes/cmds/show.cc index abe6cd460..1599879a1 100644 --- a/passes/cmds/show.cc +++ b/passes/cmds/show.cc @@ -72,7 +72,7 @@ struct ShowWorker { if (currentColor == 0) return "color=\"black\""; - return stringf("colorscheme=\"dark28\", color=\"%d\", fontcolor=\"%d\"", currentColor%8+1); + return stringf("colorscheme=\"dark28\", color=\"%d\", fontcolor=\"%d\"", currentColor%8+1, currentColor%8+1); } std::string nextColor(std::string presetColor) diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc index 0ee45ba39..73da6ce1d 100644 --- a/passes/techmap/techmap.cc +++ b/passes/techmap/techmap.cc @@ -109,8 +109,10 @@ struct TechmapWorker connbits_map.at(bit).second, log_id(connbits_map.at(bit).first)); constmap_info += stringf("|%s %d %s %d", log_id(conn.first), i, log_id(connbits_map.at(bit).first), connbits_map.at(bit).second); - } else - connbits_map[bit] = std::pair<RTLIL::IdString, int>(conn.first, i);stringf("%s %d", log_id(conn.first), i, bit.data); + } else { + connbits_map[bit] = std::pair<RTLIL::IdString, int>(conn.first, i); + constmap_info += stringf("|%s %d", log_id(conn.first), i); + } } return stringf("$paramod$constmap:%s%s", sha1(constmap_info).c_str(), tpl->name.c_str()); |