Forum Discussion
3 Replies
- Altera_Forum
Honored Contributor
in VHDL you can use the ** operator to get x^y
like this: a <= b ** c; where a, b and c are all integer. But if you want to synthesize it, one of either the B or C values needs to be a constant. - Altera_Forum
Honored Contributor
Thank u sir.
One more doubt is any symblols to do logical operations like and or exor like C programming.... greetings sir - Altera_Forum
Honored Contributor
a <= b xor c;
but you cant do logic operations on integers, because they are not logic types. you have to do them on std_logic/vector/signed/unsigned.