add a code to generate fixed-length CDMA