From b455a816781d05bd4779fba57df0d7e444aeadc2 Mon Sep 17 00:00:00 2001 From: Dolu1990 Date: Tue, 30 Jun 2020 10:38:26 +0200 Subject: [PATCH] Improve verilator compilation speed by asking verilator to split the C++ model into multiple files. --- litex/build/sim/core/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/build/sim/core/Makefile b/litex/build/sim/core/Makefile index 5615fe3d..f1439824 100644 --- a/litex/build/sim/core/Makefile +++ b/litex/build/sim/core/Makefile @@ -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 -- 2.30.2