ups 发表于 2010-6-28 00:45:08

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

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] 2
查看完整版本: 1.两句if语句,一个没有elsif,问有没有区别2.latch与flip-flop的区别大家说说!