欢迎来到天天文库
浏览记录
ID:33159590
大小:294.50 KB
页数:42页
时间:2019-02-21
《[信息与通信]verilog_coding_style》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、VerilogCodingStyleVerilogHDLCodingRules42of42Version0.1VerilogCodingStyle1.IntroductionThegeneralcodingstandardspertaintodesigngenerationanddealwithnamingconventions,documentationofthecodeandtheformat,orstyle,ofthecode.Conformitytothesestandardssimplifiesreusebydescribinginsightthatisabsen
2、tfromthecode,makingthecodemorereadableandassuringcompatibilitywithmosttools.Anyexceptionstotherulesspecifiedinthisstandard,exceptasnoted,mustbejustifiedanddocumented.Themethodologystandardspromotereusebyensuringahighadaptabilityamongapplications.Theintentofthisdocumentistoensurethatthegate
3、levelimplementationisidenticaltotheHDLcodeasitisunderstoodbyastandardVerilogsimulator.Partitioningcanaffecttheeasewithwhichamodelcanbeadaptedtoanapplication.Themodelingcomplexbehaviorsectiondealswithstructuresthataretypicallydifficulttoaddresswellinasynthesisenvironmentandareneededtoensure
4、pre-andpost-synthesisconsistency.Thesestandardsapplytobehavioralaswellassynthesizablecode.2ReferenceInformation2.1DocumentedReferences1.ReuseMethodologyManualforSystem-on-a-ChipDesigns,M.Keating,P.Bricaud,KluwerAcademicPublishers,2ndEdition,1999.2.2TerminologyHDL:HardwareDescriptionLanguag
5、eMTBF:MeanTimeBetweenFailuresPLL:PhaseLockedLoopRTL:RegisterTransferLevel3NamingConventions42of42Version0.1VerilogCodingStyle3.1FileNamingRULE3.1OnedesignunitperfileAfilemustnotcontainmorethanonedesignunit.Everythingcontainedinadesignunitmustbecompletelycontainedinasinglemodule/endmoduleco
6、nstruct.Reason:Simplifydesignmodifications.RULE3.2FilenamingconventionsThefilenameisthesamewiththeblockname,andshouldbecomposedinthefollowingway:.where:isthenameofthedesignunit(i.e.,modulename).signifiesthatitisaVerilogfile:.vVerilogfileforRTL.vgVe
7、rilogfileforGateLevelDesign.vhdforvhdlfile.Reason:Simplifyunderstandingthedesignstructure,andfilecontents.Example:spooler.vSynthesizableVerilogcodeformodulespoolerNote:RefertothedesignBlockDeliverablessectionformodelnamingconventions.RULE3.3AnaloganddigitalVer
此文档下载收益归作者所有