Project

General

Profile

« Previous | Next » 

Revision 1510

Added by markw 1 day ago

Use natural signed/unsigned source depending on which chip. Mix with signed, with a dc blocker. Add a bit more dither to make the mid level voltage acceptable through the sigma delta, since it now sits a 2.5v for silence (internally, external is ac coupled). This fixes the sample engine clicks when playing mod files due to the sample engine volume being applied on unsigned converted samples, which gave a dc bias betwen samples. Paula samples have to end/start at signed midpoint you see.

View differences:

top.vhdl
DO : out std_logic_vector(7 downto 0);
DRIVE_DO : out std_logic;
AUDIO : out std_logic_vector(15 downto 0);
AUDIO : out signed(15 downto 0);
DEBUG_WV1 : out unsigned(11 downto 0);
DEBUG_EV1 : out unsigned(7 downto 0);
......
-- op regs
signal addr_decoded : std_logic_vector(31 downto 0);
signal audio_reg: std_logic_vector(15 downto 0);
signal audio_reg: signed(15 downto 0);
-- osc regs
signal osc_a_reg : std_logic_vector(11 downto 0);

Also available in: Unified diff