yosys/docs/source/code_examples/show/Makefile

31 lines
649 B
Makefile
Raw Normal View History

PROGRAM_PREFIX :=
YOSYS ?= ../../../../$(PROGRAM_PREFIX)yosys
EXAMPLE = example_first example_second example_third
EXAMPLE_DOTS := $(addsuffix .dot,$(EXAMPLE))
CMOS = cmos_00 cmos_01
CMOS_DOTS := $(addsuffix .dot,$(CMOS))
.PHONY: all dots examples
all: dots examples
2024-01-24 17:35:03 -06:00
dots: splice.dot $(EXAMPLE_DOTS) $(CMOS_DOTS)
examples: example.out
splice.dot: splice.v
$(YOSYS) -p 'prep -top splice_demo; show -format dot -prefix splice' splice.v
$(EXAMPLE_DOTS): example.v example.ys
$(YOSYS) example.ys
example.out: example_lscd.ys example.v
$(YOSYS) $< -l $@ -Q -T
$(CMOS_DOTS): cmos.v cmos.ys
$(YOSYS) cmos.ys
.PHONY: clean
clean:
rm -rf *.dot