In reply to rohit_kumar:
after using “iff” it worked, but can you explain why the earlier code with
@(posedge clk[j]_in) if(enable[j]==1) begin
was not working.
Because it only checks enable[j] once at the first clock cycle and the process terminates after that.