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