Skip to content

jevogel/SublimeLinter-contrib-modelsim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SublimeLinter-contrib-modelsim

This linter plugin for SublimeLinter provides an interface to vcom/vlog - VHDL/Verilog/SystemVerilog compilers provided with ModelSim and QuestaSim which provide a linting mode. vcom will be used with "VHDL" files , vlog with "Verilog" and "SystemVerilog" files.

Installation

SublimeLinter must be installed in order to use this plugin.

Please use Package Control to install the linter plugin.

Before installing this plugin, you must ensure that vcom/vlog are installed on your system.

In order for vcom/vlog to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover troubleshooting PATH configuration.

Settings

Passing arguments to vcom/vlog

Arguments can be passed in a linter settings file or set in a project settings file:

  1. Using linter settings file:
    // SublimeLinter Settings - User
    {
        "linters": {
            "vcom": {
                "args": ["-2008", "-lint", "-check_synthesis"],
                "working_dir": "$project_path/../sim"
            },
            "vlog": {
                "args": ["-sv", "-lint", "-check_synthesis"],
                "working_dir": "$project_path/../sim"
            }
        }
    }
  2. Alternately, project specific arguments can be set in a project file:
    "settings": {
        // SublimeLinter-contrib-modelsim
        "SublimeLinter.linters.vcom.args": ["-2008", "-lint", "-check_synthesis"],
        "SublimeLinter.linters.vcom.working_dir": "$project_path/../sim",
        "SublimeLinter.linters.vlog.args": ["-sv", "-lint", "-check_synthesis"],
        "SublimeLinter.linters.vlog.working_dir": "$project_path/../sim"
    },

Demo

vcom for VHDL file:

vcom_lint_example

vlog for Verilog file:

vlog_lint_example

About

⚡👌 ModelSim vcom/vlog plugin for SublimeLinter. Linting for VHDL and Verilog/SystemVerilog.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 91.9%
  • VHDL 4.4%
  • Verilog 3.7%