mirror of https://github.com/YosysHQ/yosys.git
14 lines
146 B
Verilog
14 lines
146 B
Verilog
|
module if_else();
|
||
|
|
||
|
reg dff;
|
||
|
wire clk,din,reset;
|
||
|
|
||
|
always @ (posedge clk)
|
||
|
if (reset) begin
|
||
|
dff <= 0;
|
||
|
end else begin
|
||
|
dff <= din;
|
||
|
end
|
||
|
|
||
|
endmodule
|