mirror of https://github.com/YosysHQ/yosys.git
Add "make coverage"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
9e845bd254
commit
ddc1761f1a
|
@ -2,6 +2,8 @@
|
||||||
*.d
|
*.d
|
||||||
.*.swp
|
.*.swp
|
||||||
*.gch
|
*.gch
|
||||||
|
*.gcda
|
||||||
|
*.gcno
|
||||||
/.cproject
|
/.cproject
|
||||||
/.project
|
/.project
|
||||||
/.settings
|
/.settings
|
||||||
|
@ -10,6 +12,8 @@
|
||||||
/qtcreator.config
|
/qtcreator.config
|
||||||
/qtcreator.creator
|
/qtcreator.creator
|
||||||
/qtcreator.creator.user
|
/qtcreator.creator.user
|
||||||
|
/coverage.info
|
||||||
|
/coverage_html
|
||||||
/Makefile.conf
|
/Makefile.conf
|
||||||
/abc
|
/abc
|
||||||
/viz.js
|
/viz.js
|
||||||
|
|
8
Makefile
8
Makefile
|
@ -650,6 +650,12 @@ clean-abc:
|
||||||
mrproper: clean
|
mrproper: clean
|
||||||
git clean -xdf
|
git clean -xdf
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
./yosys -qp 'help; help -all'
|
||||||
|
rm -rf coverage.info coverage_html
|
||||||
|
lcov --capture -d . --no-external -o coverage.info
|
||||||
|
genhtml coverage.info --output-directory coverage_html
|
||||||
|
|
||||||
qtcreator:
|
qtcreator:
|
||||||
{ for file in $(basename $(OBJS)); do \
|
{ for file in $(basename $(OBJS)); do \
|
||||||
for prefix in cc y l; do if [ -f $${file}.$${prefix} ]; then echo $$file.$${prefix}; fi; done \
|
for prefix in cc y l; do if [ -f $${file}.$${prefix} ]; then echo $$file.$${prefix}; fi; done \
|
||||||
|
@ -740,6 +746,6 @@ echo-git-rev:
|
||||||
-include kernel/*.d
|
-include kernel/*.d
|
||||||
-include techlibs/*/*.d
|
-include techlibs/*/*.d
|
||||||
|
|
||||||
.PHONY: all top-all abc test install install-abc manual clean mrproper qtcreator
|
.PHONY: all top-all abc test install install-abc manual clean mrproper qtcreator coverage vcxsrc mxebin
|
||||||
.PHONY: config-clean config-clang config-gcc config-gcc-static config-gcc-4.8 config-gprof config-sudo
|
.PHONY: config-clean config-clang config-gcc config-gcc-static config-gcc-4.8 config-gprof config-sudo
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ilang_lexer.cc
|
ilang_lexer.cc
|
||||||
ilang_parser.output
|
ilang_parser.output
|
||||||
ilang_parser.tab.cc
|
ilang_parser.tab.cc
|
||||||
ilang_parser.tab.h
|
ilang_parser.tab.hh
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
|
|
||||||
GENFILES += frontends/ilang/ilang_parser.tab.cc
|
GENFILES += frontends/ilang/ilang_parser.tab.cc
|
||||||
GENFILES += frontends/ilang/ilang_parser.tab.h
|
GENFILES += frontends/ilang/ilang_parser.tab.hh
|
||||||
GENFILES += frontends/ilang/ilang_parser.output
|
GENFILES += frontends/ilang/ilang_parser.output
|
||||||
GENFILES += frontends/ilang/ilang_lexer.cc
|
GENFILES += frontends/ilang/ilang_lexer.cc
|
||||||
|
|
||||||
frontends/ilang/ilang_parser.tab.cc: frontends/ilang/ilang_parser.y
|
frontends/ilang/ilang_parser.tab.cc: frontends/ilang/ilang_parser.y
|
||||||
$(Q) mkdir -p $(dir $@)
|
$(Q) mkdir -p $(dir $@)
|
||||||
$(P) $(BISON) -d -r all -b frontends/ilang/ilang_parser $<
|
$(P) $(BISON) -o $@ -d -r all -b frontends/ilang/ilang_parser $<
|
||||||
$(Q) mv frontends/ilang/ilang_parser.tab.c frontends/ilang/ilang_parser.tab.cc
|
|
||||||
|
|
||||||
frontends/ilang/ilang_parser.tab.h: frontends/ilang/ilang_parser.tab.cc
|
frontends/ilang/ilang_parser.tab.hh: frontends/ilang/ilang_parser.tab.cc
|
||||||
|
|
||||||
frontends/ilang/ilang_lexer.cc: frontends/ilang/ilang_lexer.l
|
frontends/ilang/ilang_lexer.cc: frontends/ilang/ilang_lexer.l
|
||||||
$(Q) mkdir -p $(dir $@)
|
$(Q) mkdir -p $(dir $@)
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "frontends/ilang/ilang_frontend.h"
|
#include "frontends/ilang/ilang_frontend.h"
|
||||||
#include "ilang_parser.tab.h"
|
#include "ilang_parser.tab.hh"
|
||||||
|
|
||||||
USING_YOSYS_NAMESPACE
|
USING_YOSYS_NAMESPACE
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
verilog_lexer.cc
|
verilog_lexer.cc
|
||||||
verilog_parser.output
|
verilog_parser.output
|
||||||
verilog_parser.tab.cc
|
verilog_parser.tab.cc
|
||||||
verilog_parser.tab.h
|
verilog_parser.tab.hh
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
|
|
||||||
GENFILES += frontends/verilog/verilog_parser.tab.cc
|
GENFILES += frontends/verilog/verilog_parser.tab.cc
|
||||||
GENFILES += frontends/verilog/verilog_parser.tab.h
|
GENFILES += frontends/verilog/verilog_parser.tab.hh
|
||||||
GENFILES += frontends/verilog/verilog_parser.output
|
GENFILES += frontends/verilog/verilog_parser.output
|
||||||
GENFILES += frontends/verilog/verilog_lexer.cc
|
GENFILES += frontends/verilog/verilog_lexer.cc
|
||||||
|
|
||||||
frontends/verilog/verilog_parser.tab.cc: frontends/verilog/verilog_parser.y
|
frontends/verilog/verilog_parser.tab.cc: frontends/verilog/verilog_parser.y
|
||||||
$(Q) mkdir -p $(dir $@)
|
$(Q) mkdir -p $(dir $@)
|
||||||
$(P) $(BISON) -d -r all -b frontends/verilog/verilog_parser $<
|
$(P) $(BISON) -o $@ -d -r all -b frontends/verilog/verilog_parser $<
|
||||||
$(Q) mv frontends/verilog/verilog_parser.tab.c frontends/verilog/verilog_parser.tab.cc
|
|
||||||
|
|
||||||
frontends/verilog/verilog_parser.tab.h: frontends/verilog/verilog_parser.tab.cc
|
frontends/verilog/verilog_parser.tab.hh: frontends/verilog/verilog_parser.tab.cc
|
||||||
|
|
||||||
frontends/verilog/verilog_lexer.cc: frontends/verilog/verilog_lexer.l
|
frontends/verilog/verilog_lexer.cc: frontends/verilog/verilog_lexer.l
|
||||||
$(Q) mkdir -p $(dir $@)
|
$(Q) mkdir -p $(dir $@)
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
#include "kernel/log.h"
|
#include "kernel/log.h"
|
||||||
#include "frontends/verilog/verilog_frontend.h"
|
#include "frontends/verilog/verilog_frontend.h"
|
||||||
#include "frontends/ast/ast.h"
|
#include "frontends/ast/ast.h"
|
||||||
#include "verilog_parser.tab.h"
|
#include "verilog_parser.tab.hh"
|
||||||
|
|
||||||
USING_YOSYS_NAMESPACE
|
USING_YOSYS_NAMESPACE
|
||||||
using namespace AST;
|
using namespace AST;
|
||||||
|
|
Loading…
Reference in New Issue