shainky
Junior Member level 1
- Joined
- Apr 18, 2009
- Messages
- 17
- Helped
- 0
- Reputation
- 0
- Reaction score
- 1
- Trophy points
- 1,281
- Activity points
- 1,414
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: