位置:51电子网 » 技术资料 » 其它综合

instantiating the lpm_ram_dq component

发布时间:2008/6/5 0:00:00 访问次数:642

library lpm;
use lpm.lpm_components.all;
library ieee;
use ieee.std_logic_1164.all;
entity lpm_inst is
port (clock, we: in std_logic;
data : in std_logic_vector(3 downto 0);
address : in std_logic_vector(3 downto 0);
q : out std_logic_vector (3 downto 0));
end lpm_inst;
architecture arch1 of lpm_inst is
begin
i0 : lpm_ram_dq
generic map (lpm_width => 4,
lpm_widthad => 4,
lpm_type => "lpm_ram_dq")
port map (data => data,
address => address,
we => we,
inclock => clock,
outclock => clock,
q => q);
end arch1;

其实synplify可以识别出你的ram然后自动的用lpm代替,但是好像对xilinx的不大好用

library lpm;
use lpm.lpm_components.all;
library ieee;
use ieee.std_logic_1164.all;
entity lpm_inst is
port (clock, we: in std_logic;
data : in std_logic_vector(3 downto 0);
address : in std_logic_vector(3 downto 0);
q : out std_logic_vector (3 downto 0));
end lpm_inst;
architecture arch1 of lpm_inst is
begin
i0 : lpm_ram_dq
generic map (lpm_width => 4,
lpm_widthad => 4,
lpm_type => "lpm_ram_dq")
port map (data => data,
address => address,
we => we,
inclock => clock,
outclock => clock,
q => q);
end arch1;

其实synplify可以识别出你的ram然后自动的用lpm代替,但是好像对xilinx的不大好用

相关IC型号

热门点击

 

推荐技术资料

罗盘误差及补偿
    造成罗盘误差的主要因素有传感器误差、其他磁材料干扰等。... [详细]
版权所有:51dzw.COM
深圳服务热线:13692101218  13751165337
粤ICP备09112631号-6(miitbeian.gov.cn)
公网安备44030402000607
深圳市碧威特网络技术有限公司
付款方式


 复制成功!