summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary/AN1186/d_flop.v
blob: c760670276be3b100e23ade7b0e4209dcb577724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module d_flop(d, clk, rst, q);
input d, clk, rst;
output reg q;
always @(posedge clk) begin
	if(rst) begin
		q <= 0;
	end
	else begin
		q <= d;
	end
end
endmodule