3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

chformal: Rename -coverprecond to -coverenable

This commit is contained in:
George Rennie 2022-06-18 18:28:12 +01:00
parent e39c422734
commit 5dfad5101d
2 changed files with 7 additions and 7 deletions

View file

@ -55,8 +55,8 @@ struct ChformalPass : public Pass {
log(" -skip <N>\n"); log(" -skip <N>\n");
log(" ignore activation of the constraint in the first <N> clock cycles\n"); log(" ignore activation of the constraint in the first <N> clock cycles\n");
log("\n"); log("\n");
log(" -coverprecond\n"); log(" -coverenable\n");
log(" add a cover statement for the precondition (enable signal) of the cells\n"); log(" add cover statements for the enable signals of the constraints\n");
log("\n"); log("\n");
log(" -assert2assume\n"); log(" -assert2assume\n");
log(" -assume2assert\n"); log(" -assume2assert\n");
@ -117,7 +117,7 @@ struct ChformalPass : public Pass {
mode_arg = atoi(args[++argidx].c_str()); mode_arg = atoi(args[++argidx].c_str());
continue; continue;
} }
if (mode == 0 && args[argidx] == "-coverprecond") { if (mode == 0 && args[argidx] == "-coverenable") {
mode = 'p'; mode = 'p';
continue; continue;
} }
@ -273,7 +273,7 @@ struct ChformalPass : public Pass {
if (mode =='p') if (mode =='p')
{ {
for (auto cell : constr_cells) for (auto cell : constr_cells)
module->addCover(NEW_ID_SUFFIX("coverprecond"), module->addCover(NEW_ID_SUFFIX("coverenable"),
cell->getPort(ID::EN), State::S1, cell->get_src_attribute()); cell->getPort(ID::EN), State::S1, cell->get_src_attribute());
} }
else else

View file

@ -15,11 +15,11 @@ prep -top top
select -assert-count 1 t:$cover select -assert-count 1 t:$cover
chformal -cover -coverprecond chformal -cover -coverenable
select -assert-count 2 t:$cover select -assert-count 2 t:$cover
chformal -assert -coverprecond chformal -assert -coverenable
select -assert-count 4 t:$cover select -assert-count 4 t:$cover
chformal -assume -coverprecond chformal -assume -coverenable
select -assert-count 5 t:$cover select -assert-count 5 t:$cover