verilog-format | Console application for apply format to verilog file | Code Quality library
kandi X-RAY | verilog-format Summary
kandi X-RAY | verilog-format Summary
Console application for apply format to verilog file.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process command line options
- Overwrites memory
- Format file
- Indent the given line
- Checks if the given line contains an endmodule comment
- Checks if the given line matches the module
- Applies the styles to the output
- Checks to see if a line is a module
- Updates the state machine for a repeat state
- Appends the given line to the given file
- Apply the rules to the file
- Outputs the current state machine
- Get options for verbatim
- Indent a line
- Decorate the given line
- Indent state changes
- Main entry point
- Outputs a state machine in a while block
- Indent the state machine for a given line
- Outputs a state machine to a state machine
- Appends the state machine to the state machine
- Decorate the line
- Process the output
- Indent the current state of a case
- Indicates the state of a function
- Indicates a state machine for a task
verilog-format Key Features
verilog-format Examples and Code Snippets
Community Discussions
Trending Discussions on verilog-format
QUESTION
As an RTL developer, I find it annoying that my favorite text editors (Notepad++, Sublime, VS Code) don't have autoformat options for RTL languages like Verilog and VHDL. So I took it upon myself to create one.
I want to develop an auto-format extension for one of those editors. I dropped Notepad++ because it doesn't have native support for Linux and macOS.
So, the question is: how to get started in developing an auto-format extension for a language for Sublime and VS Code?
Notes:
I don't intend to develop an extension for both editors but I'd want to see which would be more feasible.
With Verilog being closer to C syntax, it might be easier to start there (and I also prefer it over VHDL, but let's not get into religious discussions)
I know that Emacs and Sigasi editors provide auto-format options for RTL languages but their format options are strict and I don't like the outcome, hence I intend to make the formatting style configurable
I ran into this work https://github.com/thomasrussellmurphy/istyle-verilog-formatter it might be useful to build on it if possible
ANSWER
Answered 2018-Nov-29 at 09:01I don't intend to develop an extension for both editors but I'd want to see which would be more feasible.
In my opinion, I would prefer coding RTL languages in VS code because it's more versatile than sublime text as in free beer and speech. I would highly recommend beginning from here https://code.visualstudio.com/docs/extensions/example-hello-world. Oh, you also need to know Typescript / Javascript to write an extension.
I ran into this work https://github.com/thomasrussellmurphy/istyle-verilog-formatter it might be useful to build on it if possible
I am excited to see the port of this to VS Code/ Sublime Text. I am sorry I don't know how to work on from C++ to TypeScript. My guess would be to copy the implementation method and write in TypeScript.
From their website :
Prerequisites:
You need Node.js installed and available in your $PATH. Node.js includes npm, the Node.js Package Manager, which will be used to install the extension generator.
I am pretty excited to see auto formatting extensions for Verilog. I hope i can contribute too :)
Edit : I found this https://github.com/g2384/VHDLFormatter written in TypeScript. The transition to VSCode/Sublime would be easier than the above in C++. I have tested it personally and it works awesome! Hope it helps :)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install verilog-format
Clone repository. $ git clone https://github.com/ericsonj/verilog-format.git
Install verilog-format $ cd verilog-format/bin/ $ sudo mkdir /opt/verilog-format $ sudo unzip verilog-format-LINUX.zip -d /opt/verilog-format/
Execute like java $ java -jar /opt/verilog-format/verilog-format.jar
Execute like linux script $ /opt/verilog-format/verilog-format
Install in system $ sudo cp /opt/verilog-format/verilog-format /usr/bin/
Clone repository or download verilog-format-WIN.zip. Unzip and copy in your preferer folder.
Clone repository or download verilog-format-WIN.zip
Unzip and copy in your preferer folder.
For build de project, Maven is needed.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page