Connecting n bit bus from one component to another
You can put the components A and B in a new component (e.g. AB) and instantiate that new component n times with a generate.

gen: for i in 1 to 64 generate

   i_ab: entity work.ab
      port map(
          ....
          ); 

end generate gen;