计算输入值的位宽函数 function integer clogb2 (input integer bit_depth); begin for(clogb2 = 0;bit_depth > 0;clogb2 = clogb2 + 1) bit_depth = bit_depth >>