//## number of bits of the modulator nbit = 14 //## integer word length typ = 3 //int32 //## define input sin amplitude Ampl = 2^(nbit-1) //## define input sin freq Tsin = 2.2e-3 Fsin = 1/Tsin //## sample period Te = Tsin/100 //## var for spectrum analyzer fftsize = 8192 winl = 2048 nm = 256 //## simulation time simulation Tfin = (winl*nm*1.1)*Te