D flip flop Verilog code with testbench

Fully tested code in Xilinx Isim and Modelsim simulators

d flip flop simulation

D flip flop verilog code is written along with the required testbench code. The codes are written and simulated in Xilinx ISE design suite. And then the same D flip flop verilog code was tested in Modelsim simulator to verify the code.

Verilog D Flip flop Code

Below is the verilog code for D flip flip.

Testbench Code

The testbench code for the above D flip flop code:

Simulation

The simulation waveform is shown below.

D flip flop Verilog code
Fig: d flip flop simulation in Xilinx Isim

The same above code was tested in Modelsim. Below is the simulation waveform.

modelsim d flip flop testing

What do you think?

0 points
Upvote Downvote

Total votes: 0

Upvotes: 0

Upvotes percentage: 0.000000%

Downvotes: 0

Downvotes percentage: 0.000000%

Leave a Reply

Your email address will not be published. Required fields are marked *

Testing Arduino circuit and program using Proteus

Testing Arduino circuit and program using Proteus

difference between Verilog and VHDL code for D flip flop