yosys/docs/source/code_examples/stubnets/Makefile

20 lines
527 B
Makefile
Raw Permalink Normal View History

.PHONY: all dots examples
all: dots examples
dots:
examples:
2024-01-24 17:35:03 -06:00
.PHONY: test
test: stubnets.so
yosys -ql test1.log -m ./stubnets.so test.v -p "stubnets"
yosys -ql test2.log -m ./stubnets.so test.v -p "opt; stubnets"
yosys -ql test3.log -m ./stubnets.so test.v -p "techmap; opt; stubnets -report_bits"
tail test1.log test2.log test3.log
stubnets.so: stubnets.cc
yosys-config --exec --cxx --cxxflags --ldflags -o $@ -shared $^ --ldlibs
2024-01-24 17:35:03 -06:00
.PHONY: clean
clean:
rm -f test1.log test2.log test3.log
rm -f stubnets.so stubnets.d