iverilog/ivtest/fpga_tests/cell_ld.v

16 lines
204 B
Verilog

`timescale 100 ps / 10 ps
(* ivl_synthesis_cell *)
module LD (Q, D, G);
output Q;
reg q_out;
input D, G;
buf b1 (Q, q_out);
always @(D or G) if (G) q_out <= D;
endmodule