Question

The following Verilog module implements module xyz(In,C,Out); input In,C; output Out; wire x,y,In1,Out1; nand n1 (x,In,...

The following Verilog module implements

module xyz(In,C,Out);

input In,C;

output Out;

wire x,y,In1,Out1;

nand n1 (x,In, C),

n2 (y,In1,C),

n3 (Out,x,Out1),

n4 (Out1,y,Out);

not nt (In1,In);

endmodule

a 2x1 multiplexor

b D latch

c D flip-flop

d RS flip-flop

e JK flip-flop

Homework Answers

Answer #1

The following verilog module implements a D flip flop which needs four NAND Gates and one NOT gate for construction

module xyz(In,C,Out);

input In,C;

output Out;

wire x,y,In1,Out1;

nand n1 (x,In, C),

n2 (y,In1,C),

n3 (Out,x,Out1),

n4 (Out1,y,Out);

not nt (In1,In);

endmodule

A JK flip flop needs only four NAND Gates it doesn't require a NOT gate

RS FLIP Flop also needs four NAND gates

D latch uses two additional gates in front of the basic NAND-type RS-FLIP FLOP

A 2x1 mux doesn't require any not gate for it's construction

Hence option c) D flip-flop is the right answer

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT