Download Altera SoC Embedded Design Suite User Guide
Transcript
4-100 ug-1137 2014.12.15 FPGA Triggering HPS Example In order to allow HPS cross triggers to trigger FPGA, you need to: • Check the Enable HPS > FPGA Cross Triggering check box • Check the Assume Cross Triggers can be accessed check box Note: In order to enable bi-directional triggering, you can check all three checkboxes. FPGA Triggering HPS Example This section presents an example on how FPGA can trigger HPS to stop the execution. This can be useful if you want to see what the HPS is doing at the moment the trigger comes from FPGA. The required steps are to reproduce this scenario are: 1. Perform the steps from the Cross-triggering Prerequisites section. 2. Open the Debugger configuration and edit DTSL options to enable FPGA cross-triggering HPS as shown in the Enabling Cross-triggering on HPS section. a. Check the Enable FPGA -> HPS Cross Triggering check box. b. Un-check the Enable HPS-> FPGA Cross Triggering check box if checked. c. Check the Assume Cross Triggers can be accessed check box. 3. Start the debug session by clicking Debug in the Debug Configuration dialog box. The debugger will stop the Linux kernel and display the current HPS state. 4. In Signal Tap II, configure a trigger on the fpga_dispw_pio[0] signal to trigger at any edge, by rightclicking the corresponding cell in the Trigger Condition column. Figure 4-78: Trigger on Dip Switch 5. In Signal Tap II, configure the Trigger out to be sent to HPS, so that the SignalTap II sends the trigger to HPS whenever it performs an acquisition. Altera Corporation Getting Started Guides Send Feedback