3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-04 18:30:25 +00:00

const: string and bits in a variant

This commit is contained in:
Emil J. Tywoniak 2024-07-30 19:58:43 +02:00
parent 498e0498c5
commit 5f85eef3b4
6 changed files with 208 additions and 128 deletions

View file

@ -143,7 +143,7 @@ struct OptMergeWorker
for (auto &it : cell->parameters) {
Const c = it.second;
std::string s = "P " + it.first.str() + "=";
s += (c.flags & RTLIL::CONST_FLAG_STRING_COMPACT) ? c.decode_string() : c.as_string();
s += c.pretty_fmt_undef();
s += "\n";
hash_conn_strings.push_back(s);
}