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

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

?? ch04.1.htm

?? Verilog DHL教程
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
the result of the expression can be determined as zero without evaluatingthe sub-expression <CODE>regB | regC</CODE> .</P><P><P CLASS="SubSection"><A NAME="pgfId=711"></A>Arithmetic operators</P><P><P CLASS="Body"><A NAME="pgfId=568"></A>The binary arithmetic operatorsare the following:</P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=775"></A>Table&nbsp;4-5: Arithmeticoperators defined</CAPTION><TR><TD><P CLASS="CellBody"><A NAME="pgfId=841"></A><CODE>a + b</CODE></TD><TD><P CLASS="CellBody"><A NAME="pgfId=842"></A>a plus b</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=972"></A>a<CODE> - </CODE>b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=973"></A>a minus b</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=974"></A>a<CODE> * b</CODE></TD><TD><P CLASS="CellBody"><A NAME="pgfId=975"></A>a multiply by b</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=976"></A><CODE>a / b</CODE></TD><TD><P CLASS="CellBody"><A NAME="pgfId=977"></A>a divide by b</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=978"></A><CODE>a % b</CODE></TD><TD><P CLASS="CellBody"><A NAME="pgfId=979"></A>a modulo b</TD></TR></TABLE><P CLASS="Body"><A NAME="pgfId=572"></A>The integer division shall truncateany fractional part. The modulus operator, for example <CODE>y % z</CODE>, gives the remainder when the first operand is divided by the second, andthus is zero when <CODE>z</CODE> divides <CODE>y</CODE> exactly. The resultof a modulus operation shall take the sign of the first operand.</P><P><P CLASS="Body"><A NAME="pgfId=576"></A>The unary arithmetic operatorsshall take precedence over the binary operators. The unary operators arethe following:</P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=571"></A>Table&nbsp;4-6: Unary operatorsdefined</CAPTION><TR><TD><P CLASS="CellBody"><A NAME="pgfId=840"></A>+m</TD><TD><P CLASS="CellBody"><A NAME="pgfId=980"></A>unary plus m (same as m)</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=981"></A>-m</TD><TD><P CLASS="CellBody"><A NAME="pgfId=982"></A>unary minus m</TD></TR></TABLE><P CLASS="Body"><A NAME="pgfId=575"></A>For the arithmetic operators, ifany operand bit value is the unknown value <CODE>x</CODE> , or high impedancevalue <CODE>z</CODE> , then the entire result value shall be <CODE>x</CODE>.</P><P><P CLASS="Body"><A NAME="pgfId=952"></A><A HREF="#pgfId=555">Table&nbsp;4-7</A>gives examples of modulus operations.</P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=555"></A>Table&nbsp;4-7: Examples ofmodulus operations</CAPTION><TR><TH><P CLASS="CellHeading"><A NAME="pgfId=1046"></A>Modulus Expression</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=1047"></A>Result</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=1048"></A>Comments</TH></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1049"></A>10 % 3</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1050"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1051"></A>10/3 yields a remainder of1</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1052"></A>11 % 3</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1053"></A>2</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1054"></A>11/3 yields a remainder of2</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1055"></A>12 % 3</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1056"></A>0</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1057"></A>12/3 yields no remainder</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1058"></A>-10 % 3</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1059"></A>-1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1060"></A>the result takes the sign ofthe first operand</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1061"></A>11 % -3</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1062"></A>2</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1067"></A>the result takes the sign ofthe first operand</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1064"></A>-4'd12 % 3</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1065"></A>1</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1066"></A>-4'd12 is seen as a large,positive number that leaves a remainder of 1 when divided by 3</TD></TR></TABLE><P CLASS="SubSection"><A NAME="pgfId=520"></A>Arithmetic expressions withregisters and integers</P><P><P CLASS="Body"><A NAME="pgfId=942"></A>An arithmetic operation on areg type register shall be treated differently than an arithmetic operationon an integer data type. A reg data type shall be treated as an <I>unsigned</I>value and an integer data type shall be treated as a <I>signed</I> value.Thus, if a sized constant with a negative value is stored in a reg typeregister, a positive constant which is a two's complement of the sized constantshall be the value stored in the reg type register. When this register isused in an arithmetic expression, the positive constant shall be used asthe value of the register. In contrast, if a sized constant with a negativevalue is stored in an integer type register and used in an arithmetic expression,the expression shall evaluate using signed arithmetic.</P><P><P CLASS="Body"><A NAME="pgfId=933"></A><A HREF="#pgfId=939">Table&nbsp;4-8</A>lists how arithmetic operators interpret each data type</P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=939"></A>Table&nbsp;4-8: Data typeinterpretation by arithmetic operators</CAPTION><TR><TH><P CLASS="CellHeading"><A NAME="pgfId=1290"></A>Data Type</TH><TH><P CLASS="CellHeading"><A NAME="pgfId=1291"></A>Interpretation</TH></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1292"></A>net</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1293"></A>unsigned</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1294"></A>reg</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1302"></A>unsigned</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1296"></A>integer</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1303"></A>signed, two's complement</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1298"></A>time</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1304"></A>unsigned</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1300"></A>real, realtime</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1305"></A>signed, floating point</TD></TR></TABLE></P><P><P CLASS="Body"><A NAME="pgfId=971"></A>The example below shows variousways to divide<I> </I>&quot;minus twelve by three&quot;--using <B>integer</B>and <B>reg</B> data types in expressions.</P><PRE><B>integer</B> intA;<B>reg</B> [15:0] regA;intA = -4'd12;regA = intA / 3;   // expression result is -4,                   // intA is an integer data typeregA = -4'd12;     // regA is 65524intA = regA / 3;   // expression result is 21841,                   // regA is a reg data type.intA = -4'd12 / 3; // expression result is 1431655761.                   // -4'd12 is effectively a reg data typeregA = -12 / 3;    // expression result is -4, -12 is effectively                   // an integer data type. regA is 65532</PRE><P><P CLASS="SubSection"><A NAME="pgfId=584"></A>Relational operators</P><P><P CLASS="Body"><A NAME="pgfId=574"></A><A HREF="#pgfId=499">Table&nbsp;4-9</A>lists and defines the relational operators.</P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=499"></A>Table&nbsp;4-9: The relationaloperators defined</CAPTION><TR><TD><P CLASS="CellBody"><A NAME="pgfId=501"></A>a&nbsp;&lt;&nbsp;b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=504"></A>a&nbsp;less&nbsp;than&nbsp;b</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=516"></A>a&nbsp;&gt;&nbsp;b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=517"></A>a&nbsp;greater&nbsp;than&nbsp;b</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=518"></A>a&nbsp;&lt;=&nbsp;b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=519"></A>a&nbsp;less&nbsp;than&nbsp;or&nbsp;equal&nbsp;to&nbsp;b</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=521"></A>a&nbsp;&gt;=&nbsp;b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=573"></A>a&nbsp;greater&nbsp;than&nbsp;or&nbsp;equal&nbsp;to&nbsp;b</TD></TR></TABLE><P CLASS="Body"><A NAME="pgfId=1068"></A>An expression using these <I>relationaloperators</I> shall yield the scalar value <CODE>0</CODE> if the specifiedrelation is <I>false</I> , or the value <CODE>1</CODE> if it is <I>true</I>. If, due to unknown or high impedance bits in the operands, the relationis <I>ambiguous</I> , then the result shall be one bit unknown value <CODE>(x)</CODE>.</P><P><P CLASS="Body"><A NAME="pgfId=914"></A>When two operands of unequalbit-lengths are used, the smaller operand shall be zero filled on the mostsignificant bit side to extend to the size of the larger operand.</P><P><P CLASS="Body"><A NAME="pgfId=589"></A>All the relational operatorsshall have the same precedence. Relational operators shall have lower precedencethan arithmetic operators.</P><P><P CLASS="Body"><A NAME="pgfId=764"></A>The following examples illustratethe implications of this precedence rule:</P><PRE>a&nbsp;&lt;&nbsp;foo - 1   // this expression is the same asa&nbsp;&lt;&nbsp;(foo - 1) // this expression, but . . .foo&nbsp;-&nbsp;(1&nbsp;&lt;&nbsp;a) // this one is not the same as foo&nbsp;-&nbsp;1&nbsp;&lt;&nbsp;a   // this expression</PRE><P><P CLASS="Body"><A NAME="pgfId=591"></A>When <CODE>foo - (1 &lt; a)</CODE>evaluates, the relational expression evaluates first and then either zeroor one is subtracted from <CODE>foo</CODE> . When <CODE>foo - 1 &lt; a</CODE>evaluates, the value of <CODE>foo</CODE> operand is reduced by one and thencompared with <CODE>a</CODE> .</P><P><P CLASS="SubSection"><A NAME="pgfId=593"></A>Equality operators</P><P><P CLASS="Body"><A NAME="pgfId=1072"></A>The <I>equality operators</I>shall rank lower in precedence than the relational operators. <A HREF="#pgfId=585">Table&nbsp;4-10</A>lists and defines the equality operators.</P><P><TABLE BORDER="1" CELLSPACING="2" CELLPADDING="2"><CAPTION ALIGN="TOP"><P CLASS="TableTitle"><A NAME="pgfId=585"></A>Table&nbsp;4-10: The equalityoperators defined</CAPTION><TR><TD><P CLASS="CellBody"><A NAME="pgfId=587"></A>a&nbsp;=== b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=588"></A>a&nbsp;equal&nbsp;to&nbsp;b,&nbsp;including&nbsp;x&nbsp;and&nbsp;z</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=592"></A>a&nbsp;!== b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=868"></A>a&nbsp;not&nbsp;equal&nbsp;to&nbsp;b,&nbsp;including&nbsp;x&nbsp;and&nbsp;z</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1063"></A>a&nbsp;&nbsp;== b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1069"></A>a&nbsp;equal&nbsp;to&nbsp;b,&nbsp;result&nbsp;maybe&nbsp;unknown</TD></TR><TR><TD><P CLASS="CellBody"><A NAME="pgfId=1070"></A>a&nbsp;&nbsp;!= b</TD><TD><P CLASS="CellBody"><A NAME="pgfId=1071"></A>a&nbsp;not&nbsp;equal&nbsp;to&nbsp;b,&nbsp;result&nbsp;maybe&nbsp;unknown</TD></TR></TABLE><P CLASS="Body"><A NAME="pgfId=597"></A>All four equality operators shallhave the same precedence. These four operators compare operands bit forbit, with zero filling if the two operands are of unequal bit-length. Aswith the relational operators, the result shall be <CODE>0</CODE> if comparisonfails, 1 if it succeeds.</P><P><P CLASS="Body"><A NAME="pgfId=598"></A>For the<I> logical equality</I>and <I>logical inequality</I> operators (<CODE> ==</CODE> and <CODE>!=</CODE>), if either operand contains an <CODE>x</CODE> or a <CODE>z</CODE> , thenthe result shall be the unknown value (<CODE> x</CODE> ).</P><P><P CLASS="Body"><A NAME="pgfId=599"></A>For the <I>case equality</I>and <I>case inequality</I> operators(<CODE> ===</CODE> and <CODE>!==</CODE>), the comparison shall be done just as it is in the procedural case statement(see 9.5). Bits which are <CODE>x</CODE> or <CODE>z</CODE> shall be includedin the comparison and must match for the result to be true. The result ofthese operators shall always be a known value, either <CODE>1</CODE> or<CODE>0</CODE> .</P><P><P CLASS="SubSection"><A NAME="pgfId=601"></A>Logical operators</P><P><P CLASS="Body"><A NAME="pgfId=602"></A>The operators <I>logical and</I>(<CODE> &amp;&amp;</CODE> ) and <I>logical or</I> (||) are logical connectives.The result of the evaluation of a logical comparison shall be <CODE>1</CODE>(defined as true), <CODE>0</CODE> (defined as false), or, if the resultis ambiguous, then the result shall be the unknown value (<CODE> x</CODE>). The precedence of <CODE>&amp;&amp;</CODE> is greater than that of <CODE>||</CODE>, and both are lower than relational and equality operators.</P><P><P CLASS="Body"><A NAME="pgfId=984"></A>A third logical operator is theunary <I>logical negation</I> operator <CODE>!</CODE> . The negation operatorconverts a non-zero or true operand into <CODE>0</CODE> and a zero or falseoperand into <CODE>1</CODE> . An ambiguous truth value remains as <CODE>x</CODE>.</P><P><P CLASS="Body"><A NAME="pgfId=983"></A>1. If register <CODE>alpha</CODE>holds the integer value 237 and <CODE>beta</CODE> holds the value zero,then the following examples perform as described:</P><PRE>regA = alpha &amp;&amp; beta; // regA is set to 0regB&nbsp;=&nbsp;alpha || beta; // regB is set to 1</PRE><P><P CLASS="Body"><A NAME="pgfId=604"></A>2. The following expression performsa logical and of three sub-expressions without needing any parentheses:</P><PRE>a&nbsp;&lt;&nbsp;size-1&nbsp;&amp;&amp;&nbsp;b&nbsp;!=&nbsp;c&nbsp;&amp;&amp;&nbsp;index&nbsp;!=&nbsp;lastone</PRE><P><P CLASS="Body"><A NAME="pgfId=606"></A>However, it is recommended for

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人动漫在线观看| 国产亚洲精品免费| 欧洲精品在线观看| 懂色av中文一区二区三区| 捆绑调教一区二区三区| 久久精品国产网站| 麻豆成人综合网| 亚洲欧洲三级电影| 国产精品看片你懂得| 久久精品免费在线观看| 国产精品素人一区二区| 国产精品美女一区二区在线观看| 国产精品久久久久久福利一牛影视 | 亚洲成av人影院| 亚洲成人综合在线| 日韩av电影免费观看高清完整版在线观看| 亚洲美女区一区| 男女性色大片免费观看一区二区| 日韩激情在线观看| 国产一区二区三区蝌蚪| 国产精品亚洲第一区在线暖暖韩国| 国产一区二区三区在线看麻豆| 韩国v欧美v日本v亚洲v| av高清久久久| 欧美日韩免费视频| 久久久国产精华| 亚洲欧洲一区二区三区| 国产日本一区二区| 亚洲视频1区2区| 午夜精品福利一区二区蜜股av | av福利精品导航| 欧美少妇xxx| 日韩欧美一二区| 国产精品久久毛片| 亚洲精品亚洲人成人网| 日韩高清在线观看| 国产高清久久久久| 一本大道久久a久久精品综合| 欧美日韩精品综合在线| 日韩一区二区免费高清| 椎名由奈av一区二区三区| 亚洲第一电影网| 不卡影院免费观看| 在线一区二区观看| 久久―日本道色综合久久| 亚洲精品午夜久久久| 美女久久久精品| 91免费看视频| 在线视频一区二区三| xfplay精品久久| 亚洲人吸女人奶水| 国内精品在线播放| 91国产免费观看| 中文字幕一区二区在线观看| 亚洲一区二区三区精品在线| 成人免费毛片a| 4438成人网| 国产欧美日本一区二区三区| 香蕉久久夜色精品国产使用方法| 成人综合激情网| 国产日韩精品一区二区三区| 丝袜诱惑亚洲看片| 欧美性视频一区二区三区| 久久久精品影视| 国产一区福利在线| 欧美一区二区三区免费| 亚洲第一成年网| 91最新地址在线播放| 精品久久久久久久久久久久久久久 | 欧美一三区三区四区免费在线看 | 国产精品中文字幕日韩精品 | 狠狠色丁香婷婷综合久久片| 69久久99精品久久久久婷婷| 亚洲精品中文字幕乱码三区| 色天天综合色天天久久| 国产三级一区二区| 午夜精品福利久久久| 欧美一区日本一区韩国一区| 亚洲综合一区二区精品导航| 色综合色综合色综合色综合色综合 | 亚洲欧美在线另类| 国产69精品久久777的优势| 欧美大片免费久久精品三p| 视频精品一区二区| 91精品国产综合久久蜜臀| 国产精品福利一区二区三区| 成人少妇影院yyyy| ...xxx性欧美| 色综合天天综合色综合av| 中文字幕精品一区| 91色在线porny| 一区二区三区欧美| 日韩一级大片在线| 捆绑调教美女网站视频一区| 日本一区二区三区视频视频| 成人av资源下载| 午夜av一区二区三区| 这里只有精品99re| 国产精品123区| 国产精品日日摸夜夜摸av| 91欧美一区二区| 日日欢夜夜爽一区| 国产免费观看久久| 99久久综合狠狠综合久久| 午夜精品福利一区二区蜜股av| 制服丝袜av成人在线看| 国产69精品久久777的优势| 亚洲精品一二三区| 欧美成人伊人久久综合网| 国产成人在线视频网站| 亚洲综合色丁香婷婷六月图片| 91免费版pro下载短视频| 午夜精品一区二区三区三上悠亚| 欧美人妇做爰xxxⅹ性高电影 | 91精品国产综合久久久久久久 | 亚洲欧美日韩一区二区| 欧美日韩一级大片网址| 日本vs亚洲vs韩国一区三区 | 成人app在线| 免费久久精品视频| 国产日韩欧美a| 欧美日韩不卡一区二区| 韩国视频一区二区| 一区二区三区91| www国产成人| 欧美日韩成人一区二区| 国产精品香蕉一区二区三区| 香蕉成人伊视频在线观看| 国产色综合一区| 在线观看亚洲一区| 国产成人免费视频网站| 亚洲乱码中文字幕综合| 国产色一区二区| 在线观看成人小视频| k8久久久一区二区三区| 久久国产欧美日韩精品| 玉米视频成人免费看| 欧美激情综合五月色丁香| 2021中文字幕一区亚洲| 精品视频一区二区三区免费| 色噜噜狠狠色综合欧洲selulu| 精品制服美女丁香| 日产欧产美韩系列久久99| 一区二区三区精密机械公司| 国产精品超碰97尤物18| 久久久九九九九| 欧美一区二区三区在线观看视频| 一本大道久久精品懂色aⅴ| 老司机精品视频在线| 午夜电影一区二区| 欧美激情一区二区三区全黄 | 日韩一卡二卡三卡| 欧美一区二区日韩一区二区| 欧美色图在线观看| 欧美日韩成人综合天天影院| 欧美做爰猛烈大尺度电影无法无天| 波多野结衣的一区二区三区| 国产成人日日夜夜| 波多野洁衣一区| av一本久道久久综合久久鬼色| av日韩在线网站| 91美女视频网站| 国产精品自产自拍| 床上的激情91.| aaa亚洲精品一二三区| 99re热视频这里只精品| 色网综合在线观看| 欧美丰满嫩嫩电影| 欧美一区二区三区色| 久久精品免视看| 中文字幕一区二区三区在线播放| 亚洲激情六月丁香| 婷婷六月综合网| 国产在线不卡一卡二卡三卡四卡| 国产美女娇喘av呻吟久久| 北条麻妃国产九九精品视频| 国产麻豆精品视频| 色综合久久久久综合体| 成人久久18免费网站麻豆 | 日精品一区二区三区| 国产美女一区二区三区| 成人av免费观看| 日韩欧美一级片| 国产精品视频你懂的| 日韩电影在线观看电影| 精品一区二区三区在线观看| 91免费视频网址| 欧美这里有精品| 国产日产欧美精品一区二区三区| 国产精品一区二区在线观看不卡 | 欧美激情在线免费观看| 亚洲老司机在线| 裸体歌舞表演一区二区| 在线观看视频一区| 欧美成人a在线| 亚洲成人7777| 成人av网站在线观看免费| 在线播放视频一区| 亚洲女同ⅹxx女同tv| 韩国欧美一区二区|