Forum Discussion
Altera_Forum
Honored Contributor
17 years agoThank you for your reply
i implemented a rom with LPM_ROM in this way: tcgrom: lpm_rom generic map ( lpm_widthad => 16, lpm_outdata => "unregistered", lpm_address_control => "unregistered", lpm_file => "btest.mif", -- init data lpm_width => 16) port map ( address => addr, q => outdata); i must use it in process or procedures but it may couse some errors! please help me to use it in the procedure procedure tras (signal addr :in std_logic_vector(15 downto 0); signal outdata: out std_logic_vector(15 downto 0)) begin tcgrom: lpm_rom generic map ( lpm_widthad => 16, lpm_outdata => "unregistered", lpm_address_control => "unregistered", lpm_file => "btest.mif", -- init data lpm_width => 16) port map ( address => addr, q => outdata); end procedure tras; Error (10500): VHDL syntax error at btest.vhd(259) near text "begin"; expecting ";", or "is"