Better SystemVerilog Syntax for Visual Studio Code
August 16, 2024 Β· View on GitHub
Introduction
Welcome to Better SystemVerilog Syntax! This extension enhances your coding experience by providing advanced TextMate grammar support, specifically designed to improve SystemVerilog syntax highlighting. Our aim is to make your coding sessions more enjoyable and productive by enhancing readability and aesthetics.

Getting Started
- Install the Extension: You can find Better SystemVerilog Syntax in the VS Code Marketplace. Just search for it and click 'Install'.
- Activate Syntax Highlighting: Once installed, open any
.svor.svhfile, and enjoy enhanced syntax highlighting tailored for SystemVerilog.
Supported Syntax
Here's a summary of the SystemVerilog syntax support, categorized by chapter:
| Chapter | Title | Status |
|---|---|---|
| 5 | Lexical conventions | π’ Implemented |
| 6 | Data types | π’ Implemented |
| 7 | Aggregate data types | π’ Implemented |
| 8 | Classes | π’ Implemented |
| 9 | Processes | π’ Implemented |
| 10 | Assignment statements | π’ Implemented |
| 11 | Operators and expressions | π’ Implemented |
| 12 | Procedural programming statements | π’ Implemented |
| 13 | Tasks and functions (subroutines) | π’ Implemented |
| 14 | Clocking blocks | π’ Implemented |
| 15 | Interprocess synchronization and communication | π’ Implemented |
| 16 | Assertions | π’ Implemented |
| 17 | Checkers | π΄ Not Implemented |
| 18 | Constrained random value generation | π’ Implemented |
| 19 | Functional coverage | π΄ Not Implemented |
| 20 | Utility system tasks and system functions | π’ Implemented |
| 21 | Input/output system tasks and system functions | π’ Implemented |
| 22 | Compiler directives | π’ Implemented |
| 23 | Modules and hierarchy | π’ Implemented |
| 24 | Programs | π’ Implemented |
| 25 | Interfaces | π’ Implemented |
| 26 | Packages | π’ Implemented |
| 27 | Generate constructs | π΄ Not Implemented |
| 28 | Gate-level and switch-level modeling | π΄ Not Implemented |
| 29 | User-defined primitives | π΄ Not Implemented |
| 30 | Specify blocks | π’ Implemented |
| 31 | Timing checks | π’ Implemented |
| 32 | Backannotation using the standard delay format | π΄ Not Implemented |
| 33 | Configuring the contents of a design | π’ Implemented |
| 34 | Protected envelopes | π΄ Not Implemented |
Features
Enhanced Syntax Highlighting
- Precision: SystemVerilog syntax is highlighted with unmatched accuracy, ensuring clarity and focus.
- Robustness: Even incomplete or unconventional code structures maintain readability and aesthetics.
- Efficiency: Minified JSON files ensure quick loading times and minimal performance overhead.
How to Contribute
Your contributions are essential for ongoing improvements! Hereβs how you can help:
- Issue Reporting: If you encounter incorrect syntax highlighting, please open an issue.
- Pull Requests: For those looking to contribute code, especially for unimplemented chapters, feel free to submit a pull request. Be sure to include tests!
License
This project is licensed under the MIT License, meaning itβs free for personal and commercial use. For full details, see the LICENSE file.