yosys/manual/APPNOTE_011_Design_Investig.../example.v

6 lines
121 B
Coq
Raw Normal View History

2013-11-28 06:48:38 -06:00
module example(input clk, a, b, c, output reg [1:0] y);
always @(posedge clk)
if (c)
y <= c ? a + b : 2'd0;
endmodule