<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="generator" content="pdf2htmlEX">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css">
<link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css">
<link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/622b304981ded46b7f1b90f7/raw.css">
<script src="https://static.pudn.com/base/js/compatibility.min.js"></script>
<script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script>
<script>
try{
pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});
}catch(e){}
</script>
<title></title>
</head>
<body>
<div id="sidebar" style="display: none">
<div id="outline">
</div>
</div>
<div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b304981ded46b7f1b90f7/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">HDL<span class="_"> </span><span class="ff2 ls1">编码风格与编码指南<span class="ff1"> </span></span></div><div class="t m0 x2 h2 y2 ff1 fs0 fc0 sc0 ls2 ws0">www<span class="_ _0"></span>.fpga.com.cn </div><div class="t m0 x3 h3 y3 ff3 fs1 fc1 sc1 ls1 ws0"> </div><div class="t m0 x3 h3 y4 ff3 fs1 fc1 sc1 ls3 ws0">HDL<span class="_ _1"> </span><span class="ff2">编码风格与编码指南</span><span class="fs2 sc0 ls1"> </span><span class="ls1"> </span></div><div class="t m0 x3 h4 y5 ff3 fs2 fc1 sc0 ls1 ws0"> </div><div class="t m0 x3 h4 y6 ff3 fs2 fc1 sc0 ls1 ws0"> </div><div class="t m0 x3 h4 y7 ff3 fs2 fc1 sc0 ls4 ws0">Rev. 0.1 </div><div class="t m0 x3 h4 y8 ff3 fs2 fc1 sc0 ls4 ws0">June 30<span class="ff2 ls1">,</span>2002 </div><div class="t m0 x3 h3 y9 ff3 fs1 fc0 sc0 ls1 ws0"> </div><div class="t m0 x3 h3 ya ff2 fs1 fc1 sc1 ls3 ws0">第一部分:说明<span class="ff3 ls1"> <span class="fs2 sc0"> </span></span></div><div class="t m0 x3 h4 yb ff3 fs2 fc1 sc0 ls4 ws0"> </div><div class="t m0 x3 h4 yc ff3 fs2 fc1 sc1 ls5 ws0">1.<span class="ff2 ls6">准则的重要程度分三个层次:</span><span class="sc0 ls1"> </span></div><div class="t m0 x3 h4 yd ff2 fs2 fc1 sc1 ls6 ws0">好的经验<span class="ff3 sc0 ls4"> -- <span class="ff2 ls1">表明这条规则是一般情况下比较好的经验,在大多数的情况下<span class="ff3"> </span></span></span></div><div class="t m0 x3 h4 ye ff2 fs2 fc1 sc0 ls1 ws0">要遵循<span class="ff3">,</span>在特殊情况下可以突破这一规则。<span class="ff3"> </span></div><div class="t m0 x3 h4 yf ff2 fs2 fc1 sc1 ls6 ws0">推荐<span class="ff3 sc0 ls4"> -- <span class="ff2 ls1">推荐这一规则,在遵循这一规则的条件下,一般不会出现问题;<span class="ff3"> </span></span></span></div><div class="t m0 x3 h4 y10 ff2 fs2 fc1 sc1 ls6 ws0">强烈推荐<span class="ff3 sc0 ls4"> -- <span class="ff2 ls1">表示严格规定,除非出现特别特殊的情况,否则要严格遵守。</span><span class="ls7"> </span></span></div><div class="t m0 x3 h4 y11 ff3 fs2 fc1 sc1 ls1 ws0">2<span class="ff2">.<span class="_ _2"></span>斜体部分一般表明不按照规则执<span class="_ _3"></span>行,<span class="_ _2"></span>会出现的问题和现象,<span class="_ _2"></span>或一些相关注释。<span class="_ _4"></span><span class="ff3 sc0 ls7"> </span></span></div><div class="t m0 x3 h4 y12 ff3 fs2 fc1 sc1 ls1 ws0">3<span class="ff2 ls6">.版本及修订工作</span><span class="sc0 ls7"> </span></div><div class="t m0 x3 h4 y13 ff2 fs2 fc1 sc0 ls1 ws0">姓名<span class="ff3"> </span>徐欣<span class="ff3"> </span>博士,孙广富<span class="ff3"> </span>博士<span class="ff3"> </span></div><div class="t m0 x3 h4 y14 ff2 fs2 fc1 sc0 ls1 ws0">修订<span class="ff3"> </span>规范的最初发布日期<span class="ff3 ls4"> 2002-6-30 </span></div><div class="t m0 x3 h4 y15 ff3 fs2 fc1 sc0 ls1 ws0"> </div><div class="t m0 x3 h4 y16 ff3 fs2 fc1 sc0 ls1 ws0"> </div><div class="t m0 x3 h3 y17 ff2 fs1 fc1 sc1 ls3 ws0">第二部分:<span class="ff3">HDL<span class="_ _1"> </span></span>编码风格<span class="ff3 fs2 sc0 ls1"> </span></div><div class="t m0 x3 h4 y18 ff3 fs2 fc1 sc0 ls4 ws0"> </div><div class="t m0 x3 h4 y19 ff3 fs2 fc1 sc1 ls5 ws0">1. <span class="ff2 ls6">文件头和修订列表</span><span class="sc0 ls1"> </span></div><div class="t m0 x3 h4 y1a ff2 fs2 fc1 sc0 ls1 ws0">作为好的源代码,其中必须包含所有需要的信息。因此源代码中要<span class="ff3"> </span></div><div class="t m0 x3 h4 y1b ff2 fs2 fc1 sc0 ls1 ws0">包含文件头和修订列表(以获得修改情况)。<span class="ff3"> </span></div><div class="t m0 x3 h4 y1c ff3 fs2 fc1 sc1 ls1 ws0">1<span class="ff2">.</span><span class="ls5">1 <span class="ff2 ls6">文件头包含以下内容:</span></span><span class="sc0"> </span></div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
</body>
</html>
<div id="pf2" class="pf w0 h0" data-page-no="2"><div class="pc pc2 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b304981ded46b7f1b90f7/bg2.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">HDL<span class="_"> </span><span class="ff2 ls1">编码风格与编码指南<span class="ff1"> </span></span></div><div class="t m0 x2 h2 y2 ff1 fs0 fc0 sc0 ls2 ws0">www<span class="_ _0"></span>.fpga.com.cn </div><div class="t m0 x3 h4 y1d ff2 fs2 fc1 sc0 ls1 ws0">·模块名<span class="ff3"> </span></div><div class="t m0 x3 h4 y1e ff2 fs2 fc1 sc0 ls1 ws0">·文件名<span class="ff3"> </span></div><div class="t m0 x3 h4 y1f ff2 fs2 fc1 sc0 ls1 ws0">·需要的库<span class="ff3"> </span></div><div class="t m0 x3 h4 y20 ff2 fs2 fc1 sc0 ls1 ws0">·模块描述<span class="ff3"> </span></div><div class="t m0 x3 h4 y21 ff2 fs2 fc1 sc0 ls1 ws0">·使用的仿真器<span class="ff3 ls4">--</span>其运行平台和版本<span class="ff3"> </span></div><div class="t m0 x3 h4 y22 ff2 fs2 fc1 sc0 ls1 ws0">·使用的综合工具,其运行平台和版本<span class="ff3"> </span></div><div class="t m0 x3 h4 y23 ff2 fs2 fc1 sc0 ls1 ws0">·作者名字和<span class="_ _5"> </span><span class="ff3 ls4">e-mail </span></div><div class="t m0 x3 h4 y24 ff3 fs2 fc1 sc1 ls1 ws0">1<span class="ff2">.</span><span class="ls5">2 <span class="ff2 ls6">修订列表包含以下内容:</span></span><span class="sc0"> </span></div><div class="t m0 x3 h4 y25 ff2 fs2 fc1 sc0 ls1 ws0">·修订版本号<span class="ff3"> </span></div><div class="t m0 x3 h4 y26 ff2 fs2 fc1 sc0 ls1 ws0">·改动的数据<span class="ff3"> </span></div><div class="t m0 x3 h4 y27 ff2 fs2 fc1 sc0 ls1 ws0">·修订者名字和<span class="_ _5"> </span><span class="ff3 ls4">e-mail </span></div><div class="t m0 x3 h4 y28 ff2 fs2 fc1 sc0 ls1 ws0">·改动的详细描述<span class="ff3"> </span></div><div class="t m0 x3 h4 y29 ff2 fs2 fc1 sc0 ls1 ws0">下面是一个例子:<span class="ff3"> </span></div><div class="t m0 x3 h4 y2a ff3 fs2 fc1 sc0 ls4 ws0">Example Header </div><div class="t m0 x3 h4 y2b ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y2c ff3 fs2 fc1 sc0 ls4 ws0">----------------------- </div><div class="t m0 x3 h4 y2d ff3 fs2 fc1 sc0 ls4 ws0">-- Module : MAC (Multiply Accumulate Unit) </div><div class="t m0 x3 h4 y2e ff3 fs2 fc1 sc0 ls4 ws0">-- File : mac.vhd </div><div class="t m0 x3 h4 y2f ff3 fs2 fc1 sc0 ls4 ws0">-- Library : ieee,....... </div><div class="t m0 x3 h4 y30 ff3 fs2 fc1 sc0 ls8 ws1">-- Descriptio<span class="_ _3"></span>n : It is a ge<span class="_ _3"></span>neral Purpose M<span class="_ _3"></span>ultiply Accum<span class="_ _3"></span>ulate Unit capa<span class="_ _3"></span>ble </div><div class="t m0 x3 h4 y31 ff3 fs2 fc1 sc0 ls4 ws0">of </div><div class="t m0 x3 h4 y32 ff3 fs2 fc1 sc0 ls4 ws0">-- Simulator : Modelsim 5.2 / Windows 95 </div><div class="t m0 x3 h4 y33 ff3 fs2 fc1 sc0 ls4 ws0">-- Synthesizer : Synplify / Windows95 </div><div class="t m0 x3 h4 y34 ff3 fs2 fc1 sc0 ls4 ws0">-- Author / Designer : Harish Y S (harish@opencores.org) </div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
<div id="pf3" class="pf w0 h0" data-page-no="3"><div class="pc pc3 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b304981ded46b7f1b90f7/bg3.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">HDL<span class="_"> </span><span class="ff2 ls1">编码风格与编码指南<span class="ff1"> </span></span></div><div class="t m0 x2 h2 y2 ff1 fs0 fc0 sc0 ls2 ws0">www<span class="_ _0"></span>.fpga.com.cn </div><div class="t m0 x3 h4 y35 ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y36 ff3 fs2 fc1 sc0 ls4 ws0">----------------------- </div><div class="t m0 x3 h4 y37 ff3 fs2 fc1 sc0 ls4 ws0">Example Revision List </div><div class="t m0 x3 h4 y38 ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y39 ff3 fs2 fc1 sc0 ls4 ws0">----------------------- </div><div class="t m0 x3 h4 y3a ff3 fs2 fc1 sc0 ls4 ws0">-- Revision Number : 1 </div><div class="t m0 x3 h4 y3b ff3 fs2 fc1 sc0 ls4 ws0">-- Date of Change : 20th March 2000 </div><div class="t m0 x3 h4 y3c ff3 fs2 fc1 sc0 ls4 ws0">-- Modifier : Harish Y S (harish@opencores.org) </div><div class="t m0 x3 h4 y3d ff3 fs2 fc1 sc0 ls4 ws0">-- Description : Initial Design </div><div class="t m0 x3 h4 y3e ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y3f ff3 fs2 fc1 sc0 ls4 ws0">----------------------- </div><div class="t m0 x3 h4 y40 ff3 fs2 fc1 sc0 ls4 ws0">-- Revision Number : 2 </div><div class="t m0 x3 h4 y41 ff3 fs2 fc1 sc0 ls4 ws0">-- Date of Change : dd mm yyyy </div><div class="t m0 x3 h4 y42 ff3 fs2 fc1 sc0 ls4 ws0">-- Modifier : XYZ (email) </div><div class="t m0 x3 h4 y43 ff3 fs2 fc1 sc0 ls4 ws0">-- Description : Modified the ????.to improve ????.. </div><div class="t m0 x3 h4 y44 ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y45 ff3 fs2 fc1 sc0 ls4 ws0">----------------------- </div><div class="t m0 x3 h4 y46 ff2 fs2 fc1 sc0 ls1 ws0">文件头的标准模式:<span class="ff3"> </span></div><div class="t m0 x3 h4 y47 ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y48 ff3 fs2 fc1 sc0 ls4 ws0">----------- </div><div class="t m0 x3 h4 y49 ff3 fs2 fc1 sc0 ls4 ws0">-- Title : </div><div class="t m0 x3 h4 y4a ff3 fs2 fc1 sc0 ls4 ws0">-- Project : </div><div class="t m0 x3 h4 y4b ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y4c ff3 fs2 fc1 sc0 ls4 ws0">----------- </div><div class="t m0 x3 h4 y4d ff3 fs2 fc1 sc0 ls4 ws0">-- File : </div><div class="t m0 x3 h4 y4e ff3 fs2 fc1 sc0 ls4 ws0">-- Author : name <email> </div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>
<div id="pf4" class="pf w0 h0" data-page-no="4"><div class="pc pc4 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/622b304981ded46b7f1b90f7/bg4.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">HDL<span class="_"> </span><span class="ff2 ls1">编码风格与编码指南<span class="ff1"> </span></span></div><div class="t m0 x2 h2 y2 ff1 fs0 fc0 sc0 ls2 ws0">www<span class="_ _0"></span>.fpga.com.cn </div><div class="t m0 x3 h4 y1d ff3 fs2 fc1 sc0 ls4 ws0">-- Organization: </div><div class="t m0 x3 h4 y1e ff3 fs2 fc1 sc0 ls4 ws0">-- Created : </div><div class="t m0 x3 h4 y1f ff3 fs2 fc1 sc0 ls4 ws0">-- Last update : </div><div class="t m0 x3 h4 y20 ff3 fs2 fc1 sc0 ls4 ws0">-- Platform : </div><div class="t m0 x3 h4 y21 ff3 fs2 fc1 sc0 ls4 ws0">-- Simulators : </div><div class="t m0 x3 h4 y22 ff3 fs2 fc1 sc0 ls4 ws0">-- Synthesizers: </div><div class="t m0 x3 h4 y23 ff3 fs2 fc1 sc0 ls4 ws0">-- Targets : </div><div class="t m0 x3 h4 y24 ff3 fs2 fc1 sc0 ls4 ws0">-- Dependency : </div><div class="t m0 x3 h4 y4f ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y50 ff3 fs2 fc1 sc0 ls4 ws0">----------- </div><div class="t m0 x3 h4 y51 ff3 fs2 fc1 sc0 ls4 ws0">-- Description: </div><div class="t m0 x3 h4 y52 ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y53 ff3 fs2 fc1 sc0 ls4 ws0">----------- </div><div class="t m0 x3 h4 y54 ff3 fs2 fc1 sc0 ls4 ws0">-- Copyright (c) notice </div><div class="t m0 x3 h4 y55 ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y56 ff3 fs2 fc1 sc0 ls4 ws0">----------- </div><div class="t m0 x3 h4 y57 ff3 fs2 fc1 sc0 ls4 ws0">-- Revisions : </div><div class="t m0 x3 h4 y58 ff3 fs2 fc1 sc0 ls4 ws0">-- Revision Number : </div><div class="t m0 x3 h4 y59 ff3 fs2 fc1 sc0 ls4 ws0">-- Version : </div><div class="t m0 x3 h4 y5a ff3 fs2 fc1 sc0 ls4 ws0">-- Date : </div><div class="t m0 x3 h4 y5b ff3 fs2 fc1 sc0 ls4 ws0">-- Modifier : name <email> </div><div class="t m0 x3 h4 y5c ff3 fs2 fc1 sc0 ls4 ws0">-- Desccription : </div><div class="t m0 x3 h4 y5d ff3 fs2 fc1 sc0 ls4 ws0">--------------------------------------------------------------------</div><div class="t m0 x3 h4 y5e ff3 fs2 fc1 sc0 ls4 ws0">---------- </div><div class="t m0 x3 h4 y5f ff3 fs2 fc1 sc1 ls1 ws0">2<span class="ff2 ls6">.联机注释</span><span class="sc0"> </span></div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div>