assign dc_avg = dc_avg1[12:2] + dc_avg2[12:3] + dc_avg3[12:3];
2592>>3+2592>>2+2592>>3 == 2592/2
2592*(1>>3+1>>3+1>>2)
=2592*(1/8+1/8+1/4) =2592*(1/2)右移一位相当于除以2,左移一位相当于乘以2
本文共 221 字,大约阅读时间需要 1 分钟。
assign dc_avg = dc_avg1[12:2] + dc_avg2[12:3] + dc_avg3[12:3];
2592>>3+2592>>2+2592>>3 == 2592/2
2592*(1>>3+1>>3+1>>2)
=2592*(1/8+1/8+1/4) =2592*(1/2)右移一位相当于除以2,左移一位相当于乘以2
转载于:https://my.oschina.net/u/2252538/blog/819349