hps arch
35 TopicsFIFO trigger issue in Avalon UART IP in FPGA - CycloneV - 5CSEBA4U23C7N
Problem statement: We have created 8 Avalon UARTs in the FPGA in the above SoC. In the Quartus program the FIFO dept is set at 256(max) for each UART. The Linux HPS program is able to see the serial port and the application can send and receive data over the serial port. Please find attached. Regards amolkumar43Views0likes6CommentsCyclone V HPS SPI Master: Formula for calculating Tsu(min)/Th(min) from rx_sample_dly and spi_m_clk
Hello, For the HPS SPI Master on the Cyclone V SoC, verify that the SPI read waveform and register settings are correct. To do this, calculate the MISO setup time and hold time under the operating conditions. Current settings: rx_sample_dly = 1, spi_m_clk = 200 MHz [Background] The Cyclone V Device Datasheet and the Hard Processor System Technical Reference Manual do not contain a formula for determining Tsu (min) from rx_sample_dly and spi_m_clk. In the datasheet, Tsu = 8.35 ns (min) is only shown as a characteristic value under the condition "rx_sample_dly = 1, spi_m_clk = 120 MHz" (Note 69). Also, Th = 1 ns (min) has no note indicating its relationship with rx_sample_dly and spi_m_clk. • [Reference] Cyclone V Device Datasheet → "SPI Timing Characteristics" On the other hand, the datasheet for a newer generation device (such as the Agilex 3) equipped with the same SPI controller has the following expression: • Tsu(min) = 5.0 − (rx_sample_dly × Tspi_ref_clk) [ns] • Th(min) = 1.3 + (rx_sample_dly × Tspi_ref_clk) [ns] • [Reference] Agilex 3 FPGAs and SoCs Device Data Sheet → "HPS SPI Timing Characteristics" [What I want to know] 1. For the HPS SPI Master of the Cyclone V SoC, is there a formula to calculate Tsu (min) from rx_sample_dly and spi_m_clk periods like Agilex 3? If so, please tell me the formula and constant term. 2. Similarly, is there a formula to calculate Th (min) from rx_sample_dly and spi_m_clk periods? Also, please tell me under which condition (rx_sample_dly, spi_m_clk) Th = 1 ns (min) in the data sheet is the value. 3. If there is no official formula, is it correct to apply the same shape as Agilex3 (constant ̇ rx_sample_dly × T) to Cyclone V? If so, please tell me the constant to use. Also, I would like to know if the constant is based on rx_sample_dly = 0, and if 8.35 ns in the data sheet already includes 1 stage of rx_sample_dly. 4. Please tell me Tsu (min) and Th (min) under the current condition (rx_sample_dly = 1, spi_m_clk = 200 MHz). Thank you for your support.Solved132Views0likes4CommentsStratix 10 Linux SD card booting
Hi Altera Community, I tried multiple attempts to boot the SD card from Rocketboard.org. https://releases.rocketboards.org/ I downloaded and booted the SD card with the .wic image file. It only has the .itb file by default in the boot partition. Whenever I try to boot, it asks for the U-Boot.img file. And also it says "failed to load "socfpga_stratix10_socdk.dtb" even if the file is there. And then I compiled my simple HPS design and can easily program the FPGA from the Quartus Programmer (rbf and sof file), but whenever I try to overlay it, like say: echo overlay.dtb > /sys/kernel?config?device-tree/overlays/0/path It says "FPGA manager error, timeout," and so on. Does any community member have notes or steps that you made to boot the SD card of the Stratix 10 FPGA? I am following this link: https://www.rocketboards.org/foswiki/Documentation/BuildingBootloaderStratix10324Views0likes12Comments25.3 PRO Release
Version: Release 25.3 PRO Quartus Build/TAG: B109/QPDS25.3_REL_GSRD_PR Release Date: October 10, 2025 Device Affected: Agilex™ 3, Agilex™ 5, Agilex™ 7, Startix® 10, Arria® 10 Release Type: Major release/Binary release Binary Release Path: http://releases.rocketboards.org/2025.10/ Major Features Released Support of GHRD 2.0 in Agilex™ 5 which includes foundational boot to Linux, ability to create compatible phase 2 bitstreams, parameterized HPS for maximum performance and best practices. Support of GSRD 2.0 Yocto layers for the Agilex 5 E-Series Premium DevKit with OOBE daughtercard for the GHRD 2.0 baseline design. Agilex 5 GSRD Development User Experience Improvement through KAS using a graphical/text interface to configure a limited number of high-level options on top of simplified Yocto recipes. - GSRD 2.0 with Kas Build System Support for running Agilex 5 Simics Simulation under the GSRD 2.0 framework. Booting from SD Card and QSPI is supported. - Exercising Simics Simulation from GSRD 2.0 Support GHRD and GSRD for Agilex™ M-Series PRQ HBM2e for DK-Sl-AGM039EA development kit. The GSRD is capable of booting to Linux. - Build the GSRD for DK-DEV-AGM039EA Hypervisor Multi-OS Support Example, demonstrating Linux and Zephyr running side-by-side in the HPS cluster. - HPS Xen Hypervisor GSRD System Example Design: Agilex™ 3 FPGA and SoC C-Series Development Kit Support for monitoring of SEU errors from the SDM in the HPS in Agilex™ 7. Add capability to measure the latency of Linux SMC calls. Support Nios V Lockstep application with a fail-safe mechanism742Views3likes12CommentsIntroducing the Altera Community AI Responder — Beta
Altera is introducing the AI Responder, an assistant built into the Altera Community to help provide faster, context-aware guidance for Altera product questions. It uses relevant public Altera documentation and Knowledge Database content, with coverage continuing to expand. The AI Responder may provide source references and can hand off complex or out-of-scope questions to an Altera subject-matter expert. As a beta feature, responses may contain errors or omissions, so please review the sources and verify technical guidance against official Altera documentation before implementation. If the response does not fully address your question, add more context and tag ai_responder to continue the discussion. We welcome your feedback as we improve the Community experience.52Views0likes0CommentsLWH2F Throughput
Dear all, I'm facing the issue that the throughput on the Agilex 5 LWH2F interface appears to be lower compared to Cyclone 5. - I have two custom boards, one is based on Cyclone 5, the other on Agilex 5. - I use a linux OS. The code runs in a linux kernel driver. The code for the driver is the same for both devices. - The memory is mapped using ioremap(), i.e. it is mapped as device memory. - I measure performance by taking a timestamp with ktime_get_ns(), then read/write 10000 uint32 values, then take another timestamp. - I've measured the follwing values - Cyclone5 board read: 47.2 MB/s (million bytes per second or 11.8 million words à 4 byte per second) - Cyclone5 board write: 73.1 MB/s - Agilex5 board read: 24.8 MB/s - Agilex5 board write: 18.8 MB/s - I've noticed that performance varies, depending on the CPU that the process is running on (when measuring in userspace I can explicitly set the cpu affinity; For the kernel driver I've noticed that it is sometimes slower than above, presumably because it's running on a different cpu). - There is a slight difference in the QSYS design: - The Cyclone5 based board: - drives the AXI bus with a 64 MHz clock. - uses the Avalon MM Slave Translator. - The Agilex5 based board: - drives the AXI bus with a 200 MHz clock. - uses the Avalon Memory Mapped Pipeline Bridge Intel FPGA IP. - Our FPGA takes one 64/200 MHz cycle to process the read (readdatavalid). For a write our FPGA doesn't generate a writeresponsevalid, this is handled by the IP block. - I'm using Quartus 25.1.1 for the Agilex 5 design. I'm aware that the LWH2F interface is not intended for high throughput. Also, since the memory is mapped as "Device Memory", every load/store is processed separately and we're not taking advantage of AXI bursts, etc. I'm aware that we could improve performance by using the H2F interface and mapping the memory as normal memory. That said, we have a prooven design and are reluctant to change it unless absolutely neccessary. So I have the following questions: - Is a higher latency expected on Agilex5? (E.g. due to a different architecture of the interconnect) - Have you measured the performance of the LWH2F interface? Can you give me a number on how many transactions per second we can expect? Kind Regards, Eric Opitz567Views0likes13CommentsRelease 26.1.1
Version: Release 26.1.1 PRO Quartus Build/TAG: B130/QPDS26.1.1_REL_GSRD_PR Release Date: August 17, 2026 Device Affected: Agilex™ 3, Agilex™ 5, Agilex™ 7, Startix® 10 Release Type: Major release/Binary release Binary Release Path: http://releases.rocketboards.org/2026.08/ Release Page: https://github.com/altera-fpga/gsrd-socfpga/releases/tag/QPDS26.1.1_REL_GSRD_PR Major Features Released Agilex™ 5 XEN Hypervisor 5 System Example Design https://altera-fpga.github.io/rel-26.1.1/virtualization/hypervisors/xen/ug-xen-agx5e-premium-065b/ , https://altera-fpga.github.io/rel-26.1.1/virtualization/hypervisors/xen/ug-xen-agx5e-premium-065a/ Agilex™ 5 RYO OPTE System Example Design Agilex™ 5 Quartus Reference Design using VDS Agilex™ 3 Time-Sensitive Networking (TSN): PHY configuration 2 (RGMII from FPGA HVIO) System Example Design Agilex™ 5 Performance Optimized Baseline SED support Agilex™ 5 DataMover / Bridge and Memory Benchmark System Example Design https://altera-fpga.github.io/rel-26.1.1/embedded-designs/agilex-5/e-series/premium-065a/data-mover/ug-data-mover-agx5e-premium-065a/ Agilex™ 3 support of FreeRTOS Agilex™ 5 Terasic DE25-Nano Board System Example Design149Views2likes0CommentsHow to Generate Altera HAL for HPS?
Hi, I am using Quartus 26.1 with the Agilex 5 Modular Development Kit (Device number: A5ED065BB32AE6SR0) and I have a few questions about BSP Generation for Hard Processor System (HPS). For reference I am following the Quartus Prime Pro Edition Version 26.1 User Guide. 1. How do I generate Altera HAL for HPS? When I use the BSP Editor in platform designer, I can only generate the system.h file that only has macros for EMIF, even though other peripherals are also connected to the HPS. How do I generate macros for the H2F bridges and HAL API Files for the HPS? 2. How do I input a SOPCINFO file into the BSP Editor? The Quartus Prime Pro Edition User Guide shows that I should be able to input SOPCINFO file as the system file (see above image) but Quartus only gives me the options of QSYS and IP file (see below image). Thank you for the help!Solved273Views0likes5CommentsAgilex 5E HPS and Linux
Hi. 1. Is there a simple method to run two Linux systems on HPS, i.e.: Linux 1 - 2xA55 and Linux 2 - 2xA76 with different sets of peripherals? 2. Is it possible to use one Ethernet port by these two Linux systems. 3. Is there a simple method for communication between these two Linux systems?612Views0likes8CommentsF2SDRAM fails to synthesize with custom logic
Hello guys, We are using Agilex5 SOC F2SDRAM bridge. I am trying to connect custom logic to the F2SDRAM, but it absolutely refuses to synthesize unless I export the signals directly to the top-level ports. Does anyone know why this is happening? Also, is there an example design for F2SDRAM available? The GHRD is not very helpful since it only includes the JTAG master. I suspect it might be a design issue, so I even removed the adapter and connected it only within Qsys, but it’s still acting up like this. Does anyone know why this is happening even though everything is clearly declared and connected? HudsonSolved597Views0likes20Comments