|
For example,0 N4 Q3 `9 U) U7 c, B ^
/ [/ z6 O, ^& ~( T- q5 z/ X8 @, b& v
always @(posedge clk)3 q9 C5 {0 T5 ~2 ]. C
begin2 V% h$ }- e! C: ]
if(A), L9 j% Z2 p2 L, u& V
Q <= #1 D0;
' J4 c4 E; `; m3 r4 O4 V else if(B)( W9 P M* v1 G& m X
Q <= #1 D1;
( M }! _( V* C, s: S& kend
5 I' i: W# |( h, L! I( w3 F$ K% y. ^8 A3 N2 }: N6 p
//======================================//3 E% j+ E& a7 W
6 B. V1 ^3 ?+ ~# f2 I! malways @(posedge)
* H! q: c7 P1 { Q <= #1 (A)? D0 : (B)? D1 : Q;! O- e! |0 N6 [9 E
$ t+ l+ s! c% G+ g* t | r0 ]
The code coverage of second is higher than that of the first.+ K; @! p& ~& ]8 n9 H9 ~& _
The code coverage is affected by the coding style.4 u2 g: M. U t" Y6 `5 A, h: Q
The more readably code may have a low code coverage.- F) M/ O% D j& L3 M
: f$ j y9 U+ Z% U% I" mSincrely,6 I/ @' y% B9 l' a
Jarod |
評分
-
查看全部評分
|