|
For example,' R# g& D5 z7 h/ ^4 E( |
6 `& g+ h" M' g$ ]9 }2 aalways @(posedge clk)% l7 z$ B( E: N( Y% w/ n$ d
begin; J% p4 y% {0 ^
if(A)
% U, g, \- B; b$ R) Z Q <= #1 D0;
0 n7 y5 c3 I' l, F8 R! v2 p else if(B)# d1 k/ m, O4 x r- r
Q <= #1 D1;
; B8 n3 e! F3 Uend
$ a( j$ l V. m! H7 o4 n0 O0 w
, |7 f* \; f' e7 _//======================================//
1 v* g) p- M+ w8 M9 k+ H4 G6 K% G
always @(posedge)* f! l1 Y( ]4 u
Q <= #1 (A)? D0 : (B)? D1 : Q;: Q/ J2 `% a* V" D! d# m+ N
$ n" n* s4 m& Y1 S* ]7 JThe code coverage of second is higher than that of the first.$ P% E7 O4 |9 p$ v! }$ e
The code coverage is affected by the coding style.$ M! H0 e8 y, T1 L3 O2 b
The more readably code may have a low code coverage.4 O+ k( b! u+ y( P( c. R
0 z& L2 D( H% y: ^# r7 m1 ^
Sincrely,
4 P3 l+ O% j c( W) k( BJarod |
評分
-
查看全部評分
|