Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
module latch(
// Outputs
dout,
// Inputs
din, le
);
input din;
output dout;
input le; // latch enable
reg dout;
always @(din or le)
if (le == 1'b1)
dout = din;
endmodule // latch
module latch(
// Outputs
dout,
// Inputs
din, le
);
input din;
output dout;
input le; // latch enable
reg dout;
always @(din or le)
if (le == 1'b1)
dout <= din; //Use non-blocking
endmodule // latch
hi,
sensitive list not complete can not produce latch, when simulating , it behaves just like latch, but after synthesize, it is still combinational logic. it's a differece between simulation and synthesize.