summaryrefslogtreecommitdiff
path: root/manual/APPNOTE_011_Design_Investigation/example.v
blob: ec272011cfa62048df2c798b4f82a754307a9a23 (plain)
1
2
3
4
5
module example(input clk, a, b, c, output reg [1:0] y);
always @(posedge clk)
	if (c)
		y <= c ? a + b : 2'd0;
endmodule