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

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

?? ch06.1.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="ch06.css"><TITLE> 6.1	Continuous assignments </TITLE></HEAD><BODY BGCOLOR="#ffffff"><DIV><HR><P><A HREF="ch06.htm">Chapter&nbsp;&nbsp;start</A>&nbsp;&nbsp;&nbsp;<A HREF="ch06.htm">Previous&nbsp;&nbsp;page</A>&nbsp;&nbsp;<A HREF="ch06.2.htm">Next&nbsp;&nbsp;page</A></P></DIV><H1 CLASS="Section"><A NAME="pgfId=116"> </A>6.1	<A NAME="marker=28"> </A>C<A NAME="marker=29"> </A>ontinuous assignments </H1><P CLASS="Body"><A NAME="pgfId=117"> </A>Continuous assignments shall drive values onto nets, both vector and scalar. This assignment shall occur whenever the value of the right-hand side changes. Continuous assignments provide a way to model combinational logic without specifying an interconnection of gates. Instead, the model specifies the logical expression that drives the net. </P><P CLASS="Body"><A NAME="pgfId=118"> </A>The syntax for continuous assignments is as follows:</P><P CLASS="Body"><A NAME="pgfId=119"> </A></P><DIV><IMG SRC="ch06-1.gif"></DIV><DIV><H2 CLASS="BNFCapPage"><A NAME="pgfId=120"> </A>: Syntax for continuous assignment</H2><P CLASS="SubSection"><A NAME="pgfId=122"> </A>The net declaration assignment</P><P CLASS="Body"><A NAME="pgfId=123"> </A>The first two alternatives in the net declaration are discussed in <A HREF="/Humuhumu/Files/Prof_Smith/Academic/ASICs/Web/ASICs/HTML/Verilog/LRM/HTML/06/ch03.htm#86941" CLASS="XRef"></A> (see <A HREF="/Humuhumu/Files/Prof_Smith/Academic/ASICs/Web/ASICs/HTML/Verilog/LRM/HTML/06/ch03.htm#76390" CLASS="XRef"></A>). The third alternative, the net declaration assignment, allows a continuous assignment to be placed on a net in the same statement that declares the net. </P><P CLASS="Body"><A NAME="pgfId=124"> </A>Example:</P><P CLASS="Body"><A NAME="pgfId=125"> </A>The following is an example of the net declaration form of a continuous assignment:</P><PRE CLASS="CodeIndent"><A NAME="pgfId=99"> </A><B CLASS="Keyword">wire</B> (<B CLASS="Keyword">strong1</B>, <B CLASS="Keyword">pull0</B>) mynet = enable ;</PRE><P CLASS="Note"><A NAME="pgfId=100"> </A>NOTE--Because a net can be declared only once, only one net declaration assignment can be made for a particular net. This contrasts with the continuous assignment statement; one net can receive multiple assignments of the continuous assignment form.</P><P CLASS="SubSection"><A NAME="pgfId=127"> </A>The continuous assignment statement</P><P CLASS="Body"><A NAME="pgfId=128"> </A>The continuous assignment statement shall place a <A NAME="marker=43"> </A>continuous assignment on a net that has been previously declared, either explicitly by declaration or <A NAME="marker=44"> </A>implicitly by using its name in the terminal list of a gate, user-defined primitive, or module instance (see <A HREF="/Humuhumu/Files/Prof_Smith/Academic/ASICs/Web/ASICs/HTML/Verilog/LRM/HTML/06/ch03.htm#48381" CLASS="XRef"></A>). </P><P CLASS="Body"><A NAME="pgfId=130"> </A>Assignments on nets shall be continuous and automatic. This means that whenever an operand in the right-hand side expression changes value, the whole right-hand side shall be evaluated and assigned to the left-hand side. </P><P CLASS="Body"><A NAME="pgfId=157"> </A>Examples:</P><P CLASS="Body"><A NAME="pgfId=163"> </A>1. The following is an example of a continuous assignment to a net that has been previously declared:</P><PRE CLASS="CodeIndent"><A NAME="pgfId=164"> </A><B CLASS="Keyword">wire</B><CODE CLASS="code12"> mynet ;</CODE></PRE><PRE CLASS="CodeIndent"><A NAME="pgfId=129"> </A><B CLASS="Keyword">assign</B><CODE CLASS="code12"> (</CODE><B CLASS="Keyword">strong1</B><CODE CLASS="code12">, </CODE><B CLASS="Keyword">pull0</B><CODE CLASS="code12">) mynet = enable ;</CODE></PRE><P CLASS="Body"><A NAME="pgfId=92"> </A>2. The following is an example of the use of a continuous assignment to model a four bit adder with carry. The assignment could not be specified directly in the declaration of the nets because it requires a concatenation on the left-hand side.</P><P CLASS="Body"><A NAME="pgfId=105"> </A></P><DIV><IMG SRC="ch06-2.gif"></DIV><P CLASS="Body"><A NAME="pgfId=134"> </A>3. The following example describes a module with one 16-bit output bus. It selects between one of four input busses and connects the selected bus to the output bus.</P><P CLASS="Body"><A NAME="pgfId=135"> </A></P><DIV><IMG SRC="ch06-3.gif"></DIV><P CLASS="Body"><A NAME="pgfId=137"> </A>The following sequence of events is experienced during simulation of the above example:</P><OL><P CLASS="NumberedLista"><A NAME="pgfId=138"> </A>a)	The value of <CODE CLASS="code">s</CODE>, a bus selector input variable, is checked in the assign statement; based on the value of <CODE CLASS="code">s</CODE>, the net <CODE CLASS="code">data</CODE> receives the data from one of the four input busses.</P><P CLASS="NumberedListb"><A NAME="pgfId=139"> </A>b)	The setting of <CODE CLASS="code">data</CODE> net triggers the continuous assignment in the net declaration for <CODE CLASS="code">busout</CODE>; if <CODE CLASS="code">enable</CODE> is set, the contents of <CODE CLASS="code">data</CODE> are assigned to <CODE CLASS="code">busout</CODE>; if <CODE CLASS="code">enable</CODE> is <CODE CLASS="code">0</CODE>, the contents of <CODE CLASS="code">Zee</CODE> are assigned to <CODE CLASS="code">busout</CODE>.</P></OL><P CLASS="SubSection"><A NAME="pgfId=141"> </A><A NAME="marker=53"> </A>Delays </P><P CLASS="Body"><A NAME="pgfId=142"> </A>A delay given to a continuous assignment shall specify the time duration between a right-hand side operand value change and the assignment made to the left-hand side. If the left-hand side references a scalar net, then the delay shall be treated in the same way as for gate delays--that is, different delays can be given for the output rising, falling and changing to high impedance (see <A HREF="/Humuhumu/Files/Prof_Smith/Academic/ASICs/Web/ASICs/HTML/Verilog/LRM/HTML/06/ch07.htm#36723" CLASS="XRef"></A>).</P><P CLASS="Body"><A NAME="pgfId=143"> </A>If the left-hand side references a vector net, then up to three delays can be applied. The following rules determine which delay controls the assignment:</P><UL><LI CLASS="DashedList"><A NAME="pgfId=144"> </A>If the right-hand side makes a transition from non-zero to zero, then the falling delay shall be used.</LI><LI CLASS="DashedList"><A NAME="pgfId=145"> </A>If the right-hand side makes a transition to <CODE CLASS="code">z</CODE>, then the turn-off delay shall be used.</LI><LI CLASS="DashedList"><A NAME="pgfId=146"> </A>For all other cases, the rising delay shall be used.</LI></UL><P CLASS="Body"><A NAME="pgfId=147"> </A>Specifying the delay in a continuous assignment that is part of the net declaration shall be treated different from specifying a net delay and then making a continuous assignment to the net. A delay value can be applied to a net in a net declaration, as in the following example:</P><PRE CLASS="CodeIndent"><A NAME="pgfId=148"> </A><B CLASS="Keyword">wire</B> #10 wireA;</PRE><P CLASS="Body"><A NAME="pgfId=149"> </A>This syntax, called a net delay, means that any value change that is to be applied to <CODE CLASS="code">wireA</CODE> by some other statement shall be delayed for ten time units before it takes effect. When there is a continuous assignment in a declaration, the delay is part of the continuous assignment and is not a net delay. Thus, it shall not be added to the delay of other drivers on the net. Furthermore, if the assignment is to a vector net, then the rising and falling delays shall not be applied to the individual bits if the assignment is included in the declaration. </P><P CLASS="Body"><A NAME="pgfId=150"> </A><EM CLASS="-">In situations where a right-hand side operand changes before a previous change has had time to propagate to the left-hand side, then the latest value change</EM> shall be the only one to be applied. That is, only one assignment shall occur<EM CLASS="-">.</EM></P><P CLASS="SubSection"><A NAME="pgfId=153"> </A>S<A NAME="marker=70"> </A>trength </P><P CLASS="Body"><A NAME="pgfId=154"> </A>The driving strength of a continuous assignment can be specified by the user. This applies only to assignments to <A NAME="marker=71"> </A>scalar nets of the types listed below:</P><P CLASS="Body"><A NAME="pgfId=155"> </A><B CLASS="Keyword">		wire		tri		trireg<BR>		wand		triand		tri0<BR>		wor		trior		tri1</B></P><P CLASS="Body"><A NAME="pgfId=156"> </A>Continuous assignments driving strengths can be specified in either a net declaration or in a stand-alone assignment, using the <B CLASS="Keyword">assign</B> keyword. The strength specification, if provided, shall immediately follow the keyword (either the<EM CLASS="-"> keyword for the</EM> net type or<EM CLASS="-"> </EM><B CLASS="Keyword">assign</B>) and precede any delay specified. Whenever the continuous assignment drives the net, the strength of the value shall be simulated as specified.</P><P CLASS="Body"><A NAME="pgfId=91"> </A>A drive strength specification shall contain one strength value that applies when the value being assigned to the net is <CODE CLASS="code">1</CODE> and a second strength value that applies when the assigned value is <CODE CLASS="code">0</CODE>. The following keywords shall specify the strength value for an assignment of <CODE CLASS="code">1</CODE>:</P><P CLASS="Body"><A NAME="pgfId=158"> </A><B CLASS="Keyword">		supply1		strong1		pull1		weak1		highz1</B><A NAME="marker=72"> </A></P><P CLASS="Body"><A NAME="pgfId=159"> </A>The following keywords shall specify the strength value for an assignment of <CODE CLASS="code">0</CODE>:</P><P CLASS="Body"><A NAME="pgfId=160"> </A><B CLASS="Keyword">		supply0		strong0		pull0		weak0		highz0</B></P><P CLASS="Body"><A NAME="pgfId=161"> </A>The order of the two strength specifications shall be arbitrary. The following two rules shall constrain the use of drive strength specifications:</P><UL><LI CLASS="DashedList"><A NAME="pgfId=162"> </A><EM CLASS="-">The strength specifications (</EM><B CLASS="Keyword">highz1</B><EM CLASS="-">, </EM><B CLASS="Keyword">highz0</B><EM CLASS="-">) and (</EM><B CLASS="Keyword">highz0</B><EM CLASS="-">, </EM><B CLASS="Keyword">highz1</B><EM CLASS="-">) shall be treated as illegal constructs.</EM></LI><LI CLASS="DashedList"><A NAME="pgfId=182"> </A>If drive strength is not specified, it shall default to <CODE CLASS="code">(</CODE><B CLASS="Keyword">strong1</B>, <B CLASS="Keyword">strong0</B><CODE CLASS="code">)</CODE>.</LI></UL></DIV><HR><P><A HREF="ch06.htm">Chapter&nbsp;&nbsp;start</A>&nbsp;&nbsp;&nbsp;<A HREF="ch06.htm">Previous&nbsp;&nbsp;page</A>&nbsp;&nbsp;<A HREF="ch06.2.htm">Next&nbsp;&nbsp;page</A></P></BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
男男视频亚洲欧美| 国产精品国产三级国产aⅴ中文| 一区二区三区在线视频免费 | 精品欧美一区二区在线观看| 亚洲高清一区二区三区| 欧美日韩国产片| 午夜激情综合网| 欧美一区二区三区四区久久| 9i在线看片成人免费| 精品日韩一区二区三区| 国产一区二区三区香蕉 | 久久香蕉国产线看观看99| 国产毛片精品国产一区二区三区| 国产日韩欧美精品电影三级在线| 99在线视频精品| 亚洲成人资源网| 日韩视频一区二区在线观看| 国产一区二区三区免费观看| 国产精品视频观看| 在线亚洲高清视频| 亚洲成人综合网站| 久久久久亚洲综合| 91久久一区二区| 美女免费视频一区| 亚洲欧美激情小说另类| 欧美另类一区二区三区| 国产一区二区看久久| 一区二区久久久| 精品99一区二区| 色婷婷久久一区二区三区麻豆| 日韩av中文在线观看| 亚洲国产精品99久久久久久久久| 欧美视频自拍偷拍| 国产成人精品三级| 日韩影院精彩在线| 中文字幕一区三区| 精品欧美一区二区在线观看| 91年精品国产| 国产精品中文字幕一区二区三区| 亚洲网友自拍偷拍| 国产精品私人影院| 日韩你懂的电影在线观看| 波多野结衣中文字幕一区二区三区 | 丁香婷婷综合色啪| 天天色综合成人网| 国产精品久久网站| 欧美成人a∨高清免费观看| 91在线视频免费观看| 极品少妇xxxx精品少妇| 亚洲国产精品久久久久秋霞影院| 中文欧美字幕免费| 久久久久国产成人精品亚洲午夜| 欧美性高清videossexo| a级高清视频欧美日韩| 国内精品写真在线观看| 视频在线在亚洲| 一区二区三区四区在线播放 | 欧美男人的天堂一二区| 91视频精品在这里| 国产成人一区在线| 激情综合网最新| 美女视频黄免费的久久| 亚洲一区二区视频在线观看| 国产精品初高中害羞小美女文| 日韩欧美一级片| 91麻豆精品国产91久久久| 91久久久免费一区二区| www.在线成人| 成人一级视频在线观看| 国产一区欧美一区| 精品综合久久久久久8888| 成人高清在线视频| 国产一区二区三区在线看麻豆| 久久99国产精品久久99 | 国产乱人伦偷精品视频免下载| 美脚の诱脚舐め脚责91| 久久精品国产**网站演员| 麻豆精品一区二区av白丝在线| 蜜桃av一区二区三区电影| 免费三级欧美电影| 九色综合国产一区二区三区| 久久99精品国产麻豆婷婷洗澡| 国模套图日韩精品一区二区| 久久99精品国产| 成人综合婷婷国产精品久久蜜臀| 福利一区福利二区| 99re热视频精品| 色欧美日韩亚洲| 欧美日韩免费一区二区三区 | 欧美体内she精高潮| 色丁香久综合在线久综合在线观看| 91丝袜美女网| 欧美三级电影在线观看| 欧美丰满高潮xxxx喷水动漫| 精品少妇一区二区三区 | 亚洲色图另类专区| 夜色激情一区二区| 青青国产91久久久久久| 国模娜娜一区二区三区| 成人av网站在线| 欧美视频三区在线播放| 日韩三级电影网址| 亚洲国产高清不卡| 夜夜爽夜夜爽精品视频| 日韩精品一卡二卡三卡四卡无卡| 久久99精品网久久| 99热精品国产| 欧美一级免费观看| 亚洲国产高清不卡| 婷婷综合久久一区二区三区| 国产在线看一区| 99国产欧美另类久久久精品| 欧美一区日本一区韩国一区| 国产日韩精品一区二区浪潮av| 玉足女爽爽91| 精品在线观看视频| 色欧美日韩亚洲| 精品区一区二区| 韩国三级中文字幕hd久久精品| 国产a精品视频| 欧美自拍偷拍一区| 精品国产1区二区| 亚洲乱码国产乱码精品精可以看 | 黄色成人免费在线| 色综合久久88色综合天天| 91精品国产综合久久精品app| 欧美国产日产图区| 秋霞午夜鲁丝一区二区老狼| 成人av在线资源| 日韩精品一区二区三区视频| 亚洲男人的天堂在线观看| 极品少妇xxxx精品少妇偷拍| 欧美日韩一区二区在线观看| 国产欧美视频在线观看| 性感美女久久精品| 91视频免费观看| 日本一区二区三区久久久久久久久不| 亚洲高清免费观看| 91在线视频观看| 国产片一区二区| 精品系列免费在线观看| 欧美日韩你懂得| 一区二区国产视频| 成人av在线播放网站| www成人在线观看| 日本一道高清亚洲日美韩| 色综合中文综合网| 久久精品99国产精品| 一本大道av一区二区在线播放 | 欧美精品一区二区久久久| 亚洲国产精品嫩草影院| 97久久超碰国产精品| 国产日韩高清在线| 国产盗摄一区二区| 久久久久久久精| 国产精品88av| 久久女同精品一区二区| 免费成人你懂的| 精品欧美久久久| 国产在线不卡视频| 久久精品亚洲精品国产欧美kt∨| 蜜乳av一区二区三区| 欧美一区二区三区精品| 午夜视频一区在线观看| 欧美放荡的少妇| 奇米在线7777在线精品 | 久久夜色精品一区| 韩国一区二区视频| 国产日产欧美精品一区二区三区| 国产一区三区三区| 国产精品私房写真福利视频| 成人一区二区三区视频在线观看 | 亚洲三级免费电影| 色综合视频一区二区三区高清| 国产精品久久久爽爽爽麻豆色哟哟| 成人小视频在线观看| 亚洲欧洲精品一区二区三区 | 欧美色图天堂网| 首页国产欧美久久| 欧美本精品男人aⅴ天堂| 精品一区二区在线看| 国产欧美精品一区aⅴ影院 | 99国产精品久久久久久久久久 | 国产精品麻豆视频| 91在线porny国产在线看| 一区二区三区色| 91精品国产综合久久国产大片| 精品一区二区三区免费视频| 久久久久久久久久久99999| 成人国产精品免费观看| 亚洲线精品一区二区三区八戒| 在线播放欧美女士性生活| 久草这里只有精品视频| 亚洲国产精品高清| 欧美日韩五月天| 国产精品一区二区91| 亚洲欧美经典视频| 日韩亚洲欧美一区二区三区| 国产福利不卡视频| 亚洲尤物视频在线|