首页 新闻资讯 技术资料 论坛 网站地图
IC设计 消费电子 工业控制 医疗电子 嵌入式系统 AD/DA 嵌入式开发新闻
电子元器件搜索:
IC库存(8958万) PDF资料(329万) IC价格 IC求购 资讯 技术资料
维库电子市场网是知名的电子元器件交易网站, 为电子生产企业提供IC库存和技术资料查询服务。
位置: 首页 > 详细信息
  [求助]29进制
出处:综合电子论坛 时间: 2007-11-06
fightingfyp 发布于 2007-11-5 14:11:21
表情[求助]29进制

编了一个29进制计数器,出现以下错误,怎么回事?

WARNING:Xst:528 - Multi-source in Unit <ershijiu> on signal <c> not replaced by logic
Signal is stuck at GND
ERROR:Xst:415 - Synthesis failed
CPU : 1.91 / 3.02 s | Elapsed : 1.00 / 3.00 s

源程序:library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

entity ershijiu is
port(
cp:in std_logic;
q:out std_logic_vector(7 downto 0);
c:out std_logic);
end ershijiu;

architecture Behavioral of ershijiu is
signal qa:std_logic_vector(3 downto 0);
signal qb:std_logic_vector(3 downto 0);
signal cin:std_logic;
begin
q(7 downto 4)<=qb;
q(3 downto 0)<=qa;
process(cp)
begin
if rising_edge(cp) then
  if ((qa=9) or (qa=8 and qb=2)) then
   qa<="0000";
   c<='0';
  elsif qa=8 then
  cin<='1';
  qa<=qa+1;
  else
  qa<=qa+1;
  cin<='0';
  end if ;
  end if ;
  end process;
process (cin,cp)
  begin
if rising_edge(cp) then
   if (qa=8 and qb=2) then
   qb<="0000";
   c<='1';
   else
   c<='0';
   end if ;
   if cin='1' then
   qb<=qb+1;
   end if ;
end if ;
   end process;
end Behavioral;


levi 发布于 2007-11-6 0:10:03
表情qb多次赋值
fightingfyp 发布于 2007-11-6 21:41:29
表情

能不能说的具体一点,这个程序是我从书上照抄下来的~~

怎么该啊?


关闭】 【打印
相关专题  
工业控制
存储器
通信产品
数控系统
IC设计
嵌入式系统
应用产品
军工/航空航天
安防产品
消费电子
CPLD/FPGA
软件开发
嵌入式软件
测试测量
嵌入式开发新闻
传感控制
电源系列
汽车电子
接口电路
综合电子技术
计算机外设
开发工具
医疗电子
SOPC
嵌入式硬件

© 2007 百斯嵌入式开发网 网站地图