导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→大虾们帮忙看看 这个怎么编译不过 不知道错在哪里[zimiqi]

 *第46898篇: 大虾们帮忙看看 这个怎么编译不过 不知道错在哪里

  
楼 主:zimiqi 2007年3月12日09:56
 大虾们帮忙看看 这个怎么编译不过 不知道错在哪里
library ieee;
use ieee.std_logic_1164.all;

entity cyregister is
    port 
          (  clk : in std_logic;
            datain : in std_logic_vector( 7 downto 0 );
            dataout : out std_logic_vector( 7 downto 0 ) );
end entity cyregister ;

architecture behave of cyregister is
begin  
    cyregister_inst process ( clk )
begin
     if ( clk='1' and clk'last_value='0' and clk'event ) then
         dataout   <= datain;
         end if;
      end cyregister_inst process ;

end architecture behave;

  
2楼:zimiqi 2007年3月12日10:19
 帮忙
library ieee;
use ieee.std_logic_1164.all;

entity cyregister is
    port 
          (  clk : in std_logic;
            datain : in std_logic_vector( 7 downto 0 );
            dataout : out std_logic_vector( 7 downto 0 ) );
end entity cyregister ;

architecture behave of cyregister is
begin  
    cyregister_inst : process ( clk )
begin
     if ( clk='1' and clk'last_value='0' and clk'event ) then    --这句错在哪里啊
         dataout     <= datain;
         end if;
      end  process cyregister_inst ;


>>>>>>对该主题发表你的看法

本主题贴数2,分页: [第1页]


[上一篇主题]:[求助]

[下一篇主题]:Max485在收发转换时产生误码的问题