upsilon/gateware/rtl/waveform/Makefile

23 lines
632 B
Makefile
Raw Normal View History

2024-03-03 17:35:19 -05:00
# Copyright 2024 (C) Peter McGoron
2023-06-15 12:24:35 -04:00
# This file is a part of Upsilon, a free and open source software project.
# For license terms, refer to the files in `doc/copying` in the Upsilon
# source distribution.
2023-01-22 23:43:51 -05:00
# Makefile for tests and hardware verification.
2024-03-03 17:35:19 -05:00
.PHONY: test clean codegen all
2024-03-03 17:35:19 -05:00
CPP_FILE=waveform.cpp
VERILOG=waveform_sim.v waveform.v
2023-01-22 23:43:51 -05:00
2024-03-03 17:35:19 -05:00
test: obj_dir/Vwaveform_sim
obj_dir/Vwaveform_sim
clean:
rm -rf obj_dir
obj_dir/Vwaveform_sim.mk: ${VERILOG} ${CPP_FILE}
2023-01-22 23:43:51 -05:00
verilator --cc --exe -Wall --trace --trace-fst \
2024-03-03 17:35:19 -05:00
${VERILOG} ${CPP_FILE}
2023-01-22 23:43:51 -05:00
2024-03-03 17:35:19 -05:00
obj_dir/Vwaveform_sim: obj_dir/Vwaveform_sim.mk
2023-03-15 02:24:28 -04:00
cd obj_dir && make -f Vwaveform_sim.mk