docs: add mailbox_sem example Makefile

This commit is contained in:
mjoekhan 2026-07-21 18:37:22 +05:00
parent 7379ff6530
commit eeb13096ef
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# Build/run mailbox + semaphore smoke test against this tree's install.
ROOT ?= $(abspath ../..)
PREFIX ?= $(ROOT)/install
IVERILOG ?= $(PREFIX)/bin/iverilog
VVP ?= $(PREFIX)/bin/vvp
VVP_MOD ?= $(PREFIX)/lib/ivl
OUT := mbx_sem_basic.vvp
.PHONY: all run clean
all: $(OUT)
$(OUT): mbx_sem_basic.sv
$(IVERILOG) -g2012 -o $@ $<
run: $(OUT)
$(VVP) -M $(VVP_MOD) $(OUT)
clean:
rm -f $(OUT)