Q1. Find the gray code for binary number
0100.
- 0110
- XNOR gate is used for equality check.
- Number of flip flop required is 5.
Q5. Which logic has lowest power dissipation?
- CMOS
- Complemented output of the circuit is AND gate.
·
module
mux(Y,In,S);
input [7:0]In;
input[2:0]S;
output reg Y;
always @(*)
begin
case(S)
3'b000 : Y
=In[0];
3'b001 : Y =In[1];
3'b010 : Y =In[2];
3'b011 : Y
=In[3];
3'b100 : Y
=In[4];
3'b101 : Y
=In[5];
3'b110 : Y
=In[6];
3'b111 :
Y=In[7];
endcase
end
endmodule
Q8. If a number is shifted right then it will be
A)
Multiplied
by 2
B)Divided
by 2
C)XOR
with 2
D)None
- Answer is B.
- 80ns
assign
a==1;
assign
a==0;
initial
begin
b<=1;
b<=0;
end
- Output of a is syntax error,we can not use == in assign statement.
- Output of b is 0 because it is non-blocking assignment in non-blocking assignment last updated value will be the output.
Q13. The present
output Qn of an edge triggered JK flip-flop is logic 0. If J=1, then Qn+1.
- · Will be logic 1.
Q15. For a binary half-subtractor having
two inputs A and B, the correct set of Logical expressions for the output D =A-
B and X=Borrow are.
- D = A’B + AB’ , X = A’B
- perl filename.pl
- D flip flop
Q19. Write a Verilog code for synchronous and asynchronous reset?
Q20. Difference between $monitor, $display and
$strobe
Sir I guess in the first q, ans shld be 0110 not 0111. please check
ReplyDeleteDone Thanks for correction!!
Delete