mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-14 12:58:45 +00:00
6 lines
121 B
Verilog
6 lines
121 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
|