问:论文里“A 4-bit 15-level uniform quantizer was then used in the design. The quantizer step Δ is 1/7.The middle quantization level is 0 and the other levels are 士kΔ, k=1 to 7.The quantizer has two outputs, the feedback output and a 4-bit unsigned integer which values from 0 to 14 corresponding to the 15 quantization levels.
量化有两种方法:当需要减少字长时,可以直接截取(truncate)需要的位数,再将多余的位扔掉; 也可以用舍入(rounding)的方法,在所需字长的后一位加1,再从所得的新数值中截取所需的长度。舍入的方法相当于“四舍五入”,在量化大量数据时,平均精确度比直接截取好。”
想请教一下,如果输入18bit有符号数,4位量化,怎么实现15个量化台阶?