Sep 26, 2007 #1 V verilog_always Member level 2 Joined Dec 27, 2006 Messages 43 Helped 3 Reputation 6 Reaction score 1 Trophy points 1,288 Activity points 1,552 What does combinational Latch mean???
Sep 27, 2007 #2 N no_mad Full Member level 5 Joined Dec 10, 2004 Messages 271 Helped 30 Reputation 60 Reaction score 11 Trophy points 1,298 Location Naboo Activity points 2,489 Hi, Below is an example of combinational latch: Code: module com_latch (a, b, c); input a, b; output c; reg c; always @(a or b) begin if(a) c <= b; // no else statement end endmodule This piece of verilog code will infer a latch or combinational latch. This is not a good coding style. Unless, u intent to do this. Hope it helps.
Hi, Below is an example of combinational latch: Code: module com_latch (a, b, c); input a, b; output c; reg c; always @(a or b) begin if(a) c <= b; // no else statement end endmodule This piece of verilog code will infer a latch or combinational latch. This is not a good coding style. Unless, u intent to do this. Hope it helps.