Verilog HDL Program for D Flip Flop

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

A flip-flop or latch is a circuit that has two stable states and can be used to store state information. The circuit can be made to change state by signals applied to one or more control inputs and will have one or two outputs. It is the basic storage element in sequential logic. Flip-flops and latches are a fundamental building block of digital electronics systems used in computers, communications, and many other types of systems.

he D flip-flop captures the value of the D-input at a definite portion of the clock cycle (such as the rising edge of the clock). That captured value becomes the Q output. At other times, the output Q does not change. The D flip-flop can be viewed as a memory cell, a zero-order hold, or a delay line.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
module d(q,q1,d,c);
output q,q1;
 input d,c;
 reg q,q1;
	initial 
	   begin
		   q=1'b0; q1=1'b1;
	  end
	always @ (posedge c)
	   begin 
		 q=d;
		 q1= ~d;
	   end
endmodule
Simulated waveform for D Flip Flop
Simulated waveform for D Flip Flop

Share on FacebookTweet about this on TwitterDigg thisPin on PinterestShare on LinkedInShare on StumbleUponShare on TumblrShare on Google+Email this to someone

4 Responses to “Verilog HDL Program for D Flip Flop”

  1. Hah, girl-speek … God knows how many times I walked into that trap! Good news is, after a colupe of arguments about that, you, the guy, should learn about that kind of stuff. Sweet photo, BTW! And yes, nice pedi!

    Reply
  2. Really no matter if someone doesn’t knhow then its up to ther viewers that they will help, so here it occurs.

    Reply
  3. Have yoou ever considered creating an ebook oor guest authoring on other blogs?
    I have a blog based uppn on the same subjects
    you discuss and would really like to have yoou
    share some stories/information. I know my
    subscribers would enjoy your work. If you’re even remotely interested, feel free to send me an e mail.

    Reply
  4. I’m really loving the theme/design of your website.
    Do you ever run into any internet browser cpmpatibility issues?
    A small number of my blog readers have complained abolut
    my site not working correctly inn Explorer but looks ggreat
    in Firefox. Do you have any advice to help fix this issue?

    Reply

Leave a Reply