examples: track hello_uvm Makefile

This commit is contained in:
mjoekhan 2026-07-21 16:25:15 +05:00
parent 4fc765f912
commit 668a16ad12
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# 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)