...
Typically, all simulator input/output signals are available for visualization through the FPGA Scope. Additionally, if present, FPGA-based controllers and solvers such as eHS, or custom probes on other functionalities, can provide signals to the FPGA Scope.
Selecting signals for acquisition
A list of signals available to the FPGA Scope feature is populated when the FPGA configuration file (bitstream) is created and embedded in the OPBIN file. Upon the selection of the OPBIN file as the “Bitstream configuration file” in the OPAL-RT Board configuration interface, the configuration file content is extracted in the “firmware” directory of the RT-LAB project.
In the folder corresponding to the firmware selected, the signals to acquire are selected through the <configuration_file_name>.fsd file.
In the file, signals are made available through different probes. Each probe groups signals from a specific source internal to the FPGA. The FSD file lists them in the JSON format, along with their numerical format. Signals are selected by the user by setting the “Selected” attribute to the value true. Additionally, adding the attribute “TriggerSelected” to the value true to a signal in the list will set it as the signal on which the trigger condition will be applied.
Only the attributes “Selected” and “TriggerSelected” should be modified by the user in the FSD file.
The maximum number of signals that can be selected simultaneously to be acquired is indicated as the “max_count_selected_signals” attribute at the top of the file. A maximum of one signal can have the “TriggerSelected” attribute set to true. If no signal has the “TriggerSelected” set to true or the signal that has “TriggerSelected” set to true is not selected, the first signal selected will be used for the trigger condition application.
Visualizing the signals
ScopeView
...
- From RT-LAB, open ScopeView.
- In ScopeView, load the Data Source by selecting the simulator IP address into the "Target" field of the DataLogger FPGA Scope tab, then click "Fetch signal groups".
In "Signal Group" list, select "FPGAScope", then click the refresh button. Once selected, press "Load". - In the signal selection interface, select the signals to be visualized from the list of signals that were selected in the FSD file.
- In the ScopeView oscilloscope interface, the trigger signal selection is displayed. Adjust acquisition period and window size, trigger characteristics and then run an acquisition by clicking the black "Start" button.
...