From 668a16ad125be4c7ee6bef07dadefdda618910a7 Mon Sep 17 00:00:00 2001 From: mjoekhan Date: Tue, 21 Jul 2026 16:25:15 +0500 Subject: [PATCH] examples: track hello_uvm Makefile --- examples/hello_uvm/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/hello_uvm/Makefile diff --git a/examples/hello_uvm/Makefile b/examples/hello_uvm/Makefile new file mode 100644 index 000000000..e9450d29c --- /dev/null +++ b/examples/hello_uvm/Makefile @@ -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)