3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 09:05:32 +00:00

chformal: Test -coverprecond and reuse the src attribute

This commit is contained in:
Jannis Harder 2022-05-31 17:47:07 +02:00 committed by George Rennie
parent c659bd1878
commit e39c422734
2 changed files with 27 additions and 2 deletions

View file

@ -273,8 +273,8 @@ struct ChformalPass : public Pass {
if (mode =='p')
{
for (auto cell : constr_cells)
module->addCover(NEW_ID, cell->getPort(ID::EN), State::S1,
"$auto$coverprecond$" + cell->get_src_attribute());
module->addCover(NEW_ID_SUFFIX("coverprecond"),
cell->getPort(ID::EN), State::S1, cell->get_src_attribute());
}
else
if (mode == 'c')