Fix twines

This commit is contained in:
Emil J. Tywoniak
2026-07-20 15:01:30 +02:00
parent 8db1082dd2
commit 9408564d56
+2 -2
View File
@@ -98,8 +98,8 @@ struct Chunk {
return port;
auto &pool = cell->module->design->twines;
if (len == 1)
return pool.add(Twine{stringf("%s[%d]", pool.str(port).c_str(), base)});
return pool.add(Twine{stringf("%s[%d:%d]", pool.str(port).c_str(), base + len - 1, base)});
return pool.add(stringf("%s[%d]", pool.str(port).c_str(), base));
return pool.add(stringf("%s[%d:%d]", pool.str(port).c_str(), base + len - 1, base));
}
SigSpec sample(Cell *cell)