@@ -1044,16 +1044,23 @@ void dump_cell_expr_print(std::ostream &f, std::string indent, const RTLIL::Cell
10441044void dump_cell_expr_check (std::ostream &f, std::string indent, const RTLIL::Cell *cell)
10451045{
10461046 std::string flavor = cell->getParam (ID (FLAVOR)).decode_string ();
1047+ std::string label = " " ;
1048+ if (cell->name .isPublic ()) {
1049+ label = stringf (" %s: " , id (cell->name ).c_str ());
1050+ }
1051+
10471052 if (flavor == " assert" )
1048- f << stringf (" %s" " assert (" , indent.c_str ());
1053+ f << stringf (" %s" " %s " " assert (" , indent. c_str (), label .c_str ());
10491054 else if (flavor == " assume" )
1050- f << stringf (" %s" " assume (" , indent.c_str ());
1055+ f << stringf (" %s" " %s " " assume (" , indent. c_str (), label .c_str ());
10511056 else if (flavor == " live" )
1052- f << stringf (" %s" " assert (eventually " , indent.c_str ());
1057+ f << stringf (" %s" " %s " " assert (eventually " , indent. c_str (), label .c_str ());
10531058 else if (flavor == " fair" )
1054- f << stringf (" %s" " assume (eventually " , indent.c_str ());
1059+ f << stringf (" %s" " %s " " assume (eventually " , indent. c_str (), label .c_str ());
10551060 else if (flavor == " cover" )
1056- f << stringf (" %s" " cover (" , indent.c_str ());
1061+ f << stringf (" %s" " %s" " cover (" , indent.c_str (), label.c_str ());
1062+ else
1063+ log_abort ();
10571064 dump_sigspec (f, cell->getPort (ID::A));
10581065 f << stringf (" );\n " );
10591066}
0 commit comments