Got rid of ftw_we and tested on hw with freq sweep

This commit is contained in:
Jojojoppe
2025-10-05 23:42:51 +02:00
parent 83cc449c6f
commit 1e9d7b7680
3 changed files with 52 additions and 37 deletions

View File

@@ -21,7 +21,6 @@ module tb_nco_q15();
reg [31:0] ftw_in;
reg ftw_we;
wire [15:0] sin_q15;
wire [15:0] cos_q15;
wire out_en;
@@ -30,7 +29,6 @@ module tb_nco_q15();
.clk (clk),
.rst_n (resetn),
.ftw_in (ftw_in),
.ftw_we (ftw_we),
.sin_q15(sin_q15),
.cos_q15(cos_q15),
.clk_en (out_en)
@@ -38,13 +36,10 @@ module tb_nco_q15();
initial begin
ftw_in = 32'h0;
ftw_we = 1'b0;
#100
@(posedge clk);
ftw_in = ftw_from_hz(1000, 16, 40000);
ftw_we = 1'b1;
@(posedge clk);
ftw_we = 1'b0;
#2_500_000
ftw_in = ftw_from_hz(2000, 16, 40000);
end;
endmodule