2026-05-22 12:31:30 +02:00
|
|
|
include ../../../common.mk
|
2026-05-12 07:33:04 +02:00
|
|
|
|
2024-10-07 10:56:23 +02:00
|
|
|
.PHONY: all dots examples
|
|
|
|
|
all: dots examples
|
2023-11-14 06:54:16 +01:00
|
|
|
dots:
|
2024-10-07 10:56:23 +02:00
|
|
|
examples:
|
2023-11-14 06:54:16 +01:00
|
|
|
|
2024-01-25 00:35:03 +01:00
|
|
|
.PHONY: test
|
2022-11-24 15:56:44 +01:00
|
|
|
test: stubnets.so
|
2026-05-22 12:31:30 +02:00
|
|
|
@$(YOSYS) -ql test1.log -m ./stubnets.so test.v -p "stubnets" >/dev/null 2>&1
|
|
|
|
|
@$(YOSYS) -ql test2.log -m ./stubnets.so test.v -p "opt; stubnets" >/dev/null 2>&1
|
|
|
|
|
@$(YOSYS) -ql test3.log -m ./stubnets.so test.v -p "techmap; opt; stubnets -report_bits" >/dev/null 2>&1
|
|
|
|
|
@tail test1.log test2.log test3.log
|
2022-11-24 15:56:44 +01:00
|
|
|
|
|
|
|
|
stubnets.so: stubnets.cc
|
2026-05-22 12:31:30 +02:00
|
|
|
@$(YOSYS_CONFIG) --exec --cxx --cxxflags --ldflags -o $@ -shared $^ --ldlibs >/dev/null 2>&1
|
2022-11-24 15:56:44 +01:00
|
|
|
|
2024-01-25 00:35:03 +01:00
|
|
|
.PHONY: clean
|
2022-11-24 15:56:44 +01:00
|
|
|
clean:
|
2026-05-22 12:31:30 +02:00
|
|
|
@rm -f test1.log test2.log test3.log
|
|
|
|
|
@rm -f stubnets.so stubnets.d
|