?? bench_parameters.h
字號:
#ifndef BENCH_PARAMETERS_H
#define BENCH_PARAMETERS_H
#define OK 1
#define ERROR 0
/* parameters for sender */
#define SUBCARRIERS 2048
#define CP_LENGTH 256
#define PILOT_LENGTH 256
#define DATA_SUBC_LEN 1750
#define FREQ_GUARD_LEN 24
#define PILOT_PHASE 3
#define PILOT_GAP 8
#define MODULATE_ORDER 2
#define TOTAL_BIT_PER_SYM MODULATE_ORDER*DATA_SUBC_LEN
/* parameters for receiver */
#define MST_TAP_LEN 8 //NUM_MULTIPATH + 2
#define FD_FILT_ENTA 0.9
#define inter_K 6
#define repeat_M 10
#define poly_g 3
#define sub_clk_size inter_K*repeat_M
/* parameters for channel */
#define CHNANNEL_COST207 1
#define U_SPECTRUM 1
//#define FD_CACULATE 1
#define FD_NORMALIZE 0.2
#define NUM_MULTIPATH 6
#define MAX_DELAY 10.0e-6 // s
#define CH_DOPPLER_FREQ 30 // Hz
#define CH_SAMPLE_RATE 20.0e6 // Hz
#define CH_CARRIER_FREQ 3.2e9 // Hz
#define CH_MOBILE_SPEED 5 // km/hr
#define CH_FILTER_LEN 256
#define CH_INTERPOLATE_LEN 10
#define CH_INTERPOLATE_NUM 11
#define CH_WINDOW HAMMING
#define CH_IF_NORMALIZE "yes"
#define CH_IF_INTERPOLATE "yes"
#define SNR 0.0 // dB
#define SIGNAL_POWER 0.008608818054199219 //QPSK
//#define SIGNAL_POWER 0.005270957946777344 //QAM
#define CHANNEL_DELAY 0.0 // [0, SUBCARRIERS+CP_LENGTH)
#define SNR_INI 0.0 // dB
static double vec_delay_t[12] = {0, 0.3e-6, 8.9e-6, 12.9e-6, 17.1e-6, 20.0e-6, 0, 0, 0, 0, 0, 0}; // s
static double vec_power_db[12] = {-2.5, 0, -12.8, -10.0, -25.2, -16.0, 0, 0, 0, 0, 0, 0}; // dB
/* parameters for debug */
#define error_file "e:\\shaen_work\\chn_estimate4\\logfile\\log_error"
#define matrix_file "E:\\ljl\\channel_esti_ofdm\\channel estimation\\calculate_matrix.txt"
#define tmp_file "E:\\ljl\\channel_esti_ofdm\\channel estimation\\tmp_file.txt"
#define source_file "E:\\ljl\\channel_esti_ofdm\\channel estimation\\source_file.txt"
#define target_file "E:\\ljl\\channel_esti_ofdm\\channel estimation\\target_file.txt"
#define target1_file "E:\\ljl\\channel_esti_ofdm\\channel estimation\\target1_file.txt"
#define target2_file "E:\\ljl\\channel_esti_ofdm\\channel estimation\\target2_file.txt"
#define LOG_POLY_BER_LS "E:\\ljl\\channel_esti_ofdm\\channel estimation\\ber_ls"
#define LOG_POLY_BER_MST "E:\\ljl\\channel_esti_ofdm\\channel estimation\\ber_mst"
#define LOG_POLY_BER_STP1 "E:\\ljl\\channel_esti_ofdm\\channel estimation\\ber_stp1"
#define LOG_POLY_BER_STP2 "E:\\ljl\\channel_esti_ofdm\\channel estimation\\ber_stp2"
#define LOG_POLY_BER_IDEAL "E:\\ljl\\channel_esti_ofdm\\channel estimation\\ber_ideal"
#define LOG_POLY_MSE_MST "E:\\ljl\\channel_esti_ofdm\\channel estimation\\mse_mst"
#define LOG_POLY_MSE_STP1 "E:\\ljl\\channel_esti_ofdm\\channel estimation\\mse_stp1"
#define LOG_POLY_MSE_STP2 "E:\\ljl\\channel_esti_ofdm\\channel estimation\\mse_stp2"
#define LOG_POLY_MSE_LS "E:\\ljl\\channel_esti_ofdm\\channel estimation\\mse_ls"
//#define LOG_TAP_LS "e:\\shaen_work\\chn_estimate4\\logfile\\fd200\\tap_ls_0db"
//#define LOG_TAP_MST "e:\\shaen_work\\chn_estimate4\\logfile\\fd200\\tap_mst_0db"
//#define LOG_TAP_STP1 "e:\\shaen_work\\chn_estimate4\\logfile\\fd200\\tap_stp1_0db"
//#define LOG_TAP_STP2 "e:\\shaen_work\\chn_estimate4\\logfile\\fd200\\tap_stp2_0db"
#define LOG_TAP_TRUE "E:\\ljl\\channel_esti_ofdm\\c\\channel\\channel_bak\\tap_true_fd30"
/* global */
extern Ovector Data_Buff;
//extern RayParams ray_params_1[12];
extern RayParams ray_params_1;
extern GauParams gauss_params_1;
extern FreqParams freq_params_1;
extern double Noise_Sigma;
extern double Ch_Norm_Factor; // factor used to normalize channel gain
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -