eafox
Newbie level 3
- Joined
- Apr 2, 2013
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,298
How can I apply XOR between the bits in a word if I don't know its length beforehand?
For example if the word is 1101 then i want to calculate:
In a higher level language probably I would use a loop, but I don't know how to do it in VHDL and if it's synthesizable.
Thanks,
Edson
For example if the word is 1101 then i want to calculate:
Code:
result <= word(3) xor word (2) xor word (1) xor word(0);
In a higher level language probably I would use a loop, but I don't know how to do it in VHDL and if it's synthesizable.
Thanks,
Edson