Why is this an issue?

Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all file names match a provided regular expression.

Note that {DESIGN_UNIT} placeholder can be used in regular expression. For instance: ^{DESIGN_UNIT}[a-z_]*\\.(v|sv)$ means that the name of the file should start with the name of the design unit it defines and additional characters after the name of the design unit are allowed.

How to fix it

Code examples

Noncompliant code example

With default regular expression for single-unit file: ^{DESIGN_UNIT}\\.(v|sv)$

File name: fly.v

module dream;
  ...
endmodule : dream

Compliant solution

With default regular expression for single-unit file: ^{DESIGN_UNIT}\\.(v|sv)$

File name: dream.v

module dream;
  ...
endmodule : dream

Resources

Articles & blog posts