mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 11:26:22 +00:00
32 lines
818 B
Makefile
32 lines
818 B
Makefile
include ../../../common.mk
|
|
|
|
SUMPROD = sumprod_00 sumprod_01 sumprod_02 sumprod_03 sumprod_04 sumprod_05
|
|
SUMPROD_DOTS := $(addsuffix .dot,$(SUMPROD))
|
|
|
|
MEMDEMO = memdemo_00 memdemo_01
|
|
MEMDEMO_DOTS := $(addsuffix .dot,$(MEMDEMO))
|
|
|
|
SUBMOD = submod_00 submod_01 submod_02 submod_03
|
|
SUBMOD_DOTS := $(addsuffix .dot,$(SUBMOD))
|
|
|
|
.PHONY: all dots examples
|
|
all: dots examples
|
|
dots: select.dot $(SUMPROD_DOTS) $(MEMDEMO_DOTS) $(SUBMOD_DOTS)
|
|
examples: sumprod.out
|
|
|
|
select.dot: select.v select.ys
|
|
@$(YOSYS) select.ys >/dev/null 2>&1
|
|
|
|
$(SUMPROD_DOTS) sumprod.out: sumprod.v sumprod.ys
|
|
@$(YOSYS) sumprod.ys >/dev/null 2>&1
|
|
|
|
$(MEMDEMO_DOTS): memdemo.v memdemo.ys
|
|
@$(YOSYS) memdemo.ys >/dev/null 2>&1
|
|
|
|
$(SUBMOD_DOTS): memdemo.v submod.ys
|
|
@$(YOSYS) submod.ys >/dev/null 2>&1
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@rm -rf *.dot
|
|
@rm -f sumprod.out
|