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:
@@ -454,7 +454,7 @@ always @(posedge clk or negedge reset_n) begin
|
|||||||
ST_OVERLAP_COPY: begin
|
ST_OVERLAP_COPY: begin
|
||||||
// Write one cached overlap sample per cycle to BRAM
|
// Write one cached overlap sample per cycle to BRAM
|
||||||
buf_we <= 1;
|
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_i <= overlap_cache_i[overlap_copy_count];
|
||||||
buf_wdata_q <= overlap_cache_q[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
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
default: begin
|
||||||
|
state <= ST_IDLE;
|
||||||
|
end
|
||||||
endcase
|
endcase
|
||||||
|
|
||||||
// Update status
|
// Update status
|
||||||
|
|||||||
Reference in New Issue
Block a user