Let (R,𝔪) be a commutative Noetherian local ring, let I be an ideal of R and let M and N be finitely generated R-modules. Assume that , . First, we give the formula for the attached primes of the top generalized local cohomology module HId+n(M,N); later, we prove that if Att(HId+n(M,N))=Att(HJd+n(M,N)), then HId+n(M,N)=HJd+n(M,N).