on-internet
← Community

Looping instances in hierarchical path

Stack Overflow ·

I am trying to load a text file (256 lines with 32 binary values) in register. But, my registers are designed hierarchically, so I am trying to to do the following loop: reg [31:0] data [0:255]; initial $readmemb("vectors.txt", data); generate for (j=0; j<32; j=j+1) begin: BLOCK assign ITR_MAC_AF.IAF.IREG3_31_.IREG2_7_.IREG[j]=data[0]; end endgenerate But, it doesn't like it is looping through instances. Is there any fix for this? I have 32 IREG_3 instances, each IREG3 has 8 IREG2 and each IREG has 32 latches inside them.

Comments

Sign in or sign up to comment and upvote.

No comments yet.