D触发器

module D_Flip_Flop(
	clk,rst_n,d,q);

input		 	clk;
input		  	rst_n;
input			d;
output reg  q;

always @(posedge clk or negedge rst_n)
if(!rst_n)
	q <= 1'b0;
else
	q <= d;

endmodule

  

原文地址:https://www.cnblogs.com/bixiaopengblog/p/6202324.html