mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
Fix twines
This commit is contained in:
parent
344c2b6a80
commit
a7bf6df2f9
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue