Improve verilator compilation speed
authorDolu1990 <charles.papon.90@gmail.com>
Tue, 30 Jun 2020 08:38:26 +0000 (10:38 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Jun 2020 08:38:26 +0000 (10:38 +0200)
by asking verilator to split the C++ model into multiple files.

litex/build/sim/core/Makefile

index 5615fe3d3a603078e8483e42498cfb29603f0351..f14398248a6ec8bdd18db1bc839e81aab74decc9 100644 (file)
@@ -45,6 +45,9 @@ sim: $(OBJS_SIM) | mkdir
                $(if $(TRACE_FST), --trace-fst,) \
                $(if $(COVERAGE), --coverage,) \
                --unroll-count 256 \
+               --output-split 5000 \
+               --output-split-cfuncs 500 \
+               --output-split-ctrace 500 \
                $(INC_DIR) \
                -Wno-BLKANDNBLK \
                -Wno-WIDTH