pkoti83
Newbie level 5
- Joined
- Oct 22, 2013
- Messages
- 10
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 94
In verilog design, we have ?: operator and if..else statement.
for ex: c = foo ? a:b
for ex: if (foo)
c = a;
else
c = b;
which one of the above code is preferable in verilog design prospective
- - - Updated - - -
and what is the difference between them.
Shall i use ?: operator in design rather than if..else . If Yes, why?
for ex: c = foo ? a:b
for ex: if (foo)
c = a;
else
c = b;
which one of the above code is preferable in verilog design prospective
- - - Updated - - -
and what is the difference between them.
Shall i use ?: operator in design rather than if..else . If Yes, why?