Vi. Serial and parallel incentive statements
Begin... The end statement is used to start the serial excitation, fork... The join statement is used to start parallel incentives.
Fork... The syntax format of the join statement is as follows:
Fork: <>
Time Control 1 Action Statement 1;
...
Time Control n Action Statement N;
Join
Where fork... The statement assigned in the join block must be a register variable. Its main features are as follows:
- Parallel Block statements are executed at the same time.
- The specified latency control in Parallel Block statements is relativeProgramThe delay of the process entering the parallel block time.
- After all the statements in the parallel block are executed, the simulation program jumps out of the Parallel Block. The execution time of the entire Parallel Block is equal to the execution time of the statement with the longest execution time in the block.
- Parallel blocks and serial blocks can be nested together.