Coder Social home page Coder Social logo

linter-verilog's Introduction

#linter-verilog

Atom linter for Verilog, using Icarus Verilog.

Screenshot

#Installation

  1. Install icarus verilog.
    On OSX you can just use brew:
$ brew install icarus-verilog
  1. Install atom package:
$ apm install linter-verilog

linter-verilog's People

Contributors

manucorporat avatar patstew avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

linter-verilog's Issues

Linter message from non-active file causes crash

Let's say I have a directory with several files files in it and my linter lints everything in the directory that's referred to (directly or indirectly from the file I have open (part1.sv).

my_project/audio_and_video_config.v (more than 175 lines)
my_project/part1.sv (172 lines)

If I lint part1.sv, the linter may return a warning from the audio_and_video_config.v file.

%Warning-PINCONNECTEMPTY: my_project/audio_and_video_config.v:175: Cell pin connected by name with empty reference: rising_edge

linter-verilog (an Atom package that makes use of linter) pushes a message with filePath set to my_project/audio_and_video_config.v and range corresponding to the offending line (175).

This message causes the linter to crash since part1.sv, the active file has less than 175 lines

"[Linter] Error running Verilog Error: Line number (174) greater than maximum line (171)
at Object.rangeFromLineNumber"

Linter showing error always at line 1 and col 1

Linter shows the error always in col 1 and lin 1, in a file G (sometimes C) that does not even exist. When I click on the error, it creates the file ( an empty file G with nothing in it). The same linter works fine for Ubuntu, but not on Windows on three different computers. I have also noticed that it shows the error on the project tab, and not on the file tab.

image

Linter not noticing changes

Hi, I've installed the verilog linter using the package market directly from atom and had iverilog installed directly from the website. I'm not seeing any warnings/errors pop up when I edit my .vl file. Does this package rely on anything else besides the base linter?

Unable to distinguish detailed error using iverilog

Hi @manucorporat , The linter-verilog on my Mac could only distinguish "syntax error" without indicating what it is that cause the error as your screenshot on the setting page of linter-verilog.
I could not find anything such as your verilog - plus. How did you make it?

I'm currently use OSX 10.12 and install it from brew. Thanks a lot.

Add verilator as linter-tool (feature request)

Hi there and thx for your plugin,

Is it possible to add verilator as a replacement for icarus?
Verilator is a verilog to C++ converter that includes a linter mode.
It is in active development and has very good support for modern verilog/systemverilog syntax.

The idea is to replace icarus by "verilator --lint-only"
The Error/warning format returned by the linter a little different.

The linter is already used with the syntastic vim plugin (https://github.com/scrooloose/syntastic).

Verilator is a standard package in major Linux distributions and I think through brew for osx. Its source is available on line (http://www.veripool.org/projects/verilator/wiki/Installing).

Regards

How to use it

First Thank you for developing this package.

I installed it with builtin package market, but it cannot work(icarus verilog installed and added to PATH). The error message is as follows.
image

My OS is Windows 10. The Atom version is the latest.
What should I do to enable the package? Thank you.

linter not using the system iverilog

Hello,

I am following https://tinyfpga.com/bx/guide.html and I am getting [Linter] Error running Verilog.

Developer console shows

 /home/why/.atom/pack…ter-registry.js:159 [Linter] Error running Verilog Error: spawn /home/why/.apio/packages/toolchain-iverilog/bin/iverilog ENOENT
    at _errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

e.g. /home/why/.apio/packages/toolchain-iverilog/bin/iverilog does not exist
I do have iverilog installed under ubuntu

selection_114

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.