Determine in detail about the VHDL
Multiple design-units (entity/architecture pairs), which reside in the same system file, may be separately compiled if so desired. Though, it's good design practice to keep each design unit in it's own system file in which case separate compilation must not be an issue.