R
romi
Guest
I realize that the code below does not make much sense. However, I
was wondering if when a=0 and b=1 should this code hang a simulator?
Because of the @*, the net 'c' is in the event_expression list. Does
the fact that c will transition from 0 to 1 in the block mean that the
block will get triggered continuously?
always @* begin
c=a;
c=c + b;
end
I have the answer from the simulator I use, but would like an answer
based on another LRM interpretation.
Further, does anyone know why the LRM decided to include temporary
nets in the event_expression list for @*? Adding the tmp1 and tmp2
nets in the code below (from the LRM) to the expression list doesn't
seem to add much value.
always @* begin
tmp1=a & b;
tmp2=c & d;
y=tmp1 | tmp2;
end
Thanks.
was wondering if when a=0 and b=1 should this code hang a simulator?
Because of the @*, the net 'c' is in the event_expression list. Does
the fact that c will transition from 0 to 1 in the block mean that the
block will get triggered continuously?
always @* begin
c=a;
c=c + b;
end
I have the answer from the simulator I use, but would like an answer
based on another LRM interpretation.
Further, does anyone know why the LRM decided to include temporary
nets in the event_expression list for @*? Adding the tmp1 and tmp2
nets in the code below (from the LRM) to the expression list doesn't
seem to add much value.
always @* begin
tmp1=a & b;
tmp2=c & d;
y=tmp1 | tmp2;
end
Thanks.