Article ID: 000077304 Content Type: Troubleshooting Last Reviewed: 11/26/2024

Is std::atomic supported by Nios® II ?

Environment

    Intel® Quartus® Prime Pro Edition
    Nios® II Embedded Design Suite (EDS)
    Nios® II Processor
BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

The std::atomic in C programming is Nios® II software development is not supported. The Nios® II GCC compiler is running by default with this feature "Thread Model: single", and cannot be modified.

 

Resolution

Nios® II does not have any atomic instructions. Hence, the "Thread Model: single" is the default setting for the compiler.

To overcome this issue, Altera recommends using the Avalon Mutex Core, which gives Nios II the atomic operation. This document (Chapter 11) provides more information about this IP.

https://www.altera.com/en_US/pdfs/literature/ug/ug_embedded_ip.pdf

Related Products

This article applies to 1 products

Intel® Programmable Devices

1