微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 嵌入式设计讨论 > FPGA,CPLD和ASIC > 求大师解答,想了一晚上了

求大师解答,想了一晚上了

时间:10-02 整理:3721RD 点击:
Library ieee;
use IEEE.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned;
entity water_lamp is
  generic(n:integer:=48000000);
     port(
                clk:in std_logic;
                swich:in std_logic_vector(2 downto 0);
                          Led:out std_logic_vector(2 downto 0)
                          );
                          end water_lamp;
architecture liushuideng of water_lamp is
  signal cnt:integer range 0 to n;
  signal clk_new:std_logic;
  signal cnm:integer range 0 to 2;
    begin
    process(clk) IS                 
    begin
         IF clk'event and clk='1' then
         if cnt led led led led led led led led led led led led<="111";
             end case;
                end if;
         end process ;
        end architecture liushuideng;

编译时出现Error (10500): VHDL syntax error at water_lamp.vhd(50) near text "=";  expecting "(", or "'", or "."
Error: Quartus II 64-Bit Analysis & Synthesis was unsuccessful. 1 error, 0 warnings
        Error: Peak virtual memory: 427 megabytes
        Error: Processing ended: Sun Apr 12 11:46:24 2015
        Error: Elapsed time: 00:00:01
        Error: Total CPU time (on all processors): 00:00:01
Error (293001): Quartus II Full Compilation was unsuccessful. 3 errors, 0 warnings
哪位大神能帮忙解答下感激不禁

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top