mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Use IdString::begins_with()
This commit is contained in:
parent
a6bc9265fb
commit
e38f40af5b
5 changed files with 30 additions and 28 deletions
|
@ -297,7 +297,7 @@ struct FirrtlWorker
|
|||
std::string cell_type = fid(cell->type);
|
||||
std::string instanceOf;
|
||||
// If this is a parameterized module, its parent module is encoded in the cell type
|
||||
if (cell->type.substr(0, 8) == "$paramod")
|
||||
if (cell->type.begins_with("$paramod"))
|
||||
{
|
||||
std::string::iterator it;
|
||||
for (it = cell_type.begin(); it < cell_type.end(); it++)
|
||||
|
@ -776,7 +776,7 @@ struct FirrtlWorker
|
|||
}
|
||||
|
||||
// This may be a parameterized module - paramod.
|
||||
if (cell->type.substr(0, 8) == "$paramod")
|
||||
if (cell->type.begins_with("$paramod"))
|
||||
{
|
||||
process_instance(cell, wire_exprs);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue