Skip to content

Groupsun/Verilator_Simple_Usage

Repository files navigation

Verilator Simple Usage

Use Decoder.v as an example. Use File I/O to get input data.

Generate executable file

$ verilator --cc Decoder.v --exe Decoder_Sim.cpp --trace
$ make -j -C ./obj_dir -f VDecoder.mk VDecoder

Generate .vcd file

$ ./obj_dir/VDecoder

Use gtkwave to view the wave.