Simple fix for audio - when sound output is disabled, drive output high (#12)

instead of to zero
This commit is contained in:
darylrichards 2024-08-29 00:38:31 -04:00 committed by GitHub
parent 84d86e86b1
commit 440aff18ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,7 @@ module dataController_top(
reg [7:0] audio_latch;
always @(posedge clk32) begin
if(clk8_en_p && loadSoundD) begin
if(snd_ena) audio_latch <= 8'h00;
if(snd_ena) audio_latch <= 8'h7f; // when disabled, drive output high
else audio_latch <= memoryDataIn[15:8] - 8'd128;
end
end