10.4.1 Simulation
(Ask a Question)The following steps describe how to simulate the core using the testbench:
- Open Libero SoC, click Catalog tab, and then click Solutions-MotorControl.
- Double-click PWM Scaling, and then click OK. The
documentation associated with the IP are listed under
Documentation. Important: If you do not see the Catalog tab, click View, open Windows menu, and then click Catalog to make it visible.
Figure 10-3. PWM Scaling IP Core in Libero SoC Catalog - On the Stimulus Hierarchy
tab, click the testbench (
pwm_scaling_tb.v), point to , and then click Open Interactively.Important: If you do not see the Stimulus Hierarchy tab, click , open Windows menu, and then click Stimulus Hierarchy to make it visible.Figure 10-4. Simulating Pre-Synthesis Design ModelSim opens with the testbench file, as shown in the following figure.
Figure 10-5. ModelSim Simulation Window
Important: If the simulation is interrupted due to the
runtime limit specified in the
.do file, use the run
-all command to complete the simulation.