Looking for an editor / IDE that understands verilog - Page 1
Forum section: electronics / general

author: cedric!
author_rank: Contributor
timestamp: November 28, 2020, 08:02:33 am
content: Hi all,I'm making a pwm generator that can be controlled by SPI as a learning exercise for verilog and FPGA's.I'm using a generic text editor, and a script to execute a simulation. Thes text editor has no idea about verilog, so they don't have code completion, syntax highlighting, following symbols and all the other help I do get when using Qt creator for writing C++Therefore I'm looking for a text editor that runs on arch Linux that knows about verilog.For reference, here's what I came up with so far:Code:$ cat simulate.sh#!/bin/bashiverilog -Wall spi_test.vvvp a.outgtkwave spi_test.vcd -a test.gtkwCode:$ cat spi_test.v`include "spi.v"module spi_testbench();reg spiclk, cs, mosi;wire [15:0] data;spi dut(spiclk, cs, mosi, data);initial begin$dumpfile("spi_test.vcd");$dumpvars(1, spiclk);spiclk = 0;$dumpvars(1, cs);cs = 0;$dumpvars(1, mosi);mosi =0;$dumpvars(1, data);endinitial begin#10000 //after this delay...$finish; //end simulationendinitial begin#10mosi = 1;#10spiclk = 1;#10spiclk = 0;#10spiclk = 1;#10spiclk = 0;#10spiclk = 1;#10cs = 1;#10spiclk = 0;#10spiclk = 1;#10spiclk = 0;#10spiclk = 1;#10spiclk = 0;#10spiclk = 1;#10spiclk = 0;#10spiclk = 1;#10spiclk = 0;endendmoduleCode:$ cat spi.vmodule spi(input spiclk, input cs, input mosi, output[15:0] data);reg [15:0] data_shift;initial begindata_shift = 0;endalways @(posedge spiclk) beginif (cs) begindata_shift[15:0] <= {mosi,data_shift[15:1]};$display ("data_shift: %0d ",data_shift);endendassign data = data_shift;endmodule

author: johnh
author_rank: Regular Contributor
timestamp: November 28, 2020, 08:27:36 am
content: Have you looked at Vimhttps://www.vim.org/scripts/script.php?script_id=1586

author: DiTBho
author_rank: Super Contributor
timestamp: November 28, 2020, 09:29:29 am
content: Sigasiis probably the best business solution for the HDL development things. It's a commercial application with a free-version that is *enough* useful even if it's a trial. The license is not perpetual, you have to pay for a month-per-seat rather than for a annual license (20% off, but it's a lot of money), which may or may not be acceptable.Slickeditis also a great commercial editor. There is a trial, but ...As "opensource" (free = no money) alternative, you can also look at Eclipse + some plugins, or at VIm + Nerdtree (allows you to *browse* sources inside the editor) + some "Verilog-specific"-plugins

author: RoGeorge
author_rank: Super Contributor
timestamp: November 28, 2020, 11:00:46 am
content: VS Code + Verilog plugins. VS Code is now multi-platform, free and open source. Not a fan of Microsoft myself, but this is probably the best IDE out there, IMO.If you plan to later test the project in hardware, too, you may want to try the IDE/toolchain provided by your FPGA manufacturer.

author: ale500
author_rank: Frequent Contributor
timestamp: November 28, 2020, 11:42:11 am
content: VS Code works well, but needs loads of memory. It has an integrated terminal, I love that.Notepad++ works also very well, I like its column marking/copying/moving capabilities, they are a bit better than in VSCode (I use the Notepad++ keybindings in VSCode).

author: cedric!
author_rank: Contributor
timestamp: November 28, 2020, 01:53:23 pm
content: Verilogcreator looks promising:https://hackaday.com/2018/12/29/open-source-ide-for-fpgas-as-qtcreator-learns-verilog/

author: SiliconWizard
author_rank: Super Contributor
timestamp: November 28, 2020, 05:21:49 pm
content: If you're looking for a cross-platform editor, you can also have a look at Geany.