AN 999: Drive-on-Chip with Functional Safety Design Example: Agilex™ 7 Devices

ID 823627
Date 7/04/2024
Public

Visible to Intel only — GUID: yoi1716371954803

Ixiasoft

Document Table of Contents

5.2.1. Main (hps_safe_channel.c)

The main function is in <project>/hps_software/src/ . The flow of the main function consists of device and memory initialization from UIO, thread creation, and initialization for speed estimation, terminal printing and the running of the main safety function. Then the main runs an infinite loop until the design issues the program with a SIGNALTERM. At the end, some clean up functions.

The loop does not finish unless you stop it. When the interval timer triggers the interrupt, the HPS calculates a new speed and HPS payload.

Figure 24. HPS Safety Function Main Flow