Variable "x" is driven by multiple structural drivers

In reply to sj1992:

Are you getting a compilation error? Runtime error? It’s hard to determine what your question is.

Why are you using a generate loop? Why not just a simple assignment?