mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
* Copies guidelines files into docs/ for website * Copying manual/CHAPTER_Prog for new docs * Copying manual/APPNOTE_011... for new docs Also adding faketime to list of packages for website build. Co-authored-by: KrystalDelusion <krystinedawn@yosyshq.com>
7 lines
157 B
Verilog
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
|