在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 3970|回复: 1

[求助] 用libero综合出现警告

[复制链接]
发表于 2010-2-22 11:30:10 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
为什么这个程序综合通不过?开发软件为libero,朋友们给分析分析怎么回事?有用libero vhdl语言编写程序的请加好友QQ155337199,相互交流学习经验。源程序: library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity wr is
port( mcudata: in std_logic_vector(7 downto 0);
mcuaddress: in std_logic_vector(11 downto 0);
clock : in std_logic;
wr : in std_logic;
cs : in std_logic;
dataout : out std_logic_vector(7 downto 0));
end;
architecture wrbus of wr is
signal addresstemp: std_logic_vector(11 downto 0);
signal flag: std_logic_vector(1 downto 0);
signal datatemp1,datatemp2,datatemp3,datatemp4 : std_logic_vector(7 downto 0);
begin
addresstemp(11 downto 0)<= mcuaddress(11 downto 0); process(clock) begin
if clock'event and clock = '0' then
if addresstemp = "000000000000" then flag <= "00";
elsif addresstemp = "000000000001" then flag <= "01";
elsif addresstemp = "000000000010" then flag <= "10";
elsif addresstemp = "000000000011" then flag <= "11";
end if;
end if;
end process;
process(wr)
begin
if wr'event and wr = '0' then
if ((cs = '0') and (flag ="00")) then
datatemp1 <= mcudata;
elsif ((cs = '0') and (flag ="01")) then
datatemp2 <= mcudata;
elsif ((cs = '0') and (flag ="10")) then
datatemp3 <= mcudata;
elsif ((cs = '0') and (flag ="11")) then
datatemp4 <= mcudata;
end if;
end if;
end process;
dataout <= mcudata; end;
综合错误提示: @W: CL169 :"C:\Actelprj\wr\hdl\wr.vhd":40:0:40:1|Pruning Register datatemp4(7 downto 0) @W: CL169 :"C:\Actelprj\wr\hdl\wr.vhd":40:0:40:1|Pruning Register datatemp3(7 downto 0) @W: CL169 :"C:\Actelprj\wr\hdl\wr.vhd":40:0:40:1|Pruning Register datatemp2(7 downto 0) @W: CL169 :"C:\Actelprj\wr\hdl\wr.vhd":40:0:40:1|Pruning Register datatemp1(7 downto 0) @W: CL169 :"C:\Actelprj\wr\hdl\wr.vhd":25:0:25:1|Pruning Register flag(1 downto 0) @W: CL159 :"C:\Actelprj\wr\hdl\wr.vhd":10:0:10:9|Input mcuaddress is unused @W: CL159 :"C:\Actelprj\wr\hdl\wr.vhd":11:0:11:4|Input clock is unused @W: CL159 :"C:\Actelprj\wr\hdl\wr.vhd":12:0:12:1|Input wr is unused @W: CL159 :"C:\Actelprj\wr\hdl\wr.vhd":13:0:13:1|Input cs is unused @W: BN246 |Failed to find top level module 'work.wr' as specified in project file
 楼主| 发表于 2010-2-24 13:32:00 | 显示全部楼层
??????
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条


小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-12-19 04:38 , Processed in 0.017768 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表