In general, digital components are placed together as much as possible to reduce the line length and noise. However, if it is a signal wiring with timing requirements, the layout needs to be adjusted according to the line length and structure, which should be determined by simulation.