|
发表于 2012-10-31 00:05:55
|
显示全部楼层
别的地方看到的答案
Q: What is the difference between:
c = foo ? a : b;
and
if (foo) c = a;
else c = b;
A: The ? merges answers if the condition is "x", so for instance if foo = 1'bx, a =
you'd get c = 'bx. On the other hand, if treats Xs or Zs as FALSE, so you'd always get c = b. |
|