top of page
A verilog portal for needs
eriloGcode
-
"begin" and "end"
The begin - end keywords:
-
Group several statements together.
-
Cause the statements to be evaluated sequentially (one at a time).If a timing control statement appears within a block, then the next statement will be executed after that delay.
e.g.
begin
a = 1;
#10 a = 0;
#5 a = 4;
end
During the simulation, this block will be executed in 15 time units. At time 0, the 'a' variable will be 1, at time 10 the 'a' variable will be 0, and at time 15 (#10 + #5) the 'a' variable will be 4.
bottom of page