tahirsengine
Member level 3
- Joined
- May 7, 2007
- Messages
- 66
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 1,288
- Location
- Germany
- Activity points
- 1,929
The difference between '|' operator and keyword 'or'
Hi,
I have noticed that in Verilog literature, the symbol '|' is often used for OR operations. But at some other places the keyword 'or' is also used.
In most of the always blocks, the keyword 'or' is used, and in if statements, either '|' is used or '||' is used.
So functionally, what is the difference between the two, and where to use what.
Hi,
I have noticed that in Verilog literature, the symbol '|' is often used for OR operations. But at some other places the keyword 'or' is also used.
In most of the always blocks, the keyword 'or' is used, and in if statements, either '|' is used or '||' is used.
So functionally, what is the difference between the two, and where to use what.
Last edited: