@John Fredsted thank you again, but what i want is I only want to crossover the certain bit in one block with another block. for example: the code as below,
for i from 1 to 4 do // execute for block 1 until block 4
for j from 3 to 5 do // crossover certain bit with the next block
end do; end do;
original block: [0,0,1,1,0,0,1], [0,0,1,1,1,0,0],[0,1,0,1,0,1,0], [1,0,0,1,1,1,0]
The output for the first block might be like this: in this case the third bit until the fifth bit in the first block will crossover with the third bit until the fifth bit in the second block.
By using the code I write above, i manage to get the output as below:
block:=[1,0,block,block,block,1,0] // error occur because i dont have the fifth block in the original block.
So what i need is the last block will crossover with the third bit until the fifth bit in the first block. So, what can I do?