D Flip-Flop Implementation Without Reset: Verilog Code and Simulation
Advertisement
This page details a D flip-flop implementation without a reset function, including its symbol, Verilog code, test bench, simulation results, and RTL schematic.
Symbol

Verilog Code
Here’s the Verilog code for a D flip-flop without a reset:
module d_flip_flop(data_in, data_out, clock);
input data_in;
input clock;
output reg data_out;
always @(posedge clock)
begin
data_out <= data_in;
end
endmodule
## Test Bench
This test bench is used to verify the functionality of the D flip-flop.
```verilog
module Tb_d_flip_flop();
reg data_in;
reg clock;
wire data_out;
d_flip_flop UUT(.data_in(data_in), .data_out(data_out), .clock(clock));
initial begin
// Initialize Input Stimulus
data_in = 0;
clock = 0;
end
always #100 clock = ~clock; //Stimulus
initial begin
#100 data_in = 1'b0;
#100 data_in = 1'b1;
#600 data_in = 1'b0;
#500 data_in = 1'b1;
#200 data_in = 1'b0;
#100 $stop;
end
endmodule
Simulation
The simulation results demonstrate the D flip-flop’s behavior over time. The output data_out follows the input data_in on the rising edge of the clock signal.

RTL Schematic
This is the Register-Transfer Level (RTL) schematic for the D flip-flop. It visually represents the design’s structure and connections.

Explore Verilog Logic Gates, Mux & Encoders
- Verilog HDL Code for All Logic Gates
- 2-to-4 Decoder (Verilog HDL Code)
- 4-to-1 Multiplexer and 1-to-4 Demultiplexer (Verilog Code)
- Verilog Code: 1-to-4 Demultiplexer
- 8-to-1 Multiplexer (Verilog HDL Code)
- 8-to-3 Encoder Without Priority (Verilog)
- 8-to-3 Priority Encoder (Verilog)
- 8-to-3 Priority Encoder (Verilog Code)
- 1-Bit and 4-Bit Comparator Design (Verilog)
Explore Verilog Flip-Flops, Counters & Registers
- T, D, SR, JK Flip Flop (Verilog HDL Code)
- D Flip Flop Synchronous Reset (Verilog)
- D Flip Flop Without Reset (Verilog)
- Verilog Code for Binary Up-Down Counter
- Verilog HDL: BCD & Gray Counters
- 4-bit Down Counter (Verilog Code Test Bench)
- 4-bit Binary Asynchronous Reset Counter (Verilog)
- 4-bit Binary Synchronous Reset Counter (Verilog)
- 4-bit BCD Asynchronous Reset Counter (Verilog)
- 4-bit BCD Synchronous Reset Counter (Verilog Code)
- 4-bit Mod-13 Counter (Verilog Code Test Bench)
- Shift Left / Shift Right Register (Verilog)
- Parallel Load Shift Left Register (Verilog Code)
- PRBS Generator (Verilog Code Test Bench)
Explore Verilog Math, Processing & Memory
- Full Adder (Verilog HDL Code)
- Verilog Code: Half Adder, Half Subtractor, Full Subtractor
- 32-Bit ALU (Verilog Code)
- RAM / ROM (Verilog Code)
- Asynchronous FIFO (Verilog Code Test Bench)
- Asynchronous FIFO Design (Verilog Code and Explanation)
- Mealy / Moore Machine (Verilog)
- Low Pass FIR Filter (Verilog Code)
- 4-bit Binary to Gray Counter Converter in Verilog
