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

cmdref: Assigning cmds to formal group

Give formal index a proper title.
Use `Pass::formatted_help()` to assign the group, but still return `false` because the help text still comes from `Pass::help()`.
Tidy up some of the affected files' includes to make use of the shared `yosys.h` includes.
This commit is contained in:
Krystine Sherwin 2025-03-21 10:26:12 +13:00
parent a74aeb1301
commit d1d419cb51
No known key found for this signature in database
19 changed files with 117 additions and 22 deletions

View file

@ -18,7 +18,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
#include "kernel/yosys.h"
#include "kernel/log_help.h"
YOSYS_NAMESPACE_BEGIN
@ -179,6 +181,12 @@ void SynthPropWorker::run()
struct SyntProperties : public Pass {
SyntProperties() : Pass("synthprop", "synthesize SVA properties") { }
bool formatted_help() override {
auto *help = PrettyHelp::get_current();
help->set_group("formal");
return false;
}
virtual void help()
{
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|