tdraudio: remove unneeded status flags, tweak project settings

This commit is contained in:
slederer 2025-09-29 20:40:07 +02:00
parent 12033bb6d2
commit 2735b80fec
2 changed files with 21 additions and 16 deletions

View file

@ -46,7 +46,7 @@ module wavegen #(DATA_WIDTH=32, CLOCK_DIV_WIDTH=22, AMP_WIDTH=16) (
//assign rd_data = {{DATA_WIDTH-8-CLOCK_DIV_WIDTH{1'b0}}, div_count, {7{1'b0}}, channel_enable};
assign rd_data = {8'b0, amp_start,
{4{1'b0}}, amp_phase, direct_amp_enable, noise_enable, channel_enable};
{6{1'b0}}, amp_phase, channel_enable};
assign amp_val = amp_out;
assign running = channel_enable;
@ -146,7 +146,7 @@ module wavegen #(DATA_WIDTH=32, CLOCK_DIV_WIDTH=22, AMP_WIDTH=16) (
begin
if (div_count == 0) // invert amplitude on clock tick
begin
amp_out <= direct_amp_enable ? amp_start :
amp_out <= direct_amp_enable ? amp_start :
noise_enable ? noise_out :
amp_phase ? amp_start : ~amp_start;
amp_phase <= ~amp_phase;