⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 00253.html

📁 这是一本关于verilog编程语言的教程,对学习verilog语言有帮助
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<p class="Element10">
The coverage group cov3 crosses variable b_var with coverage point A (labeled CC). Variable b_var automatically creates 16 bins (auto[0]...auto[15]). Coverage point A explicitly creates 10 bins yy[0]...yy[9]. The cross of two coverage points creates 16 * 10 = 160 cross product bins, namely the pairs shown below: </p><div class="Element170">
<a href="#" onclick="CopyElementToClipboard('code00901');">Copy Code</a></div>
<div class="Element13"><div class="Element12" id="code00901"><pre class="Element12">&lt;auto[0], yy[0]&gt;
&lt;auto[0], yy[1]&gt;
...
&lt;auto[0], yy[9]&gt;
&lt;auto[1], yy[0]&gt;
...
&lt;auto[15], yy[9]&gt;</pre></div></div>
<p class="Element10">
Cross coverage is allowed only between coverage points defined within the same coverage group. Coverage points defined in a coverage group other than the one enclosing the cross cannot participate in a cross. Attempts to cross items from different coverage groups shall result in a compiler error.&nbsp;</p>
<p class="Element10">
&nbsp;</p>
<p class="Element10">
In addition to specifying the coverage points that are crossed, SystemVerilog includes a powerful set of operators that allow defining cross coverage bins. Cross coverage bins can be specified in order to group together a set of cross products. A cross-coverage bin associates a name and a count with a set of cross products. The count of the bin is incremented every time any of the cross products match, i.e., every coverage point in the cross matches its corresponding bin in the cross product.&nbsp;</p>
<p class="Element10">
&nbsp;</p>
<p class="Element10">
User-defined bins for cross coverage are defined using bins select-expressions. The syntax for defining these bin selection expressions is given in Syntax 20-4.&nbsp;</p>
<p class="Element10">
&nbsp;</p>
<p class="Element10">
The binsof construct yields the bins of its expression, which can be either a coverage point (explicitly defined or implicitly defined for a single variable) or a coverage-point bin. The resulting bins can be further selected by including (or excluding) only the bins whose associated values intersect a desired set of values. The desired set of values can be specified using a comma-separated list of open_value_range as shown in Syntax 20-4. For example, the following select expression: </p><div class="Element170">
<a href="#" onclick="CopyElementToClipboard('code00902');">Copy Code</a></div>
<div class="Element13"><div class="Element12" id="code00902"><pre class="Element12">binsof( x ) intersect { y }</pre></div></div>
<p class="Element10">
denotes the bins of coverage point x whose values intersect the range given by y. Its negated form: </p><div class="Element170">
<a href="#" onclick="CopyElementToClipboard('code00903');">Copy Code</a></div>
<div class="Element13"><div class="Element12" id="code00903"><pre class="Element12">! binsof( x ) intersect { y }</pre></div></div>
<p class="Element10">
denotes the bins of coverage point x whose values do not intersect the range given by y.&nbsp;</p>
<p class="Element10">
&nbsp;</p>
<p class="Element10">
The open_value_range syntax can specify a single value, a range of values, or an open range, which denotes the following: </p><div class="Element170">
<a href="#" onclick="CopyElementToClipboard('code00904');">Copy Code</a></div>
<div class="Element13"><div class="Element12" id="code00904"><pre class="Element12">[ $ : value ] =&gt; The set of values less than or equal to value
[ value : $ ] =&gt; The set of values greater or equal to value</pre></div></div>
<p class="Element10">
The bins selected can be combined with other selected bins using the logical operators &amp;&amp; and || .</p></div>
</div>
<a name="Group"></a><div class="Element14">
<a onclick="toggleVisibilityStored('Group');" class="a_Element14"><img src="sectionminus.png" border="0" alt="" title="" id="imgGroup">Group</a></div>
<div id="divGroup">
<div class="Element11">
<div class="Element10">
<p class="Element10">
<a href="00856.html" target="topic">第二十章 覆盖</a></p></div>
</div>
</div>
<a name="主题"></a><div class="Element14">
<a onclick="toggleVisibilityStored('主题');" class="a_Element14"><img src="sectionminus.png" border="0" alt="" title="" id="img主题">主题</a></div>
<div id="div主题">
<div class="Element11">
<div class="Element10">
<div class="Element212">
<div class="TableDiv">
<table cellspacing="0" class="Table0">
<tr>
<td class="Element200" valign="top" width="50%">
<div class="Element201">
主题&nbsp;</div></td><td class="Element204" valign="top" width="50%">
<div class="Element205">
描述&nbsp;</div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00254.html" target="topic">20.5.1 Example of user-defined cross coverage and select expressions</a>&nbsp;</div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
&nbsp;</div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00255.html" target="topic">20.5.2 Excluding cross products</a>&nbsp;</div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
A group of bins can be excluded from coverage by specifying a select expression using ignore_bins. For example: &nbsp;</div></td></tr><tr>
<td class="Element202" valign="top" width="50%">
<div class="Element203">
<a href="00256.html" target="topic">20.5.3 Specifying Illegal cross products</a>&nbsp;</div></td><td class="Element206" valign="top" width="50%">
<div class="Element207">
A group of bins can be marked as illegal by specifying a select expression using illegal_bins. For example: &nbsp;</div></td></tr></table></div></div>
</div>
</div>
</div>
<a name="Links"></a><div class="Element14">
<a onclick="toggleVisibilityStored('链接');" class="a_Element14"><img src="sectionminus.png" border="0" alt="" title="" id="img链接">链接</a></div>
<div id="div链接">
<div class="Element11">
<div class="Element10">
<a href="00856.html" target="topic">第二十章 覆盖</a>, <a href="00964.html" target="topic">主题</a></div>
</div>
</div>
</div>
<!-- End Page Content -->

<!-- Begin Page Footer -->
<hr width="98%" align="center" size="1" color="#CCCCCC" />
<table align="center" cellpadding="0" cellspacing="0" border="0">
	<tbody>
		<tr height="10">
			<td></td>
		</tr>
		<tr align="center">
			<td>
<script type="text/javascript"><!--
google_ad_client = "pub-5266859600380184";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_page_url = document.location;
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
			</td>
		</tr>
		<tr height="15">
			<td></td>
		</tr>
		<tr align="center">
			<td>
				<font size=2>除非特别声明,原文版权归作者所有,如有转摘请注明原作者以及译者(<a href="http://www.fpgatech.net/"  target="_blank">FPGA技术网</a>)信息。<br />
如果您对本主题有何建议或意见,请登陆<a href="http://www.fpgatech.net/forum/forumdisplay.php?fid=18" target="_blank">FPGA开发者家园</a>提交,您的参与是我们前进的动力。</font>
<script language="javascript" type="text/javascript" src="http://js.users.51.la/195685.js"></script>
<noscript><a href="http://www.51.la/?195685" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/195685.asp" style="border:none" /></a></noscript>
			</td>
		</tr>
	</tbody>
</table>

<!-- End Page Footer -->
</div>
</div>

<!-- End Client Area -->
</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -