|
For example,$ x9 }* n! ^ Z+ a
- O. q+ e, x& {3 v/ e8 t' ealways @(posedge clk)+ P& U8 c2 ], m. |: P
begin
& ?' b4 u* f1 J; h" G9 y if(A)# W: m* p k) ~. B+ S5 Z
Q <= #1 D0;. a/ X; ]) C W- `+ E1 b
else if(B)5 W' S r6 z) m% Y, N4 L
Q <= #1 D1;9 G; C% L1 ]/ s4 i( L; x
end9 e: Z1 i* [3 R1 }
. @2 n; C8 u0 F- T$ o//======================================//% \6 p0 K1 ^7 W/ x' O
( B( t3 E- \4 ^! O# d9 S( F
always @(posedge)
* |2 y7 _. s+ ~* } Q <= #1 (A)? D0 : (B)? D1 : Q;
2 G3 T7 k2 p$ g1 x4 z/ e% F- [9 I9 S4 G& i$ r7 Q
The code coverage of second is higher than that of the first.
; g Q$ e0 q) m8 `: jThe code coverage is affected by the coding style.0 F, n" }6 G! e3 _1 F
The more readably code may have a low code coverage.% ]5 b. ~* u# D6 d% |0 u# U
, F6 [& f2 Y' k* i0 ~1 h/ ^9 a
Sincrely,
6 }7 M, T! R s2 IJarod |
評分
-
查看全部評分
|