欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

玩欧卡就用莱仕达V10方向盘欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 3443|回复: 0
收起左侧

D触发器VHDL语言描述 clk'event的意义

[复制链接]
script 发表于 2012-3-27 14:21 | 显示全部楼层 |阅读模式
clk'event是指信号clk是否发生跳变,若发生了则返回ture,否则为假,
clk=‘1’是跳变后clk为高电平。合起来就是当clk信号的上升沿则....
library ieee;
use ieee.std_logic_1164.all;
entity d_chufaqi is
port ( clk:in std_logic;
   d:in std_logic;
   q:out std_logic);
end d_chufaqi;
 
architecture d_chufaqi_arch of d_chufaqi is
 
begin
 process (clk,d)
 begin
  if(clk='1' and clk'event) then 
   q<=d;
  end if;
 end process ;
end d_chufaqi_arch;

相关帖子

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-5-6 20:02 , Processed in 0.037153 second(s), 8 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表