searching in memory at verilog
reg [1:0] nxt_address;
...
while (nxt_address &lt;4) begin


nxt_address is a 2-bit value. It can contain the numbers 0, 1, 2 and 3.  Therefore it will always be less than 4.

Which is exactly what the error is saying.