Assuming a source file of
hello_world.v and a top level module of
hello_world. The code can be run using various simulators. Most simulators are compiled simulators. They require multiple steps to compile and execute.
The details of the steps could vary based on the simulator but the overall idea remains the same.
Three step process using Cadence Simulator
single step using Cadence Simulator.
The command line will internally call the required three steps. This is to mimic the older interpreted simulator execution style ( single command line ).