Table 5: Truth table representing the next states and the modified next states of a four-bit serial-in serial-out right-shift register [43].

Present stateNext stateModified next state

00000 0000 0000
00001 0000 0001
00010 0001 0011
00011 0001 0010
00100 0010 0110
00101 0010 0111
00110 0011 0101
00111 0011 0100
01000 0100 1100
01001 0100 1101
01010 0101 1111
01011 0101 1110
01100 0110 1010
01101 0110 1011
01110 0111 1001
01111 0111 1000
10000 1000 1000
10001 1000 1001
10010 1001 1011
10011 1001 1010
10100 1010 1110
10101 1010 1111
10110 1011 1101
10111 1011 1100
11000 1100 0100
11001 1100 0101
11010 1101 0111
11011 1101 0110
11100 1110 0010
11101 1110 0011
11110 1111 0001
11111 1111 0000