Fix matched filter synth errors: overlap_copy_count part-select width, add FSM default

Vivado 2025.2 (Synth 8-524): overlap_copy_count is 8-bit but [9:0]
part-select was 10-bit. Changed to explicit zero-extend concat.
Added default case to FSM to suppress non-full case warning.
This commit is contained in:
Jason
2026-03-19 20:53:29 +02:00
parent 3b7afba9d9
commit e8b7cb7584
@@ -454,7 +454,7 @@ always @(posedge clk or negedge reset_n) begin
ST_OVERLAP_COPY: begin
// Write one cached overlap sample per cycle to BRAM
buf_we <= 1;
buf_waddr <= overlap_copy_count[9:0];
buf_waddr <= {{2{1'b0}}, overlap_copy_count};
buf_wdata_i <= overlap_cache_i[overlap_copy_count];
buf_wdata_q <= overlap_cache_q[overlap_copy_count];
@@ -476,6 +476,10 @@ always @(posedge clk or negedge reset_n) begin
end
end
end
default: begin
state <= ST_IDLE;
end
endcase
// Update status