📌 Introduction

alt text

🧑‍💻 Code Example

module top_module ( input clk, input d, output q );
    wire q1_out;
    wire q2_out;
    my_dff dff1(.clk(clk), .d(d), .q(q1_out));
    my_dff dff2(.clk(clk), .d(q1_out), .q(q2_out));
    my_dff dff3(.clk(clk), .d(q2_out), .q(q));
endmodule

📚 Reference

HDLBits Problem - Module shift