Code Monkey home page Code Monkey logo

veribleformatterverilog's Introduction

VeribleFormatterVerilog

VeribleFormatterVerilog: A formatter for sublime using verible and some modify to easier use

Overview

It's a simple plugin for sublime which is a formatter for verilog using verible. To avoid format fail, it also auto comment and uncomment `include.

Features

Format verilog and SystemVerilog file through verible.

For some code like:

reg [32-1:0] test[0:1024-1] ={`include "res.dat"};

Verible will show an error and refuse formatting. This plugin will auto comment out these code and uncomment them afer formatting.

Installation

Befor using this plugin, you have to install verible and add that to your PATH. Please make sure you can use verible-verilog-format directly in shell.

VeribleFormatterVerilog can be installed via Package Control in Sublime Text. Simply search for "VeribleFormatterVerilog" and then install this plugin. Alternatively, you can download the released file and place it in Sublime Text > Settings > Browse Packages > User.

Usage

After installation, configure a keybinding to trigger the plugin:

  1. Open Preferences > Key Bindings in Sublime Text.
  2. Add keybinding for the following commands, I use F11 here:

For formatting current file:

 {
     "keys": ["f11"],
     "command": "format_with_verible"
 }

Then you can triger format by F11 or Edit->Line->Format with Verible

Contributing

Contributions to VeribleFormatterVerilog are welcome! If you have any suggestions, bug reports, or want to contribute code, please feel free to open an issue or submit a pull request.

Support

For support, questions, or feature requests, please open an issue in this repository. If you like, you can also contract me through [email protected].

License

MPL-2.0

veribleformatterverilog's People

Contributors

sxr1223 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.