Build top module as 'dut' in Verilator and set it as top-level.
authorSergiusz Bazanski <q3k@q3k.org>
Tue, 23 Jan 2018 01:15:28 +0000 (01:15 +0000)
committerSergiusz Bazanski <q3k@q3k.org>
Tue, 23 Jan 2018 01:15:28 +0000 (01:15 +0000)
commitef6c517daddf5700b9e35db5664134e39733e615
tree2d65cf070f1f20dfcfa7ed6ca3504ed7e40eae9b
parent21bd26dcdd68285bfbf9d78618002c674c56f734
Build top module as 'dut' in Verilator and set it as top-level.

When building a design with PicoRV32 we end up with multiple top-level
modules and Verilator becomes confused as to which is the right one.
This change ensures the dut.v generated by the sim build process has
it's top-level name set to 'dut' and that verilator is invoked with this
name.
litex/build/sim/core/Makefile
litex/build/sim/verilator.py