In Verilog, what is the purpose of the “initial” block?
In Verilog, what is the purpose of the “initial” block?
- To create clock signals
- To implement combinational logic
- To initialize variables at simulation time
- To represent sequential logic
Correct answer
C. To initialize variables at simulation time
Explanation
An initial block executes once at simulation start and is often used to initialize testbench variables.