yosys/tests/asicworld/code_verilog_tutorial_if_el...

14 lines
146 B
Verilog
Raw Normal View History

2013-01-05 04:13:26 -06:00
module if_else();
reg dff;
wire clk,din,reset;
always @ (posedge clk)
if (reset) begin
dff <= 0;
end else begin
dff <= din;
end
endmodule