I want to do bit by bit xor with same input vector like:
input(0) xor input(2) xor input(3)
up to input(187)
.
The answer I get is like:
output(0) downto output (94)
This means I have to do xor
successively. If I have 10
input bits, the last answer I get is 5
bit output. Its very difficult and not a good approach to write the whole vector.
Does anyone knows how to write a efficient code of this in vhdl?
I have a idea how to do it. First extract even index bits, then odd index bits and do xor
but no luck please help me.