mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-25 19:01:30 +00:00
Merge pull request #5304 from rocallahan/idstring-stringf
Support `IdString` parameters in `stringf()` and remove `.c_str()` in a lot of places
This commit is contained in:
commit
c468ee7add
92 changed files with 807 additions and 775 deletions
|
@ -97,9 +97,9 @@ struct Chunk {
|
|||
if (len == cell->getPort(port).size())
|
||||
return port;
|
||||
else if (len == 1)
|
||||
return stringf("%s[%d]", port.c_str(), base);
|
||||
return stringf("%s[%d]", port, base);
|
||||
else
|
||||
return stringf("%s[%d:%d]", port.c_str(), base + len - 1, base);
|
||||
return stringf("%s[%d:%d]", port, base + len - 1, base);
|
||||
}
|
||||
|
||||
SigSpec sample(Cell *cell)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue