News for hackers. Stuff that matters.
Re:Verilator: Fast, Free Verilog HDL Simulator by bpye on Tuesday April 02, 2019 @02:17AM (#19551500)
Verilator is an awesome tool. I suggest if you are interested in open-source EDA this you also check out Icarus Verilog [1] - an event based Verilog sim, Yosys [2] - a Verilog synthesis tool and formal solver, and NextPNR [3] - a place-and-route tool. The set of these provide a pretty reasonable set of tools for developing hardware (that is HDL) with fully open source software!

[1] - http://iverilog.icarus.com/ [2] - http://www.clifford.at/yosys/ [3] - https://github.com/YosysHQ/nextpnr

Re:Verilator: Fast, Free Verilog HDL Simulator by bem94 on Tuesday April 02, 2019 @06:51AM (#19552743)
There's a longer curated list of general HDL languages and tools here: https://github.com/drom/awesome-hdl
Re:Verilator: Fast, Free Verilog HDL Simulator by analognoise on Tuesday April 02, 2019 @03:36AM (#19551862)
Verilator has some serious limitations:

  The driving test bench is C/C++
  It is a cycle simulator, not a delta-time simulator: it will 
  only simulate synthesizable code (not test bench code) 
  It cannot do back-annotated timing simulations
  It cannot use encrypted vendor libraries (no simulations with Xilinx IP, for example)
  It has no mixed-HDL language capabilities
  It requires Gtkwave to view waveforms with (opinion, but I hate the UI)
It is a terrible recommendation for beginners - you'd be much better served by using Xilinx Vivado's inbuilt simulator and waveform viewer.
Re:Verilator: Fast, Free Verilog HDL Simulator by orbifold on Tuesday April 02, 2019 @04:39AM (#19552145)
It has a steep learning curve, but overall I think it forces you to adopt good development practices from the start. Since it generates C++ you can also easily wrap that code and expose it to python. That way you can use software tools instead of system verilog and can easily do integration testing with your software HAL. In practice our group uses commercial tools (synopsis, cadence) and DPI-C but for the most part this is because of the VHDL code we have. Vivado‘s build in simulator is way too slow.
Re:Verilator: Fast, Free Verilog HDL Simulator by q3k on Tuesday April 02, 2019 @07:48AM (#19553039)
The first two are a feature for me. Not to mention not being crippled by Xilinx 'IP Core' DRM.
Re:Verilator: Fast, Free Verilog HDL Simulator by analognoise on Tuesday April 02, 2019 @04:42PM (#19558371)
Crippled by extant, available code which is shipping in millions of devices?

Is it perfect? Hell no. But it's a bit drastic to throw out an entire catalog of the most battle-tested HDL code in the world, isn't it?

Re:Verilator: Fast, Free Verilog HDL Simulator by _chris_ on Tuesday April 02, 2019 @03:30PM (#19557760)
> It requires Gtkwave to view waveforms with (opinion, but I hate the UI)

It dumps a value-change file (vcd) which can be viewed by anything, no? Sure it's not very compressed (and the compile-time for vcd-generation is unfortunate), but it's not a show-stopper.

Re:Verilator: Fast, Free Verilog HDL Simulator by analognoise on Tuesday April 02, 2019 @03:58PM (#19557986)
This is correct; although I am unaware of a FOSS vcd viewer which improves upon Gtkwave.

I would be exceedingly happy to find one, however; please let me know.

Re:Verilator: Fast, Free Verilog HDL Simulator by qalmakka on Tuesday April 02, 2019 @08:47AM (#19553435)
During my short experience with hardware design at the university I never had the chance of using Verilog. Are there advantages in using it instead of VHDL?
Re:Verilator: Fast, Free Verilog HDL Simulator by Cyph0n on Tuesday April 02, 2019 @09:06AM (#19553605)
In my experience, it's:

1) Less verbose and easier to write, but slightly more "error" prone (think: Java vs. Python).

2) More widely used in industry. VHDL is more heavily used in the defense industry (it came out of DoD).

3) Better support for verification (e.g., SystemVerilog).

Re:Verilator: Fast, Free Verilog HDL Simulator by q3k on Tuesday April 02, 2019 @11:36AM (#19555250)
Open-Source tooling support (Yosys/NextPNR flow, Yosys formal verification flow, Verilator, IVerilog).

VHDL only has GHDL. And there's a bunch of small projects to translate synthesizable VHDL into Verilog (to then feed into the aforementioned tooling), but none of them are good.

Re:Verilator: Fast, Free Verilog HDL Simulator by TD-Linux on Tuesday April 02, 2019 @04:00AM (#19551984)
One cool thing you can do with Verilator is use the API to simulate other hardware. For example, here's a Verilog Gameboy being simulated realtime by simulating the display attached to it: https://twitter.com/zephray_wenting/status/11126917323936645...
Re:Verilator: Fast, Free Verilog HDL Simulator by analognoise on Tuesday April 02, 2019 @01:14PM (#19556411)
You can do this with any simulator that has a FFI interface - just use the SystemVerilog DPI.
Re:Verilator: Fast, Free Verilog HDL Simulator by celeritascelery on Tuesday April 02, 2019 @09:48AM (#19553994)
The verilator team also wrote the verilog mode for emacs. Very well done.
Re:Verilator: Fast, Free Verilog HDL Simulator by jdsully on Tuesday April 02, 2019 @12:44PM (#19556080)
I met the author at a conference about 6 months ago. Very nice guy. Verilator is a really good way to test your designs if your building something non trivial.
Re:Verilator: Fast, Free Verilog HDL Simulator by amann11 on Tuesday April 02, 2019 @01:57PM (#19556840)
Does anyone have links to free analog design tools?
Re:Verilator: Fast, Free Verilog HDL Simulator by fest on Tuesday April 02, 2019 @01:59PM (#19556867)
Free as in beer-free or free as in Stallman-free?

Former: LTSpice (also runs under wine).

Latter: ngspice

Re:Verilator: Fast, Free Verilog HDL Simulator by fxfan on Tuesday April 02, 2019 @03:26AM (#19551803)
And how does one get a cheap FPGA board out of it? China? Any recommendations?
Re:Verilator: Fast, Free Verilog HDL Simulator by TD-Linux on Tuesday April 02, 2019 @04:04AM (#19552003)
Verilator is only a simulator, once you want to run it on a fpga you use yosys + nextpnr. The icestick is a popular and cheap choice to get started, there is also the TinyFPGA BX and iCEBreaker if you would like a few more features.