[SOLVED] logic operation of two VECTORs

Status
Not open for further replies.
A

ahmadagha23

Guest
Hi
How can I "XOR" corresponding bits of two std_logic vectors by each other? Is it required to write a function?
 

ahmadagha23 said:
Hi
How can I "XOR" corresponding bits of two std_logic vectors by each other? Is it required to write a function?

Hi
you can separately xor each bit.
i.e d(0) xor a(0).
 

You can use the xor for vectors:

xxor<= a xor b;
all above being st_logic_vectors...
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…