Skip to content

Commit

Permalink
feat: comment wave_generator module
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizabeth-0 committed Jan 28, 2025
1 parent c7bf759 commit a6f2f65
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/tt_um_waves.v
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ module tt_um_waves (
);

// Wave Generator
wave_generator wave_gen_inst (
/*wave_generator wave_gen_inst (
.clk(clk),
.rst_n(rst_n),
.freq_select(freq_select),
.wave_select(wave_select),
.white_noise_en(white_noise_en),
.wave_out(wave_gen_output)
);
);*/

// White Noise Generator Instance
wire [7:0] noise_out;
Expand Down Expand Up @@ -219,7 +219,13 @@ end

// Apply ADSR Envelope
wire [7:0] scaled_wave;
assign scaled_wave = (selected_wave * adsr_amplitude) >> 8;
always @(posedge clk) begin
if (!rst_n)
scaled_wave <= 8'd0;
else
scaled_wave <= (selected_wave * adsr_amplitude) >> 8;
end


// I2S Output
wire i2s_sck, i2s_ws, i2s_sd;
Expand Down Expand Up @@ -354,7 +360,7 @@ module uart_receiver (
endmodule


module wave_generator (
/*module wave_generator (
input wire clk, // System clock
input wire rst_n, // Active-low reset
input wire [5:0] freq_select, // Frequency selection
Expand Down Expand Up @@ -401,7 +407,7 @@ module wave_generator (
end
end
endmodule
endmodule*/



Expand Down Expand Up @@ -958,7 +964,4 @@ module encoder #(
endcase
end
end
endmodule



endmodule

0 comments on commit a6f2f65

Please sign in to comment.