Hi,
I am generating code coverage for one of the module of my design. I wrote around 50 tetscases to check the code coverage of that module. But the pass/fail status of all test cases are showing as Pass for all the testcases even though there are some failing testcases. I am maintaning a error count in my testbench for each eand every mismatch err_count will be incremented. I am copying the assert part of my testbench here.
//===================TB code =====================//
initial begin
run_my_test();
repeat(100) @(negedge uu_acmac_cap_tb.clk);
//Using assert for coverage report
assert (err_count == 0)
$display($time,“=====TEST %s PASSED=====\n”,test_case_name);
else begin
$display($time," =====TEST %s FAILED with %d errors===\n", test_case_name, err_count);
$error(“======”);
end
end
//===========Simulation log =================//
174004 =====TEST testchain29_ampdu.txt FAILED with 46 errors=====
** Error: ======
in my coverage report it showing as test is passed. I don’t have a functional coverage model here.
Please suggest me how to solve this.
Thanks,
Sreevani Raichur