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

📄 00350.html

📁 这是一本关于verilog编程语言的教程,对学习verilog语言有帮助
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>29.2.2.1 $coverage_control</title>
    <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
    <meta name="generator" content="Doc-O-Matic" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link rel="STYLESHEET" href="default.css" type="text/css" />

<script type="text/javascript" src="scripts.js"></script>
</head>
<body class="Element700" onload="onBodyLoadEx('systemverilog31a.html', 'topic', '00350.html');" onmousedown="onBodyMouseDown();">

<!-- Begin Popups -->
<div class="Element801" id="popup00536">
<div class="Element800">
<div class="Element14">
链接</div>
<div class="Element11">
<div class="Element10">
<a href="00349.html" target="topic">29.2.2 Built-in coverage access system functions</a></div>
</div>
</div>
</div>

<!-- End Popups -->

<!-- Begin Page Header -->
<div class="Element710" id="areafixed">
<div class="Element92">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td width="33%">
<div class="Element1">
<a href="#" onmousedown="showPopup(this, 'popup00536');"><img src="seealsolink.png" border="0" alt="" title=""></a> SystemVerilog 3.1a语言参考手册</div>
</td><td width="34%">
<div class="Element2">
</div>
</td><td width="33%">
<div class="Element90">
<a href="00349.html" target="topic"><img src="btn_prev_lightblue.gif" border="0" alt="Previous" title="Previous" onmouseover="switchImage(this, 'btn_prev_lightblue_hover.gif');" onmouseout="switchImage(this, 'btn_prev_lightblue.gif');"></a><a href="00349.html" target="topic"><img src="btn_up_lightblue.gif" border="0" alt="Up" title="Up" onmouseover="switchImage(this, 'btn_up_lightblue_hover.gif');" onmouseout="switchImage(this, 'btn_up_lightblue.gif');"></a><a href="00351.html" target="topic"><img src="btn_next_lightblue.gif" border="0" alt="Next" title="Next" onmouseover="switchImage(this, 'btn_next_lightblue_hover.gif');" onmouseout="switchImage(this, 'btn_next_lightblue.gif');"></a></div>
</td></tr></table><div class="Element5">
29.2.2.1 $coverage_control</div>
</div>
</div>

<!-- End Page Header -->

<!-- Begin Client Area -->
<div class="Element720" id="areascroll">
<div class="Element721">

<!-- Begin Page Content -->
<div class="Element58">
<a name="描述"></a><div class="Element11">
<div class="Element10">
<div class="Element170">
<a href="#" onclick="CopyElementToClipboard('code00994');">Copy Code</a></div>
<div class="Element13"><div class="Element12" id="code00994"><pre class="Element12">$coverage_control(control_constant,
                  coverage_type,
                  scope_def,
                  modules_or_instance)</pre></div></div>
<p class="Element10">
This function is used to control or query coverage availability in the specified portion of the hierarchy. The following control options are available:&nbsp;</p>
<p class="Element10">
‘SV_COV_START&nbsp;</p>
<p class="Element10">
If possible, starts collecting coverage information in the specified hierarchy. No effect if coverage is already being collected. Note that coverage is automatically started at the beginning of simulation for all portions of the hierarchy enabled for coverage.&nbsp;</p>
<p class="Element10">
‘SV_COV_STOP&nbsp;</p>
<p class="Element10">
Stops collecting coverage information in the specified hierarchy. No effect if coverage is not being collected.&nbsp;</p>
<p class="Element10">
‘SV_COV_RESET&nbsp;</p>
<p class="Element10">
Resets all available coverage information in the specified hierarchy. No effect if coverage not available.&nbsp;</p>
<p class="Element10">
‘SV_COV_CHECK&nbsp;</p>
<p class="Element10">
Checks if coverage information can be obtained from the specified hierarchy. Note the possibility of having coverage information does imply that coverage is being collected, as the coverage could have been stopped.&nbsp;</p>
<p class="Element10">
&nbsp;</p>
<p class="Element10">
The return value is a ‘define name, with the value indicating the success of the action.&nbsp;</p>
<p class="Element10">
‘SV_COV_OK&nbsp;</p>
<p class="Element10">
On a check operation denotes that coverage is fully available in the specified hierarchy. For all other operations, represents successful and complete execution of the desired operation.&nbsp;</p>
<p class="Element10">
‘SV_COV_ERROR&nbsp;</p>
<p class="Element10">
On all operations means that the control operation failed without any effect, typically due to errors in arguments, such as a non-existing module.&nbsp;</p>
<p class="Element10">
‘SV_COV_NOCOV&nbsp;</p>
<p class="Element10">
On a check or start operation, denotes that coverage is not available at any point in the specified hierarchy.&nbsp;</p>
<p class="Element10">
‘SV_COV_PARTIAL&nbsp;</p>
<p class="Element10">
On a check or start operation, denotes that coverage is only partially available in the specified hierarchy.&nbsp;</p>
<p class="Element10">
&nbsp;</p>
<p class="Element10">
The table below describes the possible return values for each of the coverage control options: </p><p class="Element10" style="text-align: center">
<strong>Table 29-1: Coverage control return values</strong></p><div class="Element63">
<div class="TableDiv">
<table cellspacing="0" class="Table1">
<tr>
<td class="Element65" valign="top" width="23%">
<div class="Element66">
&nbsp;</div></td><td class="Element65" valign="top" width="19%">
<div class="Element66">
‘SV_COV_OK&nbsp;</div></td><td class="Element65" valign="top" width="19%">
<div class="Element66">
‘SV_COV_ERROR&nbsp;</div></td><td class="Element65" valign="top" width="17%">
<div class="Element66">
‘SV_COV_NOCOV&nbsp;</div></td><td class="Element65" valign="top" width="22%">
<div class="Element66">
‘SV_COV_PARTIAL&nbsp;</div></td></tr><tr>
<td class="Element67" valign="top" width="23%">
<div class="Element68">
‘SV_COV_START&nbsp;</div></td><td class="Element67" valign="top" width="19%">
<div class="Element68">
success&nbsp;</div></td><td class="Element67" valign="top" width="19%">
<div class="Element68">
bad args&nbsp;</div></td><td class="Element67" valign="top" width="17%">
<div class="Element68">
no coverage&nbsp;</div></td><td class="Element67" valign="top" width="22%">
<div class="Element68">
partial coverage&nbsp;</div></td></tr><tr>
<td class="Element67" valign="top" width="23%">
<div class="Element68">
‘SV_COV_STOP&nbsp;</div></td><td class="Element67" valign="top" width="19%">
<div class="Element68">
success&nbsp;</div></td><td class="Element67" valign="top" width="19%">
<div class="Element68">
bad args&nbsp;</div></td><td class="Element67" valign="top" width="17%">
<div class="Element68">
-&nbsp;</div></td><td class="Element67" valign="top" width="22%">
<div class="Element68">
-&nbsp;</div></td></tr><tr>
<td class="Element67" valign="top" width="23%">
<div class="Element68">
‘SV_COV_RESET&nbsp;</div></td><td class="Element67" valign="top" width="19%">
<div class="Element68">
success&nbsp;</div></td><td class="Element67" valign="top" width="19%">
<div class="Element68">
bad args&nbsp;</div></td><td class="Element67" valign="top" width="17%">
<div class="Element68">
-&nbsp;</div></td><td class="Element67" valign="top" width="22%">
<div class="Element68">
-&nbsp;</div></td></tr><tr>
<td class="Element67" valign="top" width="23%">
<div class="Element68">
‘SV_COV_CHECK&nbsp;</div></td><td class="Element67" valign="top" width="19%">
<div class="Element68">
full coverage&nbsp;</div></td><td class="Element67" valign="top" width="19%">
<div class="Element68">

⌨️ 快捷键说明

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