Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Unfamiliar VHDL | operator

Status
Not open for further replies.

shaiko

Advanced Member level 5
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top