Archived
change online acq pn code length, change 814 online acq to the same
修改了在线捕获程序的PN码长和频偏搜索步进,修改了地检发送程序的PN码长,使用对飞相控阵进行了测试,得到正确结果;将程序移植到814平台,同样能够正常工作;对地检程序(20230512),对飞程序(20230512)和814程序(20230415)进行归档
This commit is contained in:
@@ -167,7 +167,7 @@ module system_top
|
||||
inout debug_io_1 ,
|
||||
inout debug_io_2 ,
|
||||
// 3.3v ports
|
||||
inout debug_io_3 ,
|
||||
input debug_io_3 ,
|
||||
inout debug_io_4 ,
|
||||
inout debug_io_5 ,
|
||||
inout debug_io_6 ,
|
||||
@@ -572,7 +572,11 @@ wire [31:0] freq_set ;
|
||||
wire [ 1:0] iq_sel ;
|
||||
wire [ 3:0] bb_rshift ;
|
||||
|
||||
tx_qpsk u_tx_qpsk
|
||||
tx_qpsk #(
|
||||
.BIT_DATA (1024'b0000000100100010000011001001101000010010101000011110101110101101101100000000110000011011001100001010110101110001101111110001000111100111101101101000000010100001011010101000111110111100100101100000100110010001010001101101110000001111000111011111110010000110001011011101000011010101100111100101101100100000100010010011000000101100010100111011001110001011111101010001011101101011000011001101101010000011101001111010011010100100111000001111100111001101111010001010101101111100001001110100011101011111011010010000100001010010101100011100111111101100001000110100111001001111000011011101100011000111101111101001001010000001101000110010111010010110100010001011001101001010010001100001110110111100000101110010101110011101110111001100111010101110111101100101000100110110001000011100101111100101001100110010101010011111100110001101011110011010110100110001001011100001011110101010101111111101000001010100101111000101011110111010100110111001000111000111111111100000001110000111111011100010011111000110011111010110010110010010010000000001),
|
||||
.BIT_DATA_LEN (1024),
|
||||
.CLK_FREQ (48000000)
|
||||
) u_tx_qpsk
|
||||
(
|
||||
.clk (sys_clk ), // input clk
|
||||
.rst (sys_rst ), // input rst
|
||||
@@ -677,6 +681,7 @@ wire freq_comp_auto_enable_vio;
|
||||
wire freq_comp_start_vio;
|
||||
wire freq_comp_busy ;
|
||||
wire [7:0] dmf_num_per_ch ;
|
||||
wire dmf_continuous ;
|
||||
wire [31:0] freq_manual ;
|
||||
wire freq_manual_en ;
|
||||
wire [31:0] freq_target ;
|
||||
@@ -686,30 +691,31 @@ wire ch_peak_valid ;
|
||||
wire [17:0] ch1_peak_value_abs ;
|
||||
wire [17:0] ch1_peak_value_i ;
|
||||
wire [17:0] ch1_peak_value_q ;
|
||||
wire [ 9:0] ch1_peak_index ;
|
||||
wire [10:0] ch1_peak_index ;
|
||||
wire [17:0] ch2_peak_value_abs ;
|
||||
wire [17:0] ch2_peak_value_i ;
|
||||
wire [17:0] ch2_peak_value_q ;
|
||||
wire [ 9:0] ch2_peak_index ;
|
||||
wire [10:0] ch2_peak_index ;
|
||||
wire [17:0] ch3_peak_value_abs ;
|
||||
wire [17:0] ch3_peak_value_i ;
|
||||
wire [17:0] ch3_peak_value_q ;
|
||||
wire [ 9:0] ch3_peak_index ;
|
||||
wire [10:0] ch3_peak_index ;
|
||||
wire [17:0] ch4_peak_value_abs ;
|
||||
wire [17:0] ch4_peak_value_i ;
|
||||
wire [17:0] ch4_peak_value_q ;
|
||||
wire [ 9:0] ch4_peak_index ;
|
||||
wire [10:0] ch4_peak_index ;
|
||||
|
||||
assign freq_comp_start = (freq_comp_auto_enable_vio == 1'b1) ? freq_comp_start_auto : freq_comp_start_vio;
|
||||
|
||||
freq_comp #(
|
||||
.FREQ_WORD_LOWER (-4194304 ),
|
||||
.FREQ_WORD_UPPER (4194303 ),
|
||||
.FREQ_WORD_LOWER (-1048576 ),
|
||||
.FREQ_WORD_UPPER (1048575 ),
|
||||
.FREQ_WORD_STEP (1024 )
|
||||
) u_freq_comp
|
||||
(
|
||||
// clock & reset
|
||||
.clk (sys_clk ), // input clk
|
||||
.clk_4x (sys_clk_4x ), // input clk_4x
|
||||
.rst (sys_rst ), // input rst
|
||||
|
||||
// input data
|
||||
@@ -728,6 +734,7 @@ freq_comp #(
|
||||
|
||||
// configuration
|
||||
.dmf_num_per_ch (dmf_num_per_ch ), // input [$clog2(MAX_DMF_NUM)-1 : 0] dmf_num_per_ch
|
||||
.dmf_continuous (dmf_continuous ),
|
||||
|
||||
.freq_manual (freq_manual ), // input [FREQ_WORD_WIDTH-1 : 0] freq_manual
|
||||
.freq_manual_en (freq_manual_en ), // input freq_manual_en
|
||||
@@ -760,7 +767,7 @@ freq_comp #(
|
||||
.ch4_peak_index (ch4_peak_index ) // output reg [$clog2(PRBS_POS-1) : 0] ch4_peak_index
|
||||
);
|
||||
|
||||
reg [9:0] chip_cnt = 'b0;
|
||||
reg [12:0] chip_cnt = 'b0;
|
||||
|
||||
always @(posedge sys_clk) begin
|
||||
if (sys_rst) begin
|
||||
@@ -884,23 +891,23 @@ ila_rf_auto_control u_ila_rf_auto_control
|
||||
.probe5 (u_rf_auto_switch_freq.freq_word_cnt ) // 8
|
||||
);
|
||||
|
||||
ila_AntCtrl u_ila_AntCtrl
|
||||
(
|
||||
.clk (clk_96m ), // input wire clk
|
||||
.probe0 (u_ant_rf_ctrl.ant_clk ), // input wire [0:0] probe0
|
||||
.probe1 (u_ant_rf_ctrl.ant_en ), // input wire [0:0] probe1
|
||||
.probe2 (u_ant_rf_ctrl.ant_data ), // input wire [0:0] probe2
|
||||
.probe3 (u_ant_rf_ctrl.ant_tr ), // input wire [0:0] probe3
|
||||
.probe4 (u_ant_rf_ctrl.ant_dary ), // input wire [0:0] probe4
|
||||
.probe5 (u_ant_rf_ctrl.ant_dout ), // input wire [0:0] probe5
|
||||
.probe6 (u_ant_rf_ctrl.state_antdata[1:0] ), // input wire [0:0] probe5
|
||||
.probe7 (u_ant_rf_ctrl.Ant_Ant_Volt[7:0] ), // input wire [0:0] probe5
|
||||
.probe8 (u_ant_rf_ctrl.Ant_RF_Volt[7:0] ), // input wire [0:0] probe5
|
||||
.probe9 (u_ant_rf_ctrl.Ant_IF_Volt[7:0] ), // input wire [0:0] probe5
|
||||
.probe10(u_ant_rf_ctrl.Ant_state[7:0] ), // input wire [0:0] probe5
|
||||
.probe11(u_ant_rf_ctrl.Ant_Framecount[31:0] ), // input wire [0:0] probe5
|
||||
.probe12(u_ant_rf_ctrl.Ant_RecvWord[95:0] ) // input wire [0:0] probe5
|
||||
);
|
||||
// ila_AntCtrl u_ila_AntCtrl
|
||||
// (
|
||||
// .clk (clk_96m ), // input wire clk
|
||||
// .probe0 (u_ant_rf_ctrl.ant_clk ), // input wire [0:0] probe0
|
||||
// .probe1 (u_ant_rf_ctrl.ant_en ), // input wire [0:0] probe1
|
||||
// .probe2 (u_ant_rf_ctrl.ant_data ), // input wire [0:0] probe2
|
||||
// .probe3 (u_ant_rf_ctrl.ant_tr ), // input wire [0:0] probe3
|
||||
// .probe4 (u_ant_rf_ctrl.ant_dary ), // input wire [0:0] probe4
|
||||
// .probe5 (u_ant_rf_ctrl.ant_dout ), // input wire [0:0] probe5
|
||||
// .probe6 (u_ant_rf_ctrl.state_antdata[1:0] ), // input wire [0:0] probe5
|
||||
// .probe7 (u_ant_rf_ctrl.Ant_Ant_Volt[7:0] ), // input wire [0:0] probe5
|
||||
// .probe8 (u_ant_rf_ctrl.Ant_RF_Volt[7:0] ), // input wire [0:0] probe5
|
||||
// .probe9 (u_ant_rf_ctrl.Ant_IF_Volt[7:0] ), // input wire [0:0] probe5
|
||||
// .probe10(u_ant_rf_ctrl.Ant_state[7:0] ), // input wire [0:0] probe5
|
||||
// .probe11(u_ant_rf_ctrl.Ant_Framecount[31:0] ), // input wire [0:0] probe5
|
||||
// .probe12(u_ant_rf_ctrl.Ant_RecvWord[95:0] ) // input wire [0:0] probe5
|
||||
// );
|
||||
|
||||
vio_rf_rd u_vio_rf_rd (
|
||||
.clk (clk_96m ), // input wire clk
|
||||
@@ -980,18 +987,19 @@ vio_manual_ctrl u_vio_manual_ctrl
|
||||
|
||||
vio_freq_comp u_vio_freq_comp
|
||||
(
|
||||
.clk (sys_clk ), // input wire clk
|
||||
.clk (sys_clk_4x ), // input wire clk
|
||||
.probe_in0 (freq_comp_busy ), // input wire [0 : 0] probe_in0
|
||||
.probe_out0 (freq_comp_start_vio ), // output wire [0 : 0] probe_out0
|
||||
.probe_out1 (dmf_num_per_ch ), // output wire [7 : 0] probe_out1
|
||||
.probe_out2 (freq_manual_en ), // output wire [0 : 0] probe_out2
|
||||
.probe_out3 (freq_manual ), // output wire [31 : 0] probe_out3
|
||||
.probe_out4 (freq_comp_auto_enable_vio ) // output wire [0 : 0] probe_out4
|
||||
.probe_out4 (freq_comp_auto_enable_vio ), // output wire [0 : 0] probe_out4
|
||||
.probe_out5 (dmf_continuous ) // output wire [0 : 0] probe_out5
|
||||
);
|
||||
|
||||
ila_freq_comp u_ila_freq_comp
|
||||
(
|
||||
.clk (sys_clk ), // input wire clk
|
||||
.clk (sys_clk_4x ), // input wire clk
|
||||
.probe0 (ch_peak_valid ), // input wire [0:0] probe0
|
||||
.probe1 (ch1_peak_value_i ), // input wire [17:0] probe1
|
||||
.probe2 (ch1_peak_value_q ), // input wire [17:0] probe2
|
||||
@@ -1001,21 +1009,18 @@ ila_freq_comp u_ila_freq_comp
|
||||
.probe6 (ch3_peak_value_q ), // input wire [17:0] probe6
|
||||
.probe7 (ch4_peak_value_i ), // input wire [17:0] probe7
|
||||
.probe8 (ch4_peak_value_q ), // input wire [17:0] probe8
|
||||
.probe9 (ch1_peak_index ), // input wire [7:0] probe9
|
||||
.probe10(ch2_peak_index ), // input wire [7:0] probe10
|
||||
.probe11(ch3_peak_index ), // input wire [7:0] probe11
|
||||
.probe12(ch4_peak_index ), // input wire [7:0] probe12
|
||||
.probe9 (ch1_peak_index ), // input wire [10:0] probe9
|
||||
.probe10(ch2_peak_index ), // input wire [10:0] probe10
|
||||
.probe11(ch3_peak_index ), // input wire [10:0] probe11
|
||||
.probe12(ch4_peak_index ), // input wire [10:0] probe12
|
||||
.probe13(freq_comp_start ), // input wire [0:0] probe13
|
||||
.probe14(u_freq_comp.state_curr ), // input wire [2:0] probe14
|
||||
.probe15(u_freq_comp.din_freq_cxr_real ), // input wire [11:0] probe15
|
||||
.probe16(u_freq_comp.din_freq_cxr_imag ), // input wire [11:0] probe16
|
||||
.probe17(u_freq_comp.dmf_freq_moduli_abs ), // input wire [17:0] probe17
|
||||
.probe18(u_freq_comp.dmf_ch_moduli_abs[0] ), // input wire [17:0] probe18
|
||||
.probe19(u_freq_comp.dmf_ch_moduli_abs[1] ), // input wire [17:0] probe19
|
||||
.probe20(u_freq_comp.dmf_ch_moduli_abs[2] ), // input wire [17:0] probe20
|
||||
.probe21(u_freq_comp.dmf_ch_moduli_abs[3] ), // input wire [17:0] probe21
|
||||
.probe22(u_freq_comp.freq_word ), // input wire [31:0] probe22
|
||||
.probe23(vio_frequency_auto[11:0] ) // input wire [11:0] probe23
|
||||
.probe19(u_freq_comp.freq_word ), // input wire [31:0] probe19
|
||||
.probe20(vio_frequency_auto[11:0] ) // input wire [11:0] probe20
|
||||
);
|
||||
|
||||
endmodule
|
||||
|
||||
Reference in New Issue
Block a user