Unfamiliar VHDL | operator

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Activity points
18,302
Hello,

What does the VHDL '|' (like bitwise or in C) operator do ?
 

Its not an operator.
It allows you to select multiple cases with case or with..select statements:


Code VHDL - [expand]
1
2
3
4
5
6
7
8
9
10
signal a : integer;
 
....
 
case a is
  when 0 =>
  when 1 to 14 =>
  when 15 | 20 | 25 =>
  when others => 
end case;

 
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…