亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ch04.1.htm

?? Verilog DHL教程
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
</TABLE></P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=8190"></A>Table&nbsp;4-18: Reduction&nbsp;unarynand operator</CAPTION><TR><TH><P CLASS="CellHeading"><A NAME="pgfId=8200"></A>&amp;</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=8202"></A>0</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=8204"></A>1</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=8206"></A>x</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=8208"></A>z</TH></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=8210"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8212"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8214"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8216"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8218"></A>1</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=8220"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8222"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8224"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8226"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8228"></A>x</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=8230"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8232"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8234"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8236"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8238"></A>x</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=8240"></A>z</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8242"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8244"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8246"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8248"></A>x</TD></TR></TABLE></P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=8255"></A>Table&nbsp;4-19: Reductionunary &nbsp;exclusive nor operator</CAPTION><TR><TH><P CLASS="CellHeading"><A NAME="pgfId=8265"></A>|</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=8267"></A>0</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=8269"></A>1</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=8271"></A>x</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=8273"></A>z</TH></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=8275"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8277"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8279"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8281"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8283"></A>x</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=8285"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8287"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8289"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8291"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8293"></A>1</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=8295"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8297"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8299"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8301"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8303"></A>x</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=8305"></A>z</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8307"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8309"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8311"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=8313"></A>x</TD></TR></TABLE></P><P><P CLASS="Body"><A NAME="pgfId=1077"></A><A HREF="#pgfId=632">Table&nbsp;4-23</A>shows the results of applying reduction operators on different operands.</P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=632"></A>Table&nbsp;4-23: Results ofunary reduction operations</CAPTION><TR><TH><P CLASS="CellHeading"><A NAME="pgfId=701"></A>Operand</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=832"></A>&amp;</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=1241"></A>~&amp;</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=1242"></A>|</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=1243"></A>~|</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=1244"></A>^</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=1245"></A>~^</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=833"></A>comments</TH></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=834"></A>4'b0000</TD><TD><P CLASS="CellBody"><A NAME="pgfId=835"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1246"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1247"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1248"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1249"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1250"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=836"></A>No bits set</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=837"></A>4'b1111</TD><TD><P CLASS="CellBody"><A NAME="pgfId=866"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1251"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1252"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1253"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1254"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1255"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1261"></A>all bits set</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=889"></A>4'b0110</TD><TD><P CLASS="CellBody"><A NAME="pgfId=890"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1256"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1257"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1258"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1259"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1260"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=891"></A>even number of bits set</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=867"></A>4'b1000</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1262"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1263"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1264"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1265"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1266"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1267"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1268"></A>odd number of bits set</TD></TR></TABLE><P CLASS="SubSection"><A NAME="pgfId=638"></A>Shift operators</P><P><P CLASS="Body"><A NAME="pgfId=639"></A>The <I>shift operators</I> ,&lt;&lt; and &gt;&gt;, shall perform left and right shifts of their leftoperand by the number of bit positions given by the right operand. Bothshift operators shall fill the vacated bit positions with zeroes. If theright operand has an unknown or high impedance value then the result shallbe unknown. If the right operand is negative, the result shall remain thesame as the left operand--that is, the left operand shall not be shifted.</P><PRE><B>module</B> shift;<B>reg</B> [3:0] start, result;<B>initial begin</B>	start = 1;	    result = (start &lt;&lt; 2);<B>end</B><B>endmodule</B></PRE><P><P CLASS="Body"><A NAME="pgfId=642"></A>In this example, the register<CODE>result</CODE> is assigned the binary value <CODE>0100</CODE> , whichis <CODE>0001</CODE> shifted to the left two positions and zero filled.</P><P><P CLASS="SubSection"><A NAME="pgfId=644"></A>Conditional operator</P><P><P CLASS="Body"><A NAME="pgfId=645"></A>The <I>conditional operator</I>, also known as <I>ternary operator</I> , shall be right associative andshall be constructed using three operands separated by two operators inthe following format:</P><PRE>conditional_expression ::= expression1 <B>?</B> expression2 <B>:</B> expression3</PRE><P><P CLASS="BNFCapBody"><A NAME="pgfId=957"></A>Syntax&nbsp;4-1: Syntaxfor conditional expression</P><P><P CLASS="Body"><A NAME="pgfId=647"></A>The evaluation of a conditionalexpression shall begin with the evaluation of expression1. If expression1evaluates to false (0), then expression3 shall be evaluated and used asthe result of the conditional expression. If expression1 evaluates to true(known value other than 0), then expression2 is evaluated and used as theresult. If expression1 evaluates to ambiguous value (<CODE> x</CODE> or<CODE>z</CODE> ), then both expression2 and expression3 shall be evaluatedand their results shall be combined, bit by bit, using <A HREF="#pgfId=1281">Table&nbsp;4-24</A>to calculate the final result. If the lengths of the operands are different,the shorter operand shall be lengthened to match the longer and zero filledfrom the left (the high-order end).</P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=1281"></A>Table&nbsp;4-24: Ambiguouscondition results for conditional operator</CAPTION><TR><TH><P CLASS="CellHeading"><A NAME="pgfId=495"></A>?:</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=636"></A>0</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=637"></A>1</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=643"></A>x</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=646"></A>z</TH></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=653"></A><B>0</B></TD><TD><P CLASS="CellBody"><A NAME="pgfId=664"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=958"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=959"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=960"></A>x</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=665"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=666"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=961"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=965"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=966"></A>x</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=667"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=827"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=967"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1073"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1074"></A>x</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=828"></A>z</TD><TD><P CLASS="CellBody"><A NAME="pgfId=829"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1075"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1269"></A>x</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1270"></A>x</TD></TR></TABLE></P><P><P CLASS="Body"><A NAME="pgfId=830"></A>The following example of a tri-stateoutput bus illustrates a common use of the conditional operator.</P><PRE><B>wire</B> [15:0]&nbsp;busa&nbsp;=&nbsp;drive_busa&nbsp;?&nbsp;data&nbsp;:&nbsp;16'bz;</PRE><P><P CLASS="Body"><A NAME="pgfId=652"></A>The bus called <CODE>data</CODE>is driven onto <CODE>busa</CODE> when <CODE>drive_busa</CODE> is <CODE>1</CODE>. If <CODE>drive_busa</CODE> is unknown, then an unknown value is drivenonto <CODE>busa</CODE> . Otherwise, <CODE>busa</CODE> is not driven.</P><P><P CLASS="SubSection"><A NAME="pgfId=654"></A>Concatenations</P><P><P CLASS="Body"><A NAME="pgfId=655"></A>A concatenation is the joiningtogether of bits resulting from two or more expressions. The concatenationshall be expressed using the brace characters { and }, with commas separatingthe expressions within.</P><P><P CLASS="Body"><A NAME="pgfId=659"></A>Unsized constant numbers shallnot be allowed in concatenations. This is because the size of each operandin the concatenation is needed to calculate the complete size of the concatenation.</P><P><P CLASS="Body"><A NAME="pgfId=1271"></A>The next example concatenatesfour expressions:</P><PRE>{a,&nbsp;b[3:0],&nbsp;w,&nbsp;3'b101}</PRE><P><P CLASS="Body"><A NAME="pgfId=657"></A>and it is equivalent to the followingexample:</P><PRE>{a,&nbsp;b[3],&nbsp;b[2],&nbsp;b[1],&nbsp;b[0],&nbsp;w,&nbsp;1'b1,&nbsp;1'b0,&nbsp;1'b1}</PRE><P><P CLASS="Body"><A NAME="pgfId=660"></A>Concatenations can be expressedusing a repetition multiplier as shown in the next example.</P><PRE>{4{w}} // This is equivalent to {w,&nbsp;w,&nbsp;w,&nbsp;w}</PRE><P><P CLASS="Body"><A NAME="pgfId=662"></A>If a repetition multiplier isused on a function call operand, the function need not be evaluated multipletimes. For example,</P><PRE>result = {4{func(w)}}</PRE><P><P CLASS="Body"><A NAME="pgfId=1280"></A>may be computed as</P><PRE>result = {func(w), func(w), func(w), func(w)}</PRE><P><P CLASS="Body"><A NAME="pgfId=1287"></A>or</P><PRE>y = func(w) ;result = {y, y, y, y}</PRE><P><P CLASS="Body"><A NAME="pgfId=1279"></A>This is another form of expressionevaluation short-circuiting.</P><P><P CLASS="Body"><A NAME="pgfId=789"></A>The next example illustratesnested concatenations.</P><PRE>{b,&nbsp;{3{a,&nbsp;b}}} // This is equivalent to {b,&nbsp;a,&nbsp;b,&nbsp;a,&nbsp;b,&nbsp;a,&nbsp;b}</PRE><P><P CLASS="Body"><A NAME="pgfId=485"></A>The repetition multiplier mustbe a constant expression.</P><P><HR ALIGN=LEFT></P><P><A HREF="ch04.htm">Chapter&nbsp;&nbsp;start</A>&nbsp;&nbsp;&nbsp;<A HREF="ch04.htm">Previous&nbsp;&nbsp;page</A>&nbsp;&nbsp;<A HREF="ch04.2.htm">Next&nbsp;&nbsp;page</A></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区三区高清免费看看| 日本不卡123| 99久久婷婷国产| 国产精品女人毛片| 99久久夜色精品国产网站| 国产精品久久久久久久久快鸭| 成人av中文字幕| 亚洲精品国久久99热| 欧美日韩国产另类不卡| 日本网站在线观看一区二区三区| 日韩欧美激情一区| 国产91综合一区在线观看| 中文字幕免费不卡| 在线视频欧美区| 美腿丝袜亚洲三区| 国产人妖乱国产精品人妖| 成人v精品蜜桃久久一区| 亚洲欧美成aⅴ人在线观看| 欧美性猛片aaaaaaa做受| 美女精品自拍一二三四| 欧美激情一区二区三区| 欧美视频你懂的| 美国毛片一区二区| 欧美国产97人人爽人人喊| 91国产免费观看| 捆绑调教美女网站视频一区| 国产午夜精品久久久久久免费视| 色综合久久99| 久草精品在线观看| 国产精品久久久久天堂| 欧美高清www午色夜在线视频| 国产在线精品一区二区| 怡红院av一区二区三区| 日韩欧美二区三区| 91丨porny丨国产| 精品一区二区三区日韩| 亚洲综合色噜噜狠狠| 久久综合精品国产一区二区三区| 色爱区综合激月婷婷| 激情综合色丁香一区二区| 亚洲综合久久久久| 精品日韩99亚洲| 欧洲av在线精品| 成人三级伦理片| 久久 天天综合| 午夜亚洲福利老司机| 国产精品黄色在线观看| 日韩欧美国产三级| 欧美日韩视频一区二区| 99久久夜色精品国产网站| 狠狠色丁香久久婷婷综合_中| 亚洲国产视频在线| 亚洲国产精品国自产拍av| 日韩欧美一二区| 制服丝袜日韩国产| 欧美在线不卡视频| 99久久综合精品| 国产寡妇亲子伦一区二区| 久久国产精品免费| 日韩电影在线一区| 天天操天天色综合| 午夜精品福利一区二区蜜股av | 在线不卡的av| 一本色道久久加勒比精品 | 国产精品天美传媒| 精品国精品国产尤物美女| 51久久夜色精品国产麻豆| 91福利国产成人精品照片| av动漫一区二区| eeuss影院一区二区三区| 国产馆精品极品| 国产传媒一区在线| 国产一区二区三区av电影| 极品销魂美女一区二区三区| 久久国产尿小便嘘嘘| 麻豆精品视频在线观看免费| 日本麻豆一区二区三区视频| 日韩福利电影在线| 久久er99热精品一区二区| 久久99国产精品久久| 韩国v欧美v日本v亚洲v| 国产在线精品一区二区夜色| 激情深爱一区二区| 国产精品羞羞答答xxdd| 国产一区二区免费在线| 夫妻av一区二区| 成人午夜电影久久影院| 91在线观看成人| 在线免费观看日本欧美| 欧美日韩mp4| 欧美一区二区黄| 2023国产精华国产精品| 国产免费观看久久| 国产精品原创巨作av| 不卡电影一区二区三区| 久久久不卡网国产精品二区| 久久精品夜色噜噜亚洲a∨| 欧美国产禁国产网站cc| 国产精品女同互慰在线看| 成人免费在线观看入口| 悠悠色在线精品| 免费av网站大全久久| 国产中文字幕精品| 成人免费毛片a| 欧美四级电影网| 日韩精品专区在线影院重磅| 国产欧美日韩另类一区| 日韩一区二区三区免费观看| 亚洲国产精品麻豆| 日本高清视频一区二区| 一本到不卡精品视频在线观看| 欧美网站一区二区| 精品免费日韩av| 综合久久给合久久狠狠狠97色 | 国产成人免费在线视频| 99久久久久久| 日韩一区二区三区在线视频| 国产精品乱人伦中文| 日欧美一区二区| 国产不卡免费视频| 欧美人成免费网站| 国产无人区一区二区三区| 亚洲免费大片在线观看| 免费高清在线视频一区·| 成人激情免费视频| 欧美一级艳片视频免费观看| 久久久久久日产精品| 亚洲成年人网站在线观看| 成人网在线播放| 日韩免费电影网站| 亚洲老妇xxxxxx| 国产麻豆午夜三级精品| 欧美日韩国产色站一区二区三区| 国产嫩草影院久久久久| 卡一卡二国产精品| 欧美性大战久久| 国产精品视频yy9299一区| 日本成人超碰在线观看| 日本精品一区二区三区四区的功能| 久久久久久久久久久99999| 日本三级韩国三级欧美三级| 91视频91自| 国产欧美日韩在线| 另类小说一区二区三区| 欧美在线观看视频在线| 国产精品短视频| 成人精品gif动图一区| 精品国产一区a| 美国三级日本三级久久99| 欧美精品在线一区二区三区| 亚洲美女偷拍久久| 国产成+人+日韩+欧美+亚洲| 精品国产成人系列| 免费高清视频精品| 337p亚洲精品色噜噜噜| 天天影视涩香欲综合网 | 日韩一级欧美一级| 三级成人在线视频| 欧美视频完全免费看| 一区二区日韩电影| 在线视频国产一区| 亚洲日本va在线观看| 91在线看国产| 亚洲女人****多毛耸耸8| 99精品黄色片免费大全| 亚洲视频免费看| 色域天天综合网| 亚洲精品亚洲人成人网| 91在线你懂得| 一区二区激情视频| 一本色道a无线码一区v| 亚洲激情成人在线| 欧美伊人久久久久久久久影院 | 美女视频黄频大全不卡视频在线播放| 欧美日韩大陆在线| 奇米一区二区三区| 久久老女人爱爱| 顶级嫩模精品视频在线看| 国产精品美女久久久久久久久| 成人av网站大全| 亚洲精品视频观看| 欧美日本韩国一区二区三区视频| 日日夜夜精品视频天天综合网| 91精品国产高清一区二区三区| 美女脱光内衣内裤视频久久影院| 精品国产免费人成在线观看| 国产成人在线免费观看| 国产精品久久久久aaaa| 91传媒视频在线播放| 亚洲成av人片观看| 欧美精品一区二区三区一线天视频| 国产精品18久久久久久久久久久久 | 亚洲欧美日韩中文播放| 欧美优质美女网站| 久久不见久久见免费视频7| 国产欧美日韩久久| 欧美在线观看一二区| 精品亚洲成a人在线观看| 国产精品成人一区二区艾草| 欧美日韩三级在线|