Tuesday, May 15, 2012

Simple D flipflop code in Verilog


Here is the simple D flipflop code in Verilog :







  // D flip-flop Code  2 module d_ff ( d, clk, q, q_bar);
  input d ,clk;
  output q, q_bar;
  wire d ,clk;
  reg q, q_bar;
       
  always @ (posedge clk)
  begin
    q <= d;
    q_bar <=  ! d;
  end 
 endmodule



Verilog is one of the HDL languages available in the industry for hardware designing. It allows us to design a Digital design at Behavior Level, Register Transfer Level (RTL), Gate level and at switch level. Verilog allows hardware designers to express their designs with behavioral constructs, deferring the details of implementation to a later stage in the final design.


Note: Sorry, It is a very old post which was stuck in the draft, I will post more simple code to understand the basics of electronics and language

Ethernet and more

Ethernet is a protocol under IEEE 802.33 standard User Datagram Protocol (UDP) UDP is a connectionless transport protocol. I...