10830|4

106

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

代码出错,高手帮忙看看 [复制链接]

--8位10进制频率计
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity ftctrl3 is
  port(clkk:in std_logic;
       cnt_en:out std_logic;
       rst_cnt:out std_logic;
        load:out std_logic);
end ftctrl3;
architecture one of ftctrl3 is
signal clk1:std_logic;
begin
  process(clkk)
  variable cqi:std_logic_vector(3 downto 0);
  variable cq2:std_logic_vector(6 downto 0);
  begin
if clkk'event and clkk='1' then
   if cq2<125 then cq2:=cq2+1;
      else cq2:=(others=>'0');end if;
   if cq2=124 then clk1<='1';
      else clk1<='0';   end if;
      
  if clk1'event and clk1='1' then
  if cqi<15 then cqi:=cqi+1;
     else cqi:=(others=>'0');end if;
  if cqi<8 then cnt_en<='1';
  else cnt_en<='0';  end if;
  if cqi=11 then load<='1';
  else load<='0';  end if;
  if cqi=14 then rst_cnt<='1';
  else rst_cnt<='0';end if;
  end if;
  end if;
end process;
end one;
Info: *******************************************************************
Info: Running Quartus II Analysis & Synthesis
Info: Version 8.0 Build 215 05/29/2008 SJ Full Version
Info: Processing started: Mon May 10 21:49:15 2010
Info: Command: quartus_map --read_settings_files=on --write_settings_files=off lx -c lx
Warning: Ignored assignments for entity "ftctrl3" -- entity does not exist in design
Warning: Assignment of entity set_instance_assignment -name PARTITION_HIERARCHY root_partition -to | -section_id Top is ignored
Warning: Assignment of entity set_global_assignment -name PARTITION_NETLIST_TYPE SOURCE -section_id Top is ignored
Warning: Assignment of entity set_global_assignment -name PARTITION_COLOR 14622752 -section_id Top is ignored
Warning: Assignment of entity set_global_assignment -name PARTITION_IMPORT_ASSIGNMENTS ON -section_id Top is ignored
Warning: Assignment of entity set_global_assignment -name PARTITION_IMPORT_EXISTING_ASSIGNMENTS REPLACE_CONFLICTING -section_id Top is ignored
Warning: Assignment of entity set_global_assignment -name PARTITION_IMPORT_EXISTING_LOGICLOCK_REGIONS REPLACE_CONFLICTING -section_id Top is ignored
Warning: Assignment of entity set_global_assignment -name PARTITION_IMPORT_PIN_ASSIGNMENTS ON -section_id Top is ignored
Warning: Assignment of entity set_global_assignment -name PARTITION_IMPORT_PROMOTE_ASSIGNMENTS ON -section_id Top is ignored
Warning: Assignment of entity set_global_assignment -name PARTITION_TYPE STANDARD_PARTITION -section_id Top is ignored
Warning: Ignored assignments for entity "lx" -- entity does not exist in design
Warning: Assignment of entity set_global_assignment -name LL_ROOT_REGION ON -entity lx -section_id "Root Region" is ignored
Warning: Assignment of entity set_global_assignment -name LL_MEMBER_STATE LOCKED -entity lx -section_id "Root Region" is ignored
Info: Found 2 design units, including 1 entities, in source file ftctrl3.vhd
Info: Found design unit 1: ftctrl3-one
Info: Found entity 1: ftctrl3
Info: Found 2 design units, including 1 entities, in source file ../../../experiment/8位10进制频率计的设计/FTCTRL2.vhd
Info: Found design unit 1: FTCTRL2-ONE
Info: Found entity 1: FTCTRL2
Info: Found 2 design units, including 1 entities, in source file Vhdl3.vhd
Info: Found design unit 1: vhdl3-one
Info: Found entity 1: vhdl3
Info: Elaborating entity "ftctrl3" for the top level hierarchy
Error (10821): HDL error at ftctrl3.vhd(20): can't infer register for "rst_cnt" because its behavior does not match any supported register model
Info (10041): Inferred latch for "rst_cnt" at ftctrl3.vhd(16)
Error (10821): HDL error at ftctrl3.vhd(20): can't infer register for "load" because its behavior does not match any supported register model
Info (10041): Inferred latch for "load" at ftctrl3.vhd(16)
Error (10821): HDL error at ftctrl3.vhd(20): can't infer register for "cnt_en" because its behavior does not match any supported register model
Info (10041): Inferred latch for "cnt_en" at ftctrl3.vhd(16)
Error (10821): HDL error at ftctrl3.vhd(20): can't infer register for "cqi[0]" because its behavior does not match any supported register model
Info (10041): Inferred latch for "cqi[0]" at ftctrl3.vhd(20)
Error (10821): HDL error at ftctrl3.vhd(20): can't infer register for "cqi[1]" because its behavior does not match any supported register model
Info (10041): Inferred latch for "cqi[1]" at ftctrl3.vhd(20)
Error (10821): HDL error at ftctrl3.vhd(20): can't infer register for "cqi[2]" because its behavior does not match any supported register model
Info (10041): Inferred latch for "cqi[2]" at ftctrl3.vhd(20)
Error (10821): HDL error at ftctrl3.vhd(20): can't infer register for "cqi[3]" because its behavior does not match any supported register model
Info (10041): Inferred latch for "cqi[3]" at ftctrl3.vhd(20)
Error (10822): HDL error at ftctrl3.vhd(20): couldn't implement registers for assignments on this clock edge
Error (10822): HDL error at ftctrl3.vhd(26): couldn't implement registers for assignments on this clock edge
Error: Can't elaborate top-level user hierarchy
Error: Quartus II Analysis & Synthesis was unsuccessful. 10 errors, 13 warnings
Error: Peak virtual memory: 170 megabytes
Error: Processing ended: Mon May 10 21:49:18 2010
Error: Elapsed time: 00:00:03
Error: Total CPU time (on all processors): 00:00:03
Error: Quartus II Full Compilation was unsuccessful. 12 errors, 13 warnings
这是什么错误啊?求。。。解。。。
此帖出自FPGA/CPLD论坛

最新回复

代码调试,经常会碰到这种情况啊,做成ip核,能调用就好了  详情 回复 发表于 2010-5-11 17:14
点赞 关注
 

回复
举报

6892

帖子

0

TA的资源

五彩晶圆(高级)

沙发
 
Warning: Ignored assignments for entity "ftctrl3" -- entity does not exist in design

警告:忽略指定的实体“ftctrl3"--实体在设计中不存在
此帖出自FPGA/CPLD论坛
个人签名一个为理想不懈前进的人,一个永不言败人!
http://shop57496282.taobao.com/
欢迎光临网上店铺!
 
 

回复

107

帖子

0

TA的资源

纯净的硅(高级)

板凳
 

回复 楼主 lx773533 的帖子

你的rst_cnt,load,cnt_en应该用buffer类型,不应该用out类型。
还有你的cqi,cq2你定义的是std_logic_vector()类型的,可你后来判断他们时你用的是integer的。
总之,你对端口类型、数据类型没有弄明白。
建议把基础知识练一下,呵
此帖出自FPGA/CPLD论坛
个人签名快乐是一天,不快乐也是一天,为什么不天天快乐呢
 
 
 

回复

106

帖子

0

TA的资源

一粒金砂(初级)

4
 
把end if弄反了,第一个 if是为了产生一个频率为CLKK/125HZ的方波,然后在以clk1为敏感信号进行以下信号的触发信号,end if 用错了地方,用到最后面去了,应该在clk1产生之后就该结束的。。。:L
此帖出自FPGA/CPLD论坛
 
 
 

回复

265

帖子

0

TA的资源

一粒金砂(高级)

5
 
代码调试,经常会碰到这种情况啊,做成ip核,能调用就好了
此帖出自FPGA/CPLD论坛
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/9 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表