[DV]Add Makefile target for functional coverage (#358)

This commit is contained in:
taoliug 2019-09-30 10:24:44 -07:00 committed by GitHub
parent 4c0ac554a6
commit b03ae4e2a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,6 +137,12 @@ post_compare:
--simulator=${SIMULATOR} \
--iss=${ISS}
# Generate functional coverage
fcov:
cd ${GEN_DIR}; \
python3 ./cov.py --dir ${OUT}/instr_gen/spike_sim -o ${OUT}/fcov
# Load verdi to review coverage
cov:
cd ${OUT}/rtl_sim; verdi -cov -covdir test.vdb &