을 사용하는 GHDL + 코드 범위이 page (2005 년 Arnim Läuger 출신)은 도구 체인 {GHDL + gcov}이 VHDL 코드 적용을 수행 할 수 있다고 설명합니다.gcov (Ubuntu 16.04 LTS)
질문 : GCC, GCOV 및 GHDL의 최신 버전에서는 여전히 작동합니까?는
다음 명령은
$ ghdl -a -Wc,-ftest-coverage -Wc,-fprofile-arcs tb_example.vhd
ghdl: unknown option '-Wc,-ftest-coverage' for command '-a'
내 설정은 다음과 같다 실패
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gnat/bin/../libexec/gcc/x86_64-pc-linux-gnu/4.9.4/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../src/configure --enable-languages=ada,c,c++ --enable-dual-exceptions --enable-_cxa_atexit --enable-threads=posix --with-bugurl=URL:mailto:[email protected] --disable-nls --without-libiconv-prefix --disable-libstdcxx-pch --disable-libada --enable-checking=release --disable-multilib --with-mpfr=/boron.a/gnatmail/sandbox/gpl-2016/x86_64-linux/mpfr_stable/install --with-gmp=/boron.a/gnatmail/sandbox/gpl-2016/x86_64-linux/gmp_stable/install --with-mpc=/boron.a/gnatmail/sandbox/gpl-2016/x86_64-linux/mpc_stable/install --with-build-time-tools=/boron.a/gnatmail/sandbox/gpl-2016/x86_64-linux/gcc/build/buildtools/bin --prefix=/boron.a/gnatmail/sandbox/gpl-2016/x86_64-linux/gcc/pkg --build=x86_64-pc-linux-gnu
Thread model: posix
gcc version 4.9.4 20160426 (for GNAT GPL 2016 20160515) (GCC)
$ gcov -v
gcov (GCC) 4.9.4 20160426 (for GNAT GPL 2016 20160515)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
$ ghdl -v
GHDL 0.34dev (20151126) [Dunoon edition]
Compiled with GNAT Version: GPL 2016 (20160515-49)
mcode code generator
Written by Tristan Gingold.
Copyright (C) 2003 - 2015 Tristan Gingold.
GHDL is free software, covered by the GNU General Public License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cat /proc/version
Linux version 4.4.0-34-generic ([email protected]) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1)) #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016
내가 mCode를 백엔드 절차와
건물을 사용 GHDL를 설치했습니다. 그것은 악의 뿌리일까요? 도움 주셔서 감사합니다.
답변 해 주셔서 감사합니다. 매우 도움이됩니다. 나는 시도 할 것이고, 나는 여기에서 피드백을 줄 것이다. –
GCC를 백엔드로 재구성 한 결과 이제는 훌륭하게 작동합니다. 고마워. 케이크에있는 체리는 VUnit이 생성 한 XML에서 커버리지 결과를 직접 포함한다는 것입니다. VUnit xml에 손쉽게 적용 범위를 포함시킬 수 있습니까? (현재는 .gcda +가 있습니다.gcno는 VUnit 실행에 의해 생성되지만 끝에 gcov bymyself를 실행해야합니다. 결과는 xml에 없습니다. –
실험용 VUnit 지원 범위는 다른 시뮬레이터를 지원하기 위해 시작되었지만 ModelSim에만 해당됩니다. – lasplund