2013-07-20 08:19:12 -05:00
|
|
|
test: stubnets.so
|
2013-08-06 19:19:35 -05:00
|
|
|
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"
|
2013-07-20 08:19:12 -05:00
|
|
|
tail test1.log test2.log test3.log
|
|
|
|
|
|
|
|
stubnets.so: stubnets.cc
|
2013-08-06 19:19:35 -05:00
|
|
|
$(shell yosys-config --cxx --cxxflags --ldflags -o stubnets.so \
|
|
|
|
-shared stubnets.cc --ldlibs )
|
2013-07-20 08:19:12 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f test1.log test2.log test3.log
|
|
|
|
rm -f stubnets.so stubnets.d
|