Added decimation

This commit is contained in:
Joppe Blondel
2025-10-19 17:19:08 +02:00
parent 771fa58769
commit 85d9979e2d
3 changed files with 84 additions and 1 deletions

View File

@@ -35,10 +35,17 @@ module tb_sigmadelta();
);
wire signed [15:0] y_q15;
lpf_iir_q15_k #(8) lpf(
lpf_iir_q15_k #(9) lpf(
.clk(clk), .rst_n(resetn),
.x_q15(sample_q15),
.y_q15(y_q15)
);
wire signed [15:0] decimated_q15;
decimate_by_r_q15 #(400, 10) decimate(
.clk(clk), .rst_n(resetn),
.in_valid(1'b1), .in_q15(y_q15),
.out_valid(), .out_q15(decimated_q15)
);
endmodule