Add old (without --timing) verilator test

This commit is contained in:
Nikolay Puzanov
2024-10-02 17:25:04 +03:00
parent 8b8f63105c
commit c277e3482a
17 changed files with 70 additions and 28 deletions

19
test-verilator4/Makefile Normal file
View File

@@ -0,0 +1,19 @@
TOP_MODULE = testbench
SOURCES = top.cpp clock_generator.cpp
FLAGS_FILE = ../source/sources.f
INCLUDES =
PARAMS :=
THREADS := 1
FLAGS = -Wno-WIDTH -cc --top-module $(TOP_MODULE) +1800-2017ext+sv \
--Mdir $(TOP_MODULE) -o $(TOP_MODULE) -f $(FLAGS_FILE) \
$(PARAMS) --timescale "1ps/1ps" --threads $(THREADS) -j 16
# FLAGS += --trace
all: $(SOURCES)
verilator $(FLAGS) --exe --build $(INCLUDES) $(SOURCES)
clean:
rm -rf $(TOP_MODULE)