Wire matched filter range profile to USB, replacing Doppler placeholder

This commit is contained in:
Jason
2026-03-19 12:33:40 +02:00
parent f4ff2715ca
commit 3fa26c9e4c
2 changed files with 20 additions and 6 deletions
+11 -1
View File
@@ -17,7 +17,12 @@ module radar_receiver_final (
output wire [31:0] doppler_output,
output wire doppler_valid,
output wire [4:0] doppler_bin,
output wire [5:0] range_bin
output wire [5:0] range_bin,
// Matched filter range profile output (for USB)
output wire signed [15:0] range_profile_i_out,
output wire signed [15:0] range_profile_q_out,
output wire range_profile_valid_out
);
// ========== INTERNAL SIGNALS ==========
@@ -216,6 +221,11 @@ wire signed [15:0] range_profile_i;
wire signed [15:0] range_profile_q;
wire range_valid;
// Expose matched filter output to top level for USB range profile
assign range_profile_i_out = range_profile_i;
assign range_profile_q_out = range_profile_q;
assign range_profile_valid_out = range_valid;
matched_filter_multi_segment mf_dual (
.clk(clk),
.reset_n(reset_n),
+9 -5
View File
@@ -402,7 +402,12 @@ radar_receiver_final rx_inst (
.doppler_output(rx_doppler_output),
.doppler_valid(rx_doppler_valid),
.doppler_bin(rx_doppler_bin),
.range_bin(rx_range_bin)
.range_bin(rx_range_bin),
// Matched filter range profile (for USB)
.range_profile_i_out(rx_range_profile[15:0]),
.range_profile_q_out(rx_range_profile[31:16]),
.range_profile_valid_out(rx_range_valid)
);
// ============================================================================
@@ -448,10 +453,9 @@ end
// DATA PACKING FOR USB
// ============================================================================
// For range profile, we'll use the doppler data as a placeholder
// In a real system, this would come from the matched filter output
assign usb_range_profile = rx_doppler_output;
assign usb_range_valid = rx_doppler_valid;
// Range profile from matched filter output (wired through radar_receiver_final)
assign usb_range_profile = rx_range_profile;
assign usb_range_valid = rx_range_valid;
assign usb_doppler_real = rx_doppler_real;
assign usb_doppler_imag = rx_doppler_imag;