M
Mr. Ken
Guest
One segment of my code checks the range of a variable, for example,
//// pragma coverage off
case (selection)
5'h11:
a <= (b[11] == 1'b1) ? b[10:0] : 11'h3FF;
5'h12:
a <= (b[12] == 1'b1) ? b[11:1] : 11'h3FF;
....
//// pragma coverage on
During simulation none of the 3'h3FF has been reached. As a result, this set
of
conditional checking statement pulls down system coverage from 96% to 90%.
By masking the block with pragma coverage off, i lose coverage for the case
statement itself.
Are there any alternative?
//// pragma coverage off
case (selection)
5'h11:
a <= (b[11] == 1'b1) ? b[10:0] : 11'h3FF;
5'h12:
a <= (b[12] == 1'b1) ? b[11:1] : 11'h3FF;
....
//// pragma coverage on
During simulation none of the 3'h3FF has been reached. As a result, this set
of
conditional checking statement pulls down system coverage from 96% to 90%.
By masking the block with pragma coverage off, i lose coverage for the case
statement itself.
Are there any alternative?