Skip to content

Commit

Permalink
Bring voice DC offset back to an average level again
Browse files Browse the repository at this point in the history
The prior reduction was based on a SID chip which had an unusually
low voice DC offset.
  • Loading branch information
daglem committed May 7, 2023
1 parent 14c8119 commit d173e4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gateware/sid_voice.sv
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
module sid_voice #(
localparam WAVEFORM_DC_6581 = -16'sh380, // OSC3 = 'h38 at 5.94V.
localparam WAVEFORM_DC_8580 = -16'sh800, // No DC offsets in the MOS8580.
localparam VOICE_DC_6581 = 32'('h340*'hff), // Measured from samples.
// FIXME: The 6581 voice DC offset has been measured as low as 'h340 on one
// SID chip, and should thus probably be configurable.
localparam VOICE_DC_6581 = 32'('h800*'hff), // 1/2 the dynamic range.
localparam VOICE_DC_8580 = 32'h0 // No DC offsets in the MOS8580.
)(
input logic clk,
Expand Down

0 comments on commit d173e4e

Please sign in to comment.