yosys/tests/asicworld/code_verilog_tutorial_simpl...

12 lines
126 B
Verilog
Raw Normal View History

2013-01-05 04:13:26 -06:00
module simple_if();
reg latch;
wire enable,din;
always @ (enable or din)
if (enable) begin
latch <= din;
end
endmodule