|
For example,. w, Q; Q; V z1 v. B
& i6 H7 ?& s' ? n: Walways @(posedge clk)
6 e, W) D5 m0 o- s; r% I0 B- Sbegin
" e5 S$ R3 x0 f if(A)
8 e9 {1 }3 [9 n: d/ }% O! b$ T Q <= #1 D0;, L' O1 f: {) Z
else if(B)9 W! F& _; W$ I7 d" t; }
Q <= #1 D1;3 Y/ O$ z0 ?+ }! J
end
( ]1 J, d6 P- j6 n) ]$ b
0 B9 g/ A$ W) L: h% Y: ^% C//======================================//# ^+ r/ L* m/ B3 s
2 t, ~# o3 s, n2 [* ~$ e2 Walways @(posedge)
* Q c& {5 e0 C' M5 s" K. E U Q <= #1 (A)? D0 : (B)? D1 : Q;
/ l# b' [# j, B$ D( e9 ~% d; c0 ~- F. ^
The code coverage of second is higher than that of the first.
6 g9 M9 k+ b# X& x; tThe code coverage is affected by the coding style.
6 W3 W: j, R. K* b# V4 `The more readably code may have a low code coverage.
) g2 h/ v) E9 J) u1 @8 l( i8 R; {0 R" ^ U3 ~
Sincrely,
: v: t3 J4 o4 u% y6 [7 s2 l7 W& E6 i: JJarod |
評分
-
查看全部評分
|