[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-672877-105":59,"doc-detail-672877-en":130,"doc-similar-672877":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","lowrisc-verilog-coding-style-guide","lowRISC Verilog Coding Style Guide","","lowRISC Verilog Coding Style Guide establishes a consistent, shared set of Verilog/SystemVerilog coding idioms to improve readability, reduce code conflicts, and speed up code review across hardware development teams. It defines the Comportable style for both synthesizable and testbench code, covering formatting rules, naming conventions, file structure, and detailed guidance for language constructs such as modules, assignments, sequential/combinational logic, FSMs, and case statements. It also includes an appendix with a condensed tabular representation for quick reference.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/lowrisc-verilog-coding-style-guide/672877/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/lowrisc-verilog-coding-style-guide/672877.png","ImageObject",300,407,{"name":92,"@type":93},"Kurz","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-11-02",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What purpose does the lowRISC Verilog Coding Style Guide serve?","Question",{"text":112,"@type":113},"It promotes common, required Verilog/SystemVerilog idioms to improve readability, consistency, and code sharing, while reducing code conflicts and code review latency across groups.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Does the style guide cover both synthesizable and testbench code?",{"text":117,"@type":113},"Yes. It defines style for both synthesizable code and testbench code, and it applies to Verilog-2001 and SystemVerilog compliant code.",{"name":119,"@type":110,"acceptedAnswer":120},"What key formatting and coding principles does the guide emphasize?",{"text":121,"@type":113},"It defaults to C-like formatting (aligned with Google’s C++ style guidance), requires POSIX line endings with no tabs or trailing spaces, enforces indentation rules, and stresses consistent spacing around operators and keywords.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},672877,1793611850,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},2336478945635,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","lowRISC / style-guides  \nCode  Issues 6  Pull requests 1  Actions  Projects  Security  Insights  \nJoin GitHub today  \nGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.  \nSign up  \nDismiss  \nmaster   \n[style-guides](style-guides / VerilogCodingStyle.md)[ /](style-guides / VerilogCodingStyle.md)[ VerilogCodingStyle.md](style-guides / VerilogCodingStyle.md)  \nGo to file  \n|  sjgitty update logical context guidance  |  | Latest commit 7271f95 on 13 May  History |\n| --- | --- | --- |\n|  7 contributors  | |  |\n\n2973  \nlines (2289 sloc)  \n87.8  \nKB  \nlowRISC Verilog Coding Style Guide  \nBasics  \nSummary  \nVerilog is the main logic design language for lowRISC Comportable IP.  \nVerilog and SystemVerilog (often generically referred to as just \"Verilog\" in this document) can be written in vastly different styles, which can lead to code conflicts and code review latency. This style guide aims to promote Verilog readability across groups. To quote the Google C++ style guide: \"Creating common, required idioms and patterns makes code much easier to understand. \"  \nThis guide defines the Comportable style for Verilog. The goals are to:  \n promote consistency across hardware development projects  \n promote best practices  \n increase code sharing and re-use  \nThis style guide defines style for both Verilog-2001 and SystemVerilog compliant code. Additionally, this style guide defines style for both synthesizable and test bench code.  \nSee the Appendix for a condensed tabular representation of this style guide.  \nTable of Contents  \n lowRISC Verilog Coding Style Guide  \n Basics  \n Summary  \n Terminology Conventions  \n Default to C-like Formatting  \n Style Guide Exceptions  \n Which Verilog to Use  \n Verilog/SystemVerilog Conventions  \n Summary  \n File Extensions  \n General File Appearance  \n Characters  \n POSIX File Endings  \n Line Length  \n No Tabs  \nNo Trailing Spaces  \n Begin / End  \n Indentation  \n Indented Sections  \n Line Wrapping  \n Preprocessor Directives  \n Spacing  \n Comma-delimited Lists  \n Tabular Alignment  \n Expressions  \n Array Dimensions in Declarations  \n Parameterized Types  \n Labels  \n Case items  \n Function And Task Calls  \n Macro Calls  \n Line Continuation  \n Space Around Keywords  \n Parentheses  \n Ternary Expressions  \n Comments  \n Declarations  \n Basic Template  \n Naming  \n Summary  \n Constants  \n Parameterized Objects (modules, etc.)  \n Macro Definitions  \n Suffixes  \n Enumerations  \n Signal Naming  \n Use descriptive names  \n Prefixes  \n Hierarchical consistency  \n Clocks  \n Resets  \n Language Features  \n Preferred SystemVerilog Constructs  \n Package Dependencies  \n Module Declaration  \n Parameterized Module Instantiation  \n Constants  \n Signal Widths  \n Always be explicit about the widths of number literals.  \n Port connections on module instances must always match widths correctly.  \n Do not use multi-bit signals in a boolean context.  \n Bit Slicing  \n Handling Width Overflow  \n Blocking and Non-blocking Assignments  \n Delay Modeling  \n Sequential Logic (Latches)  \n Sequential Logic (Registers)  \n Don't Cares ( X 's)  \n Combinational Logic  \n Case Statements  \n Wildcards in case items  \n Generate Constructs  \n Signed Arithmetic  \nNumber Formatting  \n Functions and Tasks  \n Problematic Language Features and Constructs  \n Floating begin-end blocks  \n Design Conventions  \n Summary  \n Declare all signals  \n Use  logic  for synthesis  \n Logical vs. Bitwise  \n Packed Ordering  \n Unpacked Ordering  \n Finite State Machines  \n Active-Low Signals  \n Differential Pairs  \n Delays  \n Wildcard import of packages  \n Appendix-Condensed Style Guide  \n Basic Style Elements  \n Construct Naming  \n Suffixes for signals and types  \n Language features  \nTerminology Conventions  \nUnless otherwise noted, the following terminology conventions apply to this style guide:  \n The word must indicates a mandatory requirement. Similarly, do not indicates a prohibition. Imp","cbCaigimunbg25BA","https://ap.wps.com/l/cbCaigimunbg25BA","pdf",837514,37,"English","# Basics\n## Summary\n## Terminology Conventions\n## Default to C-like Formatting\n## Style Guide Exceptions\n## Which Verilog to Use\n# Verilog/SystemVerilog Conventions\n## Summary\n## File Extensions\n## General File Appearance\n## Characters\n## Line Length\n## No Tabs\n## No Trailing Spaces\n## Indentation\n## Line Wrapping\n## Preprocessor Directives\n## Spacing\n## Expressions\n## Comments\n## Declarations\n## Naming\n## Constants\n## Signal Naming\n## Clocks\n## Resets\n## Language Features\n## Preferred SystemVerilog Constructs\n## Module Declaration\n## Always be explicit about the widths of number literals","[{\"question\":\"What purpose does the lowRISC Verilog Coding Style Guide serve?\",\"answer\":\"It promotes common, required Verilog/SystemVerilog idioms to improve readability, consistency, and code sharing, while reducing code conflicts and code review latency across groups.\"},{\"question\":\"Does the style guide cover both synthesizable and testbench code?\",\"answer\":\"Yes. It defines style for both synthesizable code and testbench code, and it applies to Verilog-2001 and SystemVerilog compliant code.\"},{\"question\":\"What key formatting and coding principles does the guide emphasize?\",\"answer\":\"It defaults to C-like formatting (aligned with Google’s C++ style guidance), requires POSIX line endings with no tabs or trailing spaces, enforces indentation rules, and stresses consistent spacing around operators and keywords.\"}]","lowRISC Verilog Coding Style Guide | PDF",93,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/8520e08505e4d7a8157144e8e28ac193.webp",983,1389,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0a217542432beabc8aaf341ab82d9b65.webp",982,1387,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a63fbe89ad45becd9cc87ecd87c2c136.webp",981,1386,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/09f4775999ee7df645be96c85d872acd.webp",980,1384,{"list":163,"token":66},[164,170,176,182,188,194,200,206,212,218],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":39,"category_name":30,"create_tm":169},151504,"Standard Gotchas in Verilog and SystemVerilog - Part 1 - Subtleties","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869939342/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=WRCoqQitv%2FkloDxzYFXici9Mg4E%3D","standard-gotchas-in-verilog-and-systemverilog-part-1-subtleties",1787841792,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":52,"category_name":30,"create_tm":175},656035,"Automatic diagram creation for design and testbenches - Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975298036/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=GeY5Z%2FY%2FZOk07DtceCbWHb2KoF0%3D","automatic-diagram-creation-for-design-and-testbenches-paper",1792965779,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":24,"category_name":30,"create_tm":181},692315,"Good Coding Practices - Python Code Best Practices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002739157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=tAR3V3zCbN9nxGjsvwM53iH2K64%3D","good-coding-practices-python-code-best-practices",1794193122,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":29,"category_name":30,"create_tm":187},682220,"Style Guide for CS 231 and CS 234 - Python Style Requirements","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229998448640/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=P7HME5p5JPlqF0ahl0ELnYc8vLQ%3D","style-guide-for-cs-231-and-cs-234-python-style-requirements",1793963013,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":19,"category_name":30,"create_tm":193},693076,"ROS C++ STYLE GUIDE - Version 1 - style guide instructions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004260684/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=p4FwtG7qLsMEDm%2BtMqksFylWA6M%3D","ros-c-style-guide-version-1-style-guide-instructions",1794248313,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":24,"category_name":30,"create_tm":199},682224,"Python PEP8 - The Style Guide for Python Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999427682/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=Fyv%2Fz6%2BRU8YFCVMtELHsOEWC27A%3D","python-pep8-the-style-guide-for-python-code",1793963024,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":19,"category_name":30,"create_tm":205},672873,"Programming Style Guides and Coding Standards - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990161749/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=QUXd0Xv3Jf%2F01snZjHRebZIo9dU%3D","programming-style-guides-and-coding-standards-introduction",1793611840,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":29,"category_name":30,"create_tm":211},561220,"slideshare_2011_06_CG=Philips,BCP69-25_++SMD_Code_Book_2007_CG=Philips,BCP69-25_++SMD Code Book_2007","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947739785/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=cMZP4GErmaslCSnCIhdPxTrL1Og%3D","slideshare_2011_06_cgphilipsbcp69-25_smd_code_book_2007_cgphilipsbcp69-25_smd-code-book_2007",1791805297,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":34,"category_name":30,"create_tm":217},692314,"CS 116 Course Specific Style Guide - Document","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003205286/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=ZRgRMzaoNwrw%2FrTnu2K5BMEoMZs%3D","cs-116-course-specific-style-guide-document",1794193120,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":39,"category_name":30,"create_tm":223},492839,"CSS Style Guide - Best Practices for Development","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928709601/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120579&Signature=Zjd8CDrgt7q3%2FdwsDv7FW%2BcBae8%3D","css-style-guide-best-practices-for-development",1790870871]