yosys/tests/asicworld/code_verilog_tutorial_simpl...

12 lines
124 B
Verilog
Raw Permalink Normal View History

2013-01-05 11:13:26 +01:00
module simple_if();
reg latch;
wire enable,din;
always @ (enable or din)
if (enable) begin
latch <= din;
2026-06-23 07:24:59 +02:00
end
2013-01-05 11:13:26 +01:00
endmodule