systemverilog中的Program Block与module有些类似,但module是基于硬件思想,Program Block纯粹是为了仿真。如果不熟悉program,可以不用program.
The program block serves three basic purposes:
- » It provides an entry point to the execution of testbenches.
- » It creates a scope that encapsulates program-wide data.
- » It provides a syntactic context that specifies scheduling in the Reactive region.