Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
MAKEFLAGS += --silent --no-print-directory
.PHONY: all build clean run wave
HDL = $(shell find hdl -name '*.sv') \
$(shell find ../../dev/hdl -name '*.sv') \
$(shell find ../../hdl -name '*.sv') \
../dev/hdl/raw_block_ram.sv
all: wave
build:
mkdir -p obj_dir
verilator -Wall -Wno-fatal -Werror-PINNOCONNECT -Werror-IMPLICIT -Wno-DECLFILENAME -Wno-VARHIDDEN -Wno-WIDTH -Wno-UNUSED \
--trace --trace-fst --trace-depth 20 --trace-max-array 256 --trace-max-width 128 \
-sv --cc --exe --build \
-I../../hdl/include \
--top-module top \
-j $(shell nproc) bench.cpp $(HDL) -o sim
clean:
rm -rf obj_dir
run: build
./obj_dir/sim
wave: run
gtkwave obj_dir/sim.fst
511328c3aThis file is pinned to the selected release. Download the original to open it in your design tool.