在verilog中使用clogb2函数可进行log2操作,用来计算数据位宽
//function called clogb2 that returns an integer which has the//value of the ceiling of the log base 2.function integer clogb2 (input integer bit_depth);beginfor(clogb2=0; bit_depth>0;