mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-22 23:44:35 +00:00
Transform "$.*" to ID("$.*") in passes/techmap
This commit is contained in:
parent
4cfefae21e
commit
9f98241010
24 changed files with 356 additions and 361 deletions
|
@ -82,7 +82,7 @@ struct NlutmapWorker
|
|||
|
||||
for (auto cell : module->cells())
|
||||
{
|
||||
if (cell->type != "$lut" || mapped_cells.count(cell))
|
||||
if (cell->type != ID($lut) || mapped_cells.count(cell))
|
||||
continue;
|
||||
|
||||
if (GetSize(cell->getPort("\\A")) == lut_size || lut_size == 2)
|
||||
|
@ -119,7 +119,7 @@ struct NlutmapWorker
|
|||
|
||||
if (config.assert_mode) {
|
||||
for (auto cell : module->cells())
|
||||
if (cell->type == "$lut" && !mapped_cells.count(cell))
|
||||
if (cell->type == ID($lut) && !mapped_cells.count(cell))
|
||||
log_error("Insufficient number of LUTs to map all logic cells!\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue