Skip to content
Extraits de code Groupes Projets
Valider 3fcff354 rédigé par Pol Maistriaux's avatar Pol Maistriaux
Parcourir les fichiers

Merge branch 'master' into 'main'

First commit

See merge request !1
parents becd8060 6326d2cd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!1First commit
*.txt
\ No newline at end of file
Ce diff est replié.
Ce diff est replié.
Fichier ajouté
Fichier ajouté
#fs = 125e3
#B=125e3
#n_os = int(fs//B)
#SF=7
#NSF=2**SF
#snr_test = np.array([-50, 50,50,50,50])
#initial_noise_var, noise_var, symbols, reshaped_symbols,downchirp, in_array= create_symbol_and_noise(snr_test, Ntrials_atSNR, noise_std, A, add_noise, fix_noise, noise_only, SF, NSF, N, Q, Ncore, Qcore, offset, fs, B, nonIdealRandom, theta, cfo, sto, sfo_ppm, symbolType="upchirp")
#
#t= np.linspace(start = 0, stop=NSF*Ts, num=NSF, endpoint=False)
#
#figsize=(12,4)
#plt.figure(figsize=figsize)
#plt.plot(np.arange(len(in_array)),np.real(in_array), color = '#6aa6dd', label = "Real")
##plt.plot(np.arange(len(in_array)),np.imag(in_array), color = "red" , label = "Imag")
#plt.title("Input vector")
#plt.xlabel("Time")
#plt.ylabel("Amplitude")
#
#
#downchirp = np.conjugate(in_array[1*(NSF*n_os): 2*NSF*n_os])
#offset_time = n_os * 3
#index_dechirped = np.arange(start=offset_time, stop=(len(snr_test)-1)*n_os*NSF +offset_time)
#dechirped = np.zeros(len(in_array), dtype=np.complex64)
#for i,snri in enumerate(snr_test[:-1]):
# print((offset_time+i*(n_os*NSF)))
# print((offset_time+(i+1)*(n_os*NSF)))
# dechirped[(offset_time+i*(n_os*NSF)) : (offset_time+(i+1)*(n_os*NSF))] = in_array[(offset_time+ i*(n_os*NSF)) : (offset_time+ (i+1)*(n_os*NSF))] * downchirp
# #dechirped[(offset_time+i*(n_os*NSF)) : ((i+1)*(n_os*NSF))] = in_array[(offset_time+ i*(n_os*NSF)) : ( (i+1)*(n_os*NSF))] * downchirp[0 : (n_os*NSF)- offset_time]
# #dechirped[( (i+1)*(n_os*NSF)) : (offset_time+(i+1)*(n_os*NSF))] = in_array[( (i+1)*(n_os*NSF)) : (offset_time+ (i+1)*(n_os*NSF))] * downchirp[(n_os*NSF)- offset_time : (n_os*NSF)]
#print(len(downchirp))
#
#
#figsize=(12,4)
#plt.figure(figsize=figsize)
##plt.plot(np.arange(len(in_array)),np.real(in_array), color = "red", label = "Real")
#plt.plot(np.arange(len(in_array)),np.real(dechirped), color = "#92ca14", label = "Real")
##plt.plot(np.arange(len(in_array)),np.imag(in_array), color = "red" , label = "Imag")
#plt.title("Input vector")
#plt.xlabel("Time")
#plt.ylabel("Amplitude")
#
\ No newline at end of file
Ce diff est replié.
parameter [11:0] TF_ARRAY_R [0:31] = {12'sh7ff,12'sh7f6,12'sh7d9,12'sh7a8,12'sh764,12'sh70e,12'sh6a7,12'sh62f,12'sh5a8,12'sh513,12'sh472,12'sh3c5,12'sh310,12'sh253,12'sh190,12'sh0c9,12'sh000,12'shf37,12'she70,12'shdad,12'shcf0,12'shc3b,12'shb8e,12'shaed,12'sha58,12'sh9d1,12'sh959,12'sh8f2,12'sh89c,12'sh858,12'sh827,12'sh80a};
parameter [11:0] TF_ARRAY_I [0:31] = {12'sh000,12'shf37,12'she70,12'shdad,12'shcf0,12'shc3b,12'shb8e,12'shaed,12'sha58,12'sh9d1,12'sh959,12'sh8f2,12'sh89c,12'sh858,12'sh827,12'sh80a,12'sh801,12'sh80a,12'sh827,12'sh858,12'sh89c,12'sh8f2,12'sh959,12'sh9d1,12'sha58,12'shaed,12'shb8e,12'shc3b,12'shcf0,12'shdad,12'she70,12'shf37};
\ No newline at end of file
Ce diff est replié.
parameter [11:0] DOWNCHIRP_ARRAY_R [0:31] = {12'sh7ff,12'sh802,12'sh7d9,12'sh8c5,12'sh5a8,12'shd4e,12'she70,12'sh5ed,12'sh801,12'sh55f,12'sh190,12'sh878,12'sh5a8,12'sh36c,12'sh827,12'shf9c,12'sh7ff,12'sh064,12'sh827,12'shc94,12'sh5a8,12'sh788,12'sh190,12'shaa1,12'sh801,12'sha13,12'she70,12'sh2b2,12'sh5a8,12'sh73b,12'sh7d9,12'sh7fe};
parameter [11:0] DOWNCHIRP_ARRAY_I [0:31] = {12'sh000,12'sh064,12'she70,12'sh36c,12'sha58,12'sh788,12'sh827,12'sh55f,12'sh000,12'sha13,12'sh7d9,12'shd4e,12'sha58,12'sh73b,12'sh190,12'sh802,12'sh000,12'sh7fe,12'sh190,12'sh8c5,12'sha58,12'sh2b2,12'sh7d9,12'sh5ed,12'sh000,12'shaa1,12'sh827,12'sh878,12'sha58,12'shc94,12'she70,12'shf9c};
\ No newline at end of file
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
Ce diff est replié.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter