Question

In the lecture we demonstrated how an active low, synchronous clear feature can be synthesized into...

In the lecture we demonstrated how an active low, synchronous clear feature can be synthesized into a D flip-flop. For this task, please synthesize a D flip-flop that has an active low, synchronous preset feature added to it. Label the preset input signal as “preset_n”.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The truth table of the D flip flop is

CLK D   Qn+1
0 0 Qn
0 1 Qn
1 0 0
1 1 1

for a high clock 1 Qn+1= D

The preset signal will force Qn+1 to 1 irrespective of clock and D.

Qn Preset_n(bar) Qn+1 Qn+1(bar)
0 0 1 0
0 1 0 1
1 0 1 0
1 1 1 0

Verilog code for the synthesis of D flip flop with Preset_n.

module dff_syspr (D, clk, preset_n, q);

input D, clk, preset_n;

output q;

reg q;

always @ (posedge clk)

if (~preset_n)

q = 1'b1;

else

q = data;

endmodule

Add a comment
Know the answer?
Add Answer to:
In the lecture we demonstrated how an active low, synchronous clear feature can be synthesized into...
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. Our experts will answer your question WITHIN MINUTES for Free.
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