Question

Write the verilog code that implements a negitive edge D-Flip Flop with asynchronous active low preset...

Write the verilog code that implements a negitive edge D-Flip Flop with asynchronous active low preset and clear

I have :

module dff( preset, clear, clk, D, Q)

input preset;

input clear;

input clk;

input D;

output Q;

reg Q;

always @ (negedge clk or negedge preset or negedge clear);

if (preset);

Q = 0;

else (clear == 0);

Q = D;

endmodule

I honestly just want to know if i'm doing this right or not, if im not correct, please describe why and how it should be. Thank you

0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
Write the verilog code that implements a negitive edge D-Flip Flop with asynchronous active low preset...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT