shainky
Junior Member level 1
hi,
I have a module which is such that
Will this infer a latch or a combinational logic, as I have a function which is defining the output.
if combinational logic, what kind of logic would it be?
Thanks.
I have a module which is such that
Code:
module code3b (o, a, nrst, en);
output o;
input a, nrst, en;
reg o;
always @(a or nrst or en)
o = latch(a, nrst, en);
function latch;
input a, nrst, en;
if (!nrst) latch = 1'b0;
else if (en) latch = a;
endfunction
endmodule
Will this infer a latch or a combinational logic, as I have a function which is defining the output.
if combinational logic, what kind of logic would it be?
Thanks.
Last edited by a moderator: