Forum Discussion
4 Replies
- Altera_Forum
Honored Contributor
you can access any bits in A:
if A(3 downto 0) = B then --etc - Altera_Forum
Honored Contributor
Thanks Tricky. It worked. =)
But how about if I want to read only 1 bit? Say, there's 01010101 and I want to read the 4th bit. Thanks. - Altera_Forum
Honored Contributor
assuming A is declared something like:
A : in std_logic_vector(7 downto 0); op <= A(3); - Altera_Forum
Honored Contributor
thank Tricky! this helped so much. :)