diff --git a/.travis.yml b/.travis.yml index 28e03a88..0ab1c95d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,6 +46,9 @@ branches: - boom - /^hurricane.*$/ +install: + - make tools verilator -C regression SUITE=none + before_install: - export CXX=g++-4.8 CC=gcc-4.8 diff --git a/emulator/Makefrag-verilator b/emulator/Makefrag-verilator index 3f1fc17a..ea7c7e7d 100644 --- a/emulator/Makefrag-verilator +++ b/emulator/Makefrag-verilator @@ -46,6 +46,8 @@ verilator/verilator-$(VERILATOR_VERSION).tar.gz: mkdir -p $(dir $@) wget http://www.veripool.org/ftp/verilator-$(VERILATOR_VERSION).tgz -O $@ +verilator: $(INSTALLED_VERILATOR) + # Run Verilator to produce a fast binary to emulate this circuit. VERILATOR := $(INSTALLED_VERILATOR) --cc --exe VERILATOR_FLAGS := --top-module $(MODEL) \ diff --git a/regression/Makefile b/regression/Makefile index ec0619f8..a6322da2 100644 --- a/regression/Makefile +++ b/regression/Makefile @@ -78,6 +78,8 @@ endif # commandline a bit cleaner. submodules: stamps/other-submodules.stamp tools: $(RISCV)/install.stamp +verilator: + $(MAKE) RISCV=$(RISCV) -C $(abspath $(TOP)/emulator) verilator EMU_DEBUG_STAMPS=$(foreach config,$(CONFIGS),stamps/$(config)/emulator-debug.stamp) EMU_NDEBUG_STAMPS=$(foreach config,$(CONFIGS),stamps/$(config)/emulator-ndebug.stamp)