iverilog/examples/hello_uvm/Makefile

25 lines
548 B
Makefile

# Build/run hello_uvm against the seeded uvm/ (IVL_UVM) library.
# Requires a configured install under ../../install (or IVERILOG/VVP on PATH).
ROOT ?= $(abspath ../..)
IVL_UVM_HOME ?= $(ROOT)/uvm
PREFIX ?= $(ROOT)/install
IVERILOG ?= $(PREFIX)/bin/iverilog
VVP ?= $(PREFIX)/bin/vvp
VVP_MOD ?= $(PREFIX)/lib/ivl
OUT := hello_uvm.vvp
.PHONY: all run clean
all: $(OUT)
$(OUT): hello_uvm.sv flist.f
IVL_UVM_HOME=$(IVL_UVM_HOME) $(IVERILOG) -g2012 -o $@ -c flist.f
run: $(OUT)
$(VVP) -M $(VVP_MOD) $(OUT)
clean:
rm -f $(OUT)