The following figure is an SPFP PID implemented in PL using the VMC HLS toolbox.
Figure 1. Single Precision Floating Point PID Using Native VMC Blocksets
This allows the ability to compare and contrast the Simulink golden reference model to the VMC SPFP HLS toolbox implementation using Simulink tools such as scopes, display, signal logging, and more. The following figure demonstrates how to log, visualize, and compare signals in the design using:
- Simulation data inspector
- To workspace
- Signal logging
- Port value displays
In the following figure, a simple Simulink subtract is used to show zero differences between the golden reference and HLS toolbox implementation.
Figure 2. Simulink and PL Simulation Comparison