digital: if pre_diff_code is not used, use [0, M-1] as the code in soft decison calculation.