Hello Dear Readers,
Today first time we will go to the pages part in which I will post differents types of practice questions that are more frequently asked by the interviewer.
Q-1:
See the verilog code I and II and explain what kind of dissimilarity is in between it and which code removes the glitches at the output and why.
Code-I:
module MUX2_1(input a,b,sel, output out);
wire sel_b,a1,b1;
not g1(sel_b,sel);
and g2(a1,a,sel_b);
and g3(b1,b,sel);
or g4(out,a1,b1);
endmodule
Code-II:
module MUX2_1(input a,b,sel, output out);
wire sel_b,a1,b1,ab;
not g1(sel_b,sel);
and g2(a1,a,sel_b);
and g3(b1,b,sel);
and g4(ab,a1,b1);
or g5(out,a1,b1,ab);
endmodule
Write down your answer in the comments and we will discuss it.
Connect with me
Both code are same !!!
ReplyDeleteYes sorry now it has updated and thanks for feedback
DeleteOk sir now second code I think cancel the glitches.
DeleteAnswer of the second question is I think incomplete sensitivity list,case statement if we forgot any conditions etc ...
DeleteFirst code because it is contain last or gate logic so output is avoid static hazards.
ReplyDeleteFirst code is cancelled glitches
ReplyDeleteFirst code avoid glitches
ReplyDeleteSecond code glitches free because of last AND gate logic.
ReplyDeleteFirst code cancel glitches and for second question if we not used all possibility inside case statements.
ReplyDeleteLatches are created during if any case is not declared and not even matches with default stmt
ReplyDeleteYes right answer
Delete