aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sim/sdffe.v
blob: 0a96693e16a8c2de3d4e5de72ebd97898830015f (plain)
1
2
3
4
5
6
7
8
module sdffe( input d, clk, rst, en, output reg q );
	always @( posedge clk)
		if (rst)
			q <= 0;
		else
			if (en)
				q <= d;
endmodule