Advertisement
aidanozo

Untitled

Oct 27th, 2024
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module D_flip_flop(output reg Q, input D, clk, rst_n);
  2.  
  3. always @(posedge clk or negedge rst_n) begin
  4.     if(!rst_n)
  5.       Q <= 0;
  6.     else
  7.       Q <= D;
  8. end
  9.  
  10. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement