Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module D_flip_flop(output reg Q, input D, clk, rst_n);
- always @(posedge clk or negedge rst_n) begin
- if(!rst_n)
- Q <= 0;
- else
- Q <= D;
- end
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement