edaplayground / eda-playground

EDA Playground -- The FREE IDE for SystemVerilog, Verilog, and VHDL
http://www.edaplayground.com
54 stars 17 forks source link

Add support for Verilator #76

Open wsnyder opened 2 years ago

wsnyder commented 2 years ago

Can you please consider adding Verilator 5.002 as an open source simulator option to EDA Playground?

It's understandable why Verilator was not previously available, as previous versions required a C++ top main(), and did not support # delays, both of which which would have confused playground users.

With Verilator Version 5 (5.002 is first stable release), Verilator removes these restrictions, and generally supports more of SystemVerilog than that offered by the other open source options on the playground. Granted, it doesn't yet offer UVM, but this is being worked on.

In addition Verilator has many lint checks, and the other playground options do not appear to have lint capabilities.

I would suggest the default flags include "--binary --Wall -Wno-error".