Skip to content

Curly braces in coverpoints must close with the first character of the coverpoint name #80

@antmarzam

Description

@antmarzam

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


Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions