Access a module in generate block hierarchy

In reply to SandipGajera:
The code inside a generate-for loop gets unrolled and the scopes it creates are not like an array that you can index with a variable. Please see accessing task of generate block using hierarchy path | Verification Academy