InterviewSolution
Saved Bookmarks
| 1. |
Is There A Latch In The Following Code? What If The “sel” Value Is “x”. What Will Be The Simulation Result? Always @ ( En ) Begin Dout = 0 Case ( Sel ) 0: Dout = In ; End |
|
Answer» No There is no Latch as dout=0 before the CASE STATEMENT will be executed. Even if the “sel” value is “X”, no latch would be formed as “dout” has been ALREADY initialized to “0”. No There is no Latch as dout=0 before the case statement will be executed. Even if the “sel” value is “X”, no latch would be formed as “dout” has been already initialized to “0”. |
|