This suggestion is followed in Opentitan
Good Example:
Covergroup cg;
Bit x;
Cp_name: coverpoint x {
Bins zero = {0};
Bins one = {1};
}
endgroup
Bad Examples:
Covergroup cg;
Bit x;
Cp_name: coverpoint x {
Bins zero = {0};
Bins one = {1};
}
Endgroup
Covergroup cg;
Bit x;
Cp_name: coverpoint x {Bins zero = {0};
Bins one = {1};
}
Endgroup
Covergroup cg;
Bit x;
Cp_name: coverpoint x {Bins zero = {0};
Bins one = {1};}
Endgroup