12 USE ieee.std_logic_1164.
all;
13 USE ieee.std_logic_arith.
all;
27 addr : OUT std_logic_vector (3 DOWNTO 0);
39 signal addr_ram:unsigned (3 downto 0):= "0000";
47 SIGNAL current_state : STATE_TYPE;
55 current_state <= idle;
56 addr <= (others => '0');
58 ELSIF (clk'EVENT AND clk = '1') THEN
62 addr <= (others=> '0');
63 addr_ram <= (others=> '0');
66 current_state <= rd_en;
68 current_state <= idle;
71 addr_ram <= addr_ram +1 ;
72 addr <= std_logic_vector(addr_ram);
75 current_state <= idle;
77 current_state <= bcr_done;
79 current_state <= rd_en;
82 addr <= (others => '0');
85 current_state <= rd_en;
87 current_state <= idle;
90 END PROCESS clocked_proc;
control State machine of playback ram
control State machine of playback ram
in clk std_logic
rx clock of 40 Mhz
out en std_logic
ram enable
out addr std_logic_vector( 3 DOWNTO 0)
ram address for read side