1
0
mirror of synced 2026-01-23 19:17:15 +00:00
2013-11-29 12:51:16 +01:00

7 lines
157 B
Verilog

module example(input clk, a, b, c,
output reg [1:0] y);
always @(posedge clk)
if (c)
y <= c ? a + b : 2'd0;
endmodule