Why is this an issue?

An entity and its related architectures should be defined within the same file to make the code easier to read and understand.

How to fix it

Code examples

Noncompliant code example

entity e1 is
end;

architecture a1 of e is
begin
end;

architecture a2 of e2 is -- Noncompliant: 'a2' architecture is not defined within the same file as 'e2' entity
begin
end;

Resources

Related rules