[an error occurred while processing this directive]
|
не очень красиво, много ненужных параметров. Гораздо красивее описать что-то вроде следующего:
type mem_type is array(natural range <>) of std_logic_vector(15 downto 0);
signal sin_cos_ram : mem_type(7 downto 0) := (others => (others => '0'));
PORT_A: process (clk_a)
begin
if (clk_a'event and clk_a = '1') then
if (wr = '1') then
sin_cos_ram(CONV_INTEGER(UNSIGNED(addr_a)))<= data_a;
end if;
end if;
end process PORT_A;
PORT_B: process (clk_b)
begin
if (clk_b'event and clk_b = '1') then
data_b <= sin_cos_ram(CONV_INTEGER(UNSIGNED(addr_b)));
end if;
end process PORT_B;
В данном случае все понятно и красиво. Проблема в том, что не могу подключить чтение.
E-mail: info@telesys.ru