I want to use a for
loop in Verilog to get from binary 0000000 to 0011111. I have a problem with the increment part of the for
loop. How should I exactly move to get to the 0011111?
I tried the following code, but it gives me an error.
for(DATA_IN=7'b0000000; DATA_IN<=7'b0011111; 1<<DATA_IN);
question from:https://stackoverflow.com/questions/65927030/for-loop-with-binary-numbers