E
Element Blue
Guest
Hi all,
I have a doubt.Is the 'always' block always executed upon
intialization ? (Like a VHDL process ) And do assignments in the initial
block cause events to be scheduled at t=0 ? (if the assignments are at
t=0).
Like :
module contrived (in,out)
input in;
output out;
reg a,b;
intial begin
a=0;b=1;
end
always @a
begin
out=a and in;
end
always @b
begin
out=b and in;
end
endmodule;
Do the initial a,b assignments cause events which will lead to execution
of the always blocks ??
If there was no @a or @b in the always sens.list,will the always block be
executed at t=0??
Thanks a lot.
I have a doubt.Is the 'always' block always executed upon
intialization ? (Like a VHDL process ) And do assignments in the initial
block cause events to be scheduled at t=0 ? (if the assignments are at
t=0).
Like :
module contrived (in,out)
input in;
output out;
reg a,b;
intial begin
a=0;b=1;
end
always @a
begin
out=a and in;
end
always @b
begin
out=b and in;
end
endmodule;
Do the initial a,b assignments cause events which will lead to execution
of the always blocks ??
If there was no @a or @b in the always sens.list,will the always block be
executed at t=0??
Thanks a lot.