reg [15:0] a,b,ans;ans = (a+b)>>1;//式1ans = (a+b+0)>>1;//式2其中式1可能会出错,式2不会出错。 转载于:https://www.cnblogs.com/beinghu2/archive/2009/08/15/1546777.html