anusha vasanta
Member level 1
- Joined
- Sep 23, 2014
- Messages
- 34
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Activity points
- 251
Hi all,
is there any way to do the instantiation inside always block, here i had a code which had a tmp_reg first it should have one value and next it should take some other how could it be possible for this generate block
is there any way to do the instantiation inside always block, here i had a code which had a tmp_reg first it should have one value and next it should take some other how could it be possible for this generate block
Code:
genvar m;
generate
for(m=0;m<BLOCKS;m=m+1)
begin :RAM4
assign tmp_reg=mic_h2_result;
assign block_data[m]=data_new[(m*128)+127:(m*128)];
assign block_out[m]=(tmp_reg^block_data[m]);
Top_PipelinedCipher ROM4(clk,reset,data_valid_in,key_valid_in,key,block_out[m],valid_out,block_result[m]);
assign tmp_reg=block_result[m];
end
endgenerate