2023-12-17 18:19:01 -06:00
|
|
|
PROGRAM_PREFIX :=
|
|
|
|
|
|
|
|
YOSYS ?= ../../../../$(PROGRAM_PREFIX)yosys
|
|
|
|
|
2023-12-19 19:08:06 -06:00
|
|
|
DOT_NAMES = addr_gen_hier addr_gen_proc addr_gen_clean
|
2024-01-02 16:47:33 -06:00
|
|
|
DOT_NAMES += rdata_proc rdata_flat rdata_adffe rdata_memrdv2 rdata_alumacc rdata_coarse
|
|
|
|
MAPDOT_NAMES = rdata_map_ram rdata_map_ffram rdata_map_gates
|
|
|
|
MAPDOT_NAMES += rdata_map_ffs rdata_map_luts rdata_map_cells
|
2023-12-19 19:08:06 -06:00
|
|
|
|
|
|
|
DOTS := $(addsuffix .dot,$(DOT_NAMES))
|
2024-01-02 16:47:33 -06:00
|
|
|
MAPDOTS := $(addsuffix .dot,$(MAPDOT_NAMES))
|
2023-12-17 18:19:01 -06:00
|
|
|
|
2024-10-07 03:56:23 -05:00
|
|
|
.PHONY: all dots examples
|
|
|
|
all: dots examples
|
2024-01-24 17:35:03 -06:00
|
|
|
dots: $(DOTS) $(MAPDOTS)
|
2024-10-07 03:56:23 -05:00
|
|
|
examples: fifo.out fifo.stat
|
2023-12-17 18:19:01 -06:00
|
|
|
|
|
|
|
$(DOTS) fifo.out: fifo.v fifo.ys
|
2023-12-19 19:08:06 -06:00
|
|
|
$(YOSYS) fifo.ys -l fifo.out -Q -T
|
2023-12-17 18:19:01 -06:00
|
|
|
|
2024-01-24 17:35:03 -06:00
|
|
|
$(MAPDOTS) fifo.stat: fifo.v fifo_map.ys
|
2024-01-02 16:47:33 -06:00
|
|
|
$(YOSYS) fifo_map.ys
|
|
|
|
|
2023-12-17 18:19:01 -06:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f *.dot
|
2024-10-07 04:00:28 -05:00
|
|
|
rm -f fifo.out fifo.stat
|