?? 00533.html
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<title>4.9.1 通配符索引類型</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', '00533.html');" onmousedown="onBodyMouseDown();">
<!-- Begin Popups -->
<div class="Element801" id="popup00069">
<div class="Element800">
<div class="Element14">
鏈接</div>
<div class="Element11">
<div class="Element10">
<a href="00532.html" target="topic">4.9 聯(lián)合數(shù)組</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, 'popup00069');"><img src="seealsolink.png" border="0" alt="" title=""></a> SystemVerilog 3.1a語(yǔ)言參考手冊(cè)</div>
</td><td width="34%">
<div class="Element2">
</div>
</td><td width="33%">
<div class="Element90">
<a href="00532.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="00532.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="00534.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">
4.9.1 通配符索引類型</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">
<p class="Element10">
例子: </p><div class="Element170">
<a href="#" onclick="CopyElementToClipboard('code00139');">Copy Code</a></div>
<div class="Element13"><div class="Element12" id="code00139"><pre class="Element12"><span style="color: #0000FF">int</span> array_name <span style="color: #800080">[</span><span style="color: #FF0000">*</span><span style="color: #800080">];</span></pre></div></div>
<p class="Element10">
使用通配符索引類型的聯(lián)合數(shù)組具有下列屬性:</p>
<ul class="Element630">
<li class="Element600">數(shù)組可以使用任意integral數(shù)據(jù)類型進(jìn)行索引。因?yàn)樗饕梢跃哂胁煌某叽?,所以相同的?shù)值可以具有多個(gè)表示,每一個(gè)索引都具有不同的尺寸。通過檢測(cè)前導(dǎo)0的數(shù)目并為每一個(gè)值計(jì)算唯一的長(zhǎng)度和表示,SystemVerilog能夠解析這種模糊。</li>
<li class="Element600">非integral索引類型是非法的,并會(huì)導(dǎo)致一個(gè)類型檢查錯(cuò)誤。</li>
<li class="Element600">包含<span style="color: #FF0000">X</span>或<span style="color: #FF0000">Z</span>的四態(tài)索引是無(wú)效的。</li>
<li class="Element600">索引是無(wú)符號(hào)的。</li>
<li class="Element600">索引表達(dá)式是自解析的;有符號(hào)的索引不進(jìn)行符號(hào)擴(kuò)展。</li>
<li class="Element600">字符串文本索引被自動(dòng)地強(qiáng)制轉(zhuǎn)換成等價(jià)尺寸的位向量。</li>
<li class="Element600">按數(shù)值順序排序(從最小到最大)。</li>
</ul></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="00532.html" target="topic">4.9 聯(lián)合數(shù)組</a></p></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="00532.html" target="topic">4.9 聯(lián)合數(shù)組</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>除非特別聲明,原文版權(quán)歸作者所有,如有轉(zhuǎn)摘請(qǐng)注明原作者以及譯者(<a href="http://www.fpgatech.net/" target="_blank">FPGA技術(shù)網(wǎng)</a>)信息。<br />
如果您對(duì)本主題有何建議或意見,請(qǐng)登陸<a href="http://www.fpgatech.net/forum/forumdisplay.php?fid=18" target="_blank">FPGA開發(fā)者家園</a>提交,您的參與是我們前進(jìn)的動(dòng)力。</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="我要啦免费统计" 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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -