|
For example,
, m! E3 s4 D" c/ F& n# \% O
2 K: k& Q- {* V$ j% Ralways @(posedge clk)( ?. G K& |1 n( J9 |0 @9 M
begin/ B6 X0 g& v( z" K8 t. ~' i
if(A)( m' p5 D6 c3 s4 l5 B- z+ M; N( L& Z
Q <= #1 D0;) q7 N( m5 K9 T! P P U
else if(B); L, D# d6 c1 c3 f/ H
Q <= #1 D1;8 _2 {5 Q+ o2 x+ \! d) E
end
( D) i/ |* H+ j5 y& @% o, `0 y/ c
//======================================/// v. O, e$ X: k. }2 G6 K+ N
2 A: ?3 m u8 _% Malways @(posedge)$ a$ `. v ]% t* P2 T
Q <= #1 (A)? D0 : (B)? D1 : Q;- U" m s+ x" z2 I6 O+ h
+ U6 z5 s* A; S, N( u) AThe code coverage of second is higher than that of the first.
' O8 L5 t- Q" X IThe code coverage is affected by the coding style.
. x+ Y4 u( h8 C4 O9 ]The more readably code may have a low code coverage.1 L' V: {6 c8 N) j7 o4 K7 i) k* m
! @& L+ B8 s9 h8 E1 |8 O
Sincrely,
3 z) O0 Y, p, zJarod |
評分
-
查看全部評分
|