集成电路技术分享

 找回密码
 我要注册

QQ登录

只需一步,快速开始

搜索
查看: 8024|回复: 15

1.两句if语句,一个没有elsif,问有没有区别2.latch与flip-flop的区别大家说说!

[复制链接]
ups 发表于 2010-6-28 00:45:08 | 显示全部楼层 |阅读模式
1.两句if语句,一个没有elsif,问有没有区别2.latch与flip-flop的区别大家说说!
interi 发表于 2010-6-28 02:20:56 | 显示全部楼层
1.当然有区别<br>
2电平触发和边沿触发
interige 发表于 2010-6-28 02:26:42 | 显示全部楼层
如果if语句没有else的话就会综合出锁存器。
inter 发表于 2010-6-28 04:09:54 | 显示全部楼层
当然有区别
FFT 发表于 2010-6-28 04:15:24 | 显示全部楼层
原帖由 &lt;i&gt;heguo1983@hot&lt;/i&gt; 于 2007-8-7 13:49 发表 &lt;a href="http://www.edacn.net/bbs/redirect.php?goto=findpost&amp;pid=812261&amp;ptid=95939" target="_blank"&gt;&lt;img src="http://www.edacn.net/bbs/images/common/back.gif" border="0" onload="if(this.width&gt;screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width&gt;screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open(this.src);}" onmousewheel="return imgzoom(this);" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;<br>
1.当然有区别&lt;br /&gt;<br>
2电平触发和边沿触发 &lt;br /&gt;
ngtim 发表于 2010-6-28 05:10:32 | 显示全部楼层
没注意过诶!学习了,呵呵!
ICE 发表于 2010-6-28 06:33:35 | 显示全部楼层
就是就是 没有else if 是会多个锁存器
HANG 发表于 2010-6-28 07:38:44 | 显示全部楼层
Verilog中<br>
&nbsp;&nbsp;if(cond1)<br>
   if(cond2)<br>
 和<br>
 if(cond1)<br>
 else if(cond2)<br>
这就是为何会综合出锁存器的原因吧。
ANG 发表于 2010-6-28 08:12:49 | 显示全部楼层
点评触发。和边沿触发
inter 发表于 2010-6-28 08:54:55 | 显示全部楼层
两个 if连用可以么?
您需要登录后才可以回帖 登录 | 我要注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

QQ|小黑屋|手机版|Archiver|集成电路技术分享 ( 京ICP备20003123号-1 )

GMT+8, 2024-5-18 19:07 , Processed in 0.073195 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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