Thx for ur reply.
Still have another question. Is it abnormal that I intend to use latch in the circuit? I am really lack of hardware component.
ANother thing is I use a multidimensional memory to store something.
For eg.
reg[5:0] a[0:5][0:5];
I just want if array any index j of a[1][j] != 5'b00000, then output 1;
else output zero.