On the topological structure of a finitely generated semigroup of matrices