yosys/tests/asicworld/code_verilog_tutorial_if_el...

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