mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-09-07 20:36:44 +02:00
Fix twines
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user