2690|1

3

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

初学者求助一段VHDL代码 [复制链接]

下面这段代码在quartus II中编译的时候提示语法错误,请问错在哪里?
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity address3960 is
         port( CLOCK , RESET   : in std_logic ;
        address_data1  : out std_logic_vector(11 downto 0));
end address3960 ;
architecture rtl of address3960 is
signal CLK1  : std_logic ; -------------------------------internal_clock
signal count_f_counter : std_logic_vector(16 downto 0) ;
signal count_CLK: std_logic_vector(8 downto 0) ; -----------internal_signal_9bits
signal count_datstd_logic_vector(11 downto 0) ;  -----------internal_signal_12bits
begin
---Counter----------------------------------------------------------------------------
process (CLOCK,RESET)
    begin
       if (RESET = '1') then
      count_CLK<="000000000"; --------------------------9bits_o
         CLK1 <= '0' ;      
       elsif (CLOCK'event and CLOCK = '1') then
         if (count_CLK< "111110011") then ------------------9bits_499
             count_CLK <= count_CLK + '1';
             clk1<='0';
elsif (count_CLK = "111110011" ) then --------------499
             count_CLK <= "000000000";
          clk1<='1';
         end if;
  end process;
---Calling_rom_address------------------------------------------------------------
process (CLK1,RESET)
    begin
       if (RESET = '1') then
     count_data1 <= "000000000000" ; ------------------------------8bits_0
      elsif (CLK1'event and CLK1 = '1') then
if (count_data1 < "111101110111") then -----------------------8bits_3959
       count_data1 <= count_data1 + '1';
  elsif (count_data1 = "111101110111" ) then -------------------8bits_3959
        count_data1 <= "000000000000";
            end if;
end if;
end process ;
         address_data1 <= count_data1 ;
end rtl;
此帖出自FPGA/CPLD论坛

最新回复

count_data1 没有声明,上面声明的是count_dat  详情 回复 发表于 2012-11-14 09:45
点赞 关注
 

回复
举报

20

帖子

0

TA的资源

一粒金砂(中级)

沙发
 
count_data1 没有声明,上面声明的是count_dat
此帖出自FPGA/CPLD论坛

赞赏

1

查看全部赞赏

 
 

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

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条
有奖直播:当AI遇见仿真,会有什么样的电子行业革新之路?
首场直播:Simcenter AI 赋能电子行业研发创新
直播时间:04月15日14:00-14:50

查看 »

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

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

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

北京市海淀区中关村大街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
快速回复 返回顶部 返回列表