如何同时使用上升沿和下降沿!?

[复制链接]
 楼主| ywert000 发表于 2013-1-28 23:15 | 显示全部楼层 |阅读模式
ge, edge, POS, se, os
如何同时使用上升沿和下降沿!?
always@(posedge clk or negedge clk)
 楼主| ywert000 发表于 2013-1-28 23:15 | 显示全部楼层
这种写法为什么编译不过去呢!?怎么样写是正确的谢谢法!?
alway @ (clk)就表示同时使用上升沿和下降沿?
明空 发表于 2013-1-29 00:23 | 显示全部楼层
时钟倍频后使用上升沿
atua 发表于 2013-1-29 11:10 | 显示全部楼层
明空 发表于 2013-1-29 00:23
时钟倍频后使用上升沿

也可以反向后上升沿啊
千里风123 发表于 2013-1-29 11:20 | 显示全部楼层
if(clk'event and clk=1'1)then
temp1<=clkin;
temp2<=temp1;
if(temp1='1' and temp2='0')then
//clkin上升沿检测到
if(temp1='0' and temp2='1')then
//clkin下降沿检测到
薇儿安蓝 发表于 2013-1-31 10:31 | 显示全部楼层
千里风123 发表于 2013-1-29 11:20
if(clk'event and clk=1'1)then
temp1

好思路啊,试试能不能实现
您需要登录后才可以回帖 登录 | 注册

本版积分规则

10

主题

155

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部