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

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

?? ch16.3.htm

?? Verilog DHL教程
?? HTM
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML EXPERIMENTAL 970324//EN"><HTML><HEAD><META NAME="GENERATOR" CONTENT="Adobe FrameMaker 5.5/HTML Export Filter"><LINK REL="STYLESHEET" HREF="ch16.css"><TITLE> 16.3	`define and `undef</TITLE></HEAD><BODY BGCOLOR="#ffffff"><DIV><HR><P><A HREF="ch16.htm">Chapter&nbsp;&nbsp;start</A>&nbsp;&nbsp;&nbsp;<A HREF="ch16.2.htm">Previous&nbsp;&nbsp;page</A>&nbsp;&nbsp;<A HREF="ch16.4.htm">Next&nbsp;&nbsp;page</A></P></DIV><H1 CLASS="Section"><A NAME="pgfId=173"> </A>16.3	<A NAME="99540"> </A><A NAME="marker=21"> </A>`define and `undef<A NAME="marker=22"> </A></H1><P CLASS="Body"><A NAME="pgfId=180"> </A><EM CLASS="-">A text macro substitution facility has been provided so that meaningful names can be used to represent commonly used pieces of text. For example, in the situation where a constant number is repetitively used throughout a description, a text macro would be useful in that only one place in the source description would need to be altered if the value of the constant needed to be changed.</EM></P><P CLASS="SubSection"><A NAME="pgfId=164"> </A>`de<EM CLASS="-"></EM>fine<A NAME="marker=85"> </A></P><P CLASS="Body"><A NAME="pgfId=149"> </A>The directive <B CLASS="Keyword">`define</B> creates a <A NAME="marker=10"> </A>macro for <A NAME="marker=11"> </A>text substitution. This directive can be used both inside and outside module definitions. After a text macro is defined, it can be used in the source description by using the (`) character, followed by the macro name. The compiler shall substitute the text of the macro for the string <CODE CLASS="code">`macro_name</CODE>. All compiler directives shall be considered pre-defined macro names; it shall be illegal to re-define a compiler directive as a macro name.</P><P CLASS="Body"><A NAME="pgfId=181"> </A><EM CLASS="-">A text macro can be defined with arguments. This allows the macro to be customized for each use individually.</EM><A NAME="marker=89"> </A></P><P CLASS="Body"><A NAME="pgfId=182"> </A><EM CLASS="-">The syntax for text macro definitions is as follows: </EM><A NAME="marker=90"> </A><A NAME="marker=92"> </A></P><P CLASS="Body"><A NAME="pgfId=190"> </A><EM CLASS="-"></EM></P><DIV><IMG SRC="ch16-1.gif"></DIV><P CLASS="BNFCapBody"><A NAME="pgfId=191"> </A>Syntax&nbsp;16-1<A NAME="Syntax for text macro definition"> </A>: Syntax for text macro definition</P><P CLASS="Body"><A NAME="pgfId=192"> </A><EM CLASS="-">The macro text can be any arbitrary text specified on the same line as the text macro name. If more than one line is necessary to specify the text, the newline shall be preceded by a backslash (\). The first newline not preceded by a backslash shall end the macro text. The newline preceded by a backslash shall be replaced in the expanded macro with a newline (but without the preceding backslash character).</EM></P><P CLASS="Body"><A NAME="pgfId=193"> </A>When formal arguments are used to define a text macro, the scope of the formal argument shall extend up to the end of the macro text. A formal argument can be used in the macro text in the same manner as an identifier.</P><P CLASS="Body"><A NAME="pgfId=194"> </A><EM CLASS="-">If a one-line comment (that is, a comment specified with the characters //) is included in the text, then the comment shall not become part of the text substituted. The macro text can be blank, in which case the text macro is defined to be empty and no text is substituted when the macro is used. </EM></P><P CLASS="Body"><A NAME="pgfId=195"> </A><EM CLASS="-">The syntax for using a text macro is as follows:</EM><A NAME="marker=99"> </A><A NAME="marker=106"> </A></P><P CLASS="Body"><A NAME="pgfId=199"> </A><EM CLASS="-"></EM></P><DIV><IMG SRC="ch16-2.gif"></DIV><P CLASS="BNFCapBody"><A NAME="pgfId=201"> </A>Syntax&nbsp;16-2<EM CLASS="-">: Syntax for text macro usage</EM><A NAME="Syntax for text macro usage"> </A></P><P CLASS="Body"><A NAME="pgfId=202"> </A><EM CLASS="-">For an argument-less macro, the text shall be substituted &quot;as is&quot; for every occurrence of `text_macro. However, a text macro with one or more arguments shall be expanded by substituting each formal argument with the expression used as the actual argument in the macro usage.</EM></P><P CLASS="Body"><A NAME="pgfId=176"> </A><EM CLASS="-">Once a text macro name has been defined, it can be used anywhere in a source description; that is, there are no scope restrictions. </EM>Text macros can be defined and used interactively<EM CLASS="-">.</EM></P><P CLASS="Body"><A NAME="pgfId=217"> </A><EM CLASS="-">The text specified for macro text shall not be split across the following lexical tokens:</EM></P><UL><LI CLASS="DashedList"><A NAME="pgfId=222"> </A><EM CLASS="-">comments</EM></LI><LI CLASS="DashedList"><A NAME="pgfId=223"> </A><EM CLASS="-">numbers</EM></LI><LI CLASS="DashedList"><A NAME="pgfId=228"> </A><EM CLASS="-">strings&nbsp;</EM></LI><LI CLASS="DashedList"><A NAME="pgfId=245"> </A><EM CLASS="-">identifiers</EM></LI><LI CLASS="DashedList"><A NAME="pgfId=252"> </A><EM CLASS="-">keywords</EM></LI><LI CLASS="DashedList"><A NAME="pgfId=253"> </A><EM CLASS="-">operators</EM></LI></UL><P CLASS="Body"><A NAME="pgfId=255"> </A>Examples: <EM CLASS="-"></EM></P><DIV><IMG SRC="ch16-3.gif"></DIV><P CLASS="Body"><A NAME="pgfId=257"> </A><EM CLASS="-">The following is illegal syntax because it is split across a string:</EM></P><PRE CLASS="CodeIndent"><A NAME="pgfId=258"> </A><B CLASS="Keyword">`define</B>&nbsp;first_half&nbsp;&quot;start&nbsp;of&nbsp;string<B CLASS="Keyword">$display</B>(`first_half&nbsp;end&nbsp;of&nbsp;string&quot;);</PRE><P CLASS="Note"><A NAME="pgfId=261"> </A><EM CLASS="-">NOTE</EM>S</P><OL><P CLASS="NumberedNote1"><A NAME="pgfId=268"> </A>1)	--<EM CLASS="-">Each actual argument is substituted for the corresponding formal argument literally. Therefore, when an expression is used as an actual argument, the expression will be substituted in its entirety. This may cause an expression to be evaluated more than once if the formal argument was used more than once in the macro text. For example,</EM></P></OL><PRE CLASS="CodeIndent"><A NAME="pgfId=271"> </A><B CLASS="Keyword">	`define</B> max(a,b)	((a) &gt; (b) ? (a) : (b))</PRE><PRE CLASS="CodeIndent"><A NAME="pgfId=288"> </A>	n = <B CLASS="Keyword">`</B>max(p+q, r+s) ;</PRE><P CLASS="Note"><A NAME="pgfId=293"> </A>	will expand as </P><PRE CLASS="CodeIndent"><A NAME="pgfId=297"> </A>	n = ((p+q) &gt; (r+s)) ? (p+q) : (r+s) ;</PRE><P CLASS="Note"><A NAME="pgfId=298"> </A><EM CLASS="-">	</EM>Here, the larger of the two expressions p+q and r+s will be evaluated twice. </P><OL><P CLASS="NumberedNote2"><A NAME="pgfId=301"> </A>2)	--The word <A NAME="marker=121"> </A>define is known as a compiler directive keyword, and is not part of the normal set of keywords. Thus, normal identifiers in a Verilog HDL source description can be the same as compiler directive keywords (though this is not recommended). Be aware of the following pitfalls:</P></OL><P CLASS="Note"><A NAME="pgfId=305"> </A>Text macro names may not be the same as compiler directive keywords.</P><P CLASS="Note"><A NAME="pgfId=306"> </A><EM CLASS="-">Text macro names can re-use names being used as ordinary identifiers. For example, </EM><CODE CLASS="code">signal_name</CODE><EM CLASS="-"> and </EM><CODE CLASS="code">`signal_name</CODE><EM CLASS="-"> are different. </EM></P><P CLASS="Note"><A NAME="pgfId=307"> </A><EM CLASS="-">Redefinition of text macros is allowed; the latest definition of a particular text macro read by the compiler prevails when the macro name is encountered in the source text. </EM><A NAME="marker=124"> </A><A NAME="marker=125"> </A><A NAME="marker=130"> </A></P><P CLASS="Body"><A NAME="pgfId=163"> </A></P><P CLASS="SubSection"><A NAME="pgfId=135"> </A>`undef</P><P CLASS="Body"><A NAME="pgfId=134"> </A>The directive <B CLASS="Keyword">`undef</B> shall undefine a previously defined text macro. An attempt to undefine a text macro that was not previously defined using a <B CLASS="Keyword">`define</B> compiler directive can result in a warning. The syntax for <B CLASS="Keyword">`undef</B> compiler directive is as follows:</P><PRE CLASS="BNFDef"><A NAME="pgfId=304"> </A><B CLASS="Keyword">	`undef</B> text_macro_name</PRE><P CLASS="Body"><A NAME="pgfId=143"> </A>An undefined text macro has no value. .<A NAME="marker=6"> </A> <A NAME="marker=25"> </A></P><HR><P><A HREF="ch16.htm">Chapter&nbsp;&nbsp;start</A>&nbsp;&nbsp;&nbsp;<A HREF="ch16.2.htm">Previous&nbsp;&nbsp;page</A>&nbsp;&nbsp;<A HREF="ch16.4.htm">Next&nbsp;&nbsp;page</A></P></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本精品视频一区二区三区| 久久99国产乱子伦精品免费| 不卡一区中文字幕| 91精品国产欧美一区二区成人| 日韩极品在线观看| 91精品蜜臀在线一区尤物| 久久99精品久久久久久| 日韩精品中文字幕在线一区| 一区二区免费视频| 日韩一区国产二区欧美三区| 日本麻豆一区二区三区视频| 久久久久久电影| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 亚洲麻豆国产自偷在线| 成人午夜免费视频| 国产精品国产三级国产普通话三级| 国产成人av一区| 精品国产伦理网| 国模大尺度一区二区三区| 久久精品亚洲乱码伦伦中文| 亚洲国产综合视频在线观看| 欧美日韩国产免费一区二区| 国内一区二区视频| 国产精品毛片高清在线完整版 | 午夜日韩在线观看| 在线不卡欧美精品一区二区三区| 精品无人区卡一卡二卡三乱码免费卡| 精品91自产拍在线观看一区| 国产自产2019最新不卡| 亚洲三级电影网站| 欧美色综合天天久久综合精品| 久久99久久久久| 一区在线观看免费| 欧美一级精品在线| 成人v精品蜜桃久久一区| 亚洲欧洲av色图| 欧美性受xxxx黑人xyx性爽| 免费成人深夜小野草| 国产精品久久看| 欧美吻胸吃奶大尺度电影| 国产成人精品亚洲日本在线桃色| 亚洲男人电影天堂| 国产成人av自拍| 五月天激情小说综合| 国产日本亚洲高清| 日韩一二三区不卡| av综合在线播放| 国内精品视频一区二区三区八戒 | 欧美一区二区私人影院日本| av在线不卡网| 激情图区综合网| 日韩中文字幕av电影| 亚洲欧洲无码一区二区三区| 亚洲女人的天堂| 中文字幕中文乱码欧美一区二区| 欧美日韩精品三区| 在线影院国内精品| 国产成人免费视| 国产精品羞羞答答xxdd | 日韩精品五月天| 中文字幕不卡在线观看| 欧美日免费三级在线| 99久久99久久综合| 国产主播一区二区| 久久99精品国产.久久久久| 一区二区三区久久| 亚洲色图欧洲色图婷婷| 国产午夜精品理论片a级大结局| 日韩欧美高清在线| 欧美精品aⅴ在线视频| 色综合天天做天天爱| av电影天堂一区二区在线| 久久99精品久久久久久国产越南 | 午夜精品久久久久影视| 一区二区三区91| 国产精品美日韩| 中文字幕色av一区二区三区| 久久久91精品国产一区二区精品| 26uuu国产日韩综合| 91精品国产欧美一区二区18 | 欧美视频在线播放| 色综合中文字幕| 在线观看中文字幕不卡| 99久久精品国产一区二区三区 | 91成人网在线| 欧美在线视频你懂得| 在线视频一区二区三| 欧美三级韩国三级日本一级| 成人免费高清视频在线观看| 一本一道综合狠狠老| 色综合久久99| 97se亚洲国产综合在线| 色老头久久综合| 色综合网站在线| 555夜色666亚洲国产免| 91麻豆精品国产91久久久久| 欧美三区在线观看| 91麻豆精品91久久久久久清纯| 在线电影一区二区三区| 精品久久99ma| 久久久精品tv| 亚洲男同性视频| 亚洲成av人片| 亚洲成人一区二区在线观看| 伦理电影国产精品| 国产精品中文字幕日韩精品 | 亚洲蜜臀av乱码久久精品蜜桃| 亚洲午夜在线电影| 亚洲大片一区二区三区| 裸体歌舞表演一区二区| 国产大陆a不卡| 欧美调教femdomvk| 日韩欧美电影在线| 国产精品久久久久婷婷二区次| 国产精品乱人伦| 亚洲一区影音先锋| 免费成人美女在线观看| 国产一二精品视频| 99re这里都是精品| 日韩视频中午一区| 欧美高清一级片在线观看| 国产精品九色蝌蚪自拍| 婷婷久久综合九色国产成人| 国产综合色精品一区二区三区| 色婷婷久久久综合中文字幕 | 婷婷中文字幕综合| 风流少妇一区二区| 欧美亚洲国产bt| 国产午夜精品久久久久久免费视 | 久久先锋影音av| 中文字幕一区av| 亚洲国产一二三| 国产成人综合在线观看| 97精品国产97久久久久久久久久久久| 日韩欧美电影在线| 中文字幕字幕中文在线中不卡视频| 毛片av中文字幕一区二区| 成人黄页毛片网站| 2020国产精品自拍| 亚洲黄色小说网站| 成人高清免费观看| 69p69国产精品| 亚洲综合在线视频| 国产精一区二区三区| 在线一区二区三区| 国产精品传媒入口麻豆| 日韩av电影免费观看高清完整版| 一本色道综合亚洲| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 图片区小说区国产精品视频| 不卡的av在线播放| 日韩一区二区三区四区五区六区| 亚洲天堂成人网| 国产一区在线观看麻豆| 在线视频欧美区| 1000部国产精品成人观看| 日本午夜精品一区二区三区电影| 欧美性一二三区| 一区在线播放视频| caoporen国产精品视频| 久久综合九色综合欧美就去吻| 日本aⅴ亚洲精品中文乱码| 91麻豆福利精品推荐| 一色屋精品亚洲香蕉网站| 国产精品夜夜爽| 久久久国产精品不卡| 国内久久婷婷综合| 久久综合狠狠综合久久综合88| 日本中文字幕一区| 91成人免费电影| 亚洲午夜私人影院| 色综合久久精品| 亚洲综合在线视频| 在线观看欧美黄色| 天堂影院一区二区| 欧洲人成人精品| 天天影视涩香欲综合网| 欧洲一区二区三区免费视频| 亚洲大片免费看| 欧美日韩一区三区四区| 三级影片在线观看欧美日韩一区二区| 欧美做爰猛烈大尺度电影无法无天| 一区二区三区日韩精品视频| 日本丰满少妇一区二区三区| 中文字幕视频一区| 欧美中文一区二区三区| 一区二区欧美精品| 日韩一级在线观看| 久久精品国产第一区二区三区 | 精品国产伦一区二区三区免费 | 美女久久久精品| 欧美日韩一区二区三区在线看| 亚洲一区二区三区三| 7777女厕盗摄久久久| 国产精品系列在线观看| 欧美国产精品一区二区| 欧美性生活影院| 男人的天堂久久精品| 国产欧美日韩亚州综合| 不卡在线视频中文字幕|