Intel® High Level Synthesis Compiler Standard Edition: Reference Manual
                    
                        ID
                        683310
                    
                
                
                    Date
                    12/18/2019
                
                
                    Public
                
            
                
                    
                    
                        1. Intel® HLS Compiler Standard Edition Reference Manual
                    
                
                    
                        2. Compiler
                    
                    
                
                    
                        3. C Language and Library Support
                    
                    
                
                    
                        4. Component Interfaces
                    
                    
                
                    
                        5. Component Memories (Memory Attributes)
                    
                    
                
                    
                        6. Loops in Components
                    
                    
                
                    
                        7. Component Concurrency
                    
                    
                
                    
                        8. Arbitrary Precision Math Support
                    
                    
                
                    
                    
                        9. Component Target Frequency
                    
                
                    
                        10. Intel® High Level Synthesis Compiler Standard Edition Compiler Reference Summary
                    
                    
                
                    
                        A. Supported Math Functions
                    
                    
                
                    
                    
                        B. Intel® HLS Compiler Standard Edition Reference Manual Archives
                    
                
                    
                    
                        C. Document Revision History of the Intel® HLS Compiler Standard Edition Reference Manual
                    
                
            
        
                        
                        
                            
                                4.1. Component Invocation Interface
                            
                            
                        
                            
                            
                                4.2. Avalon® Streaming Interfaces
                            
                        
                            
                                4.3. Avalon® Memory-Mapped Master Interfaces
                            
                            
                        
                            
                                4.4. Slave Interfaces
                            
                            
                        
                            
                            
                                4.5. Component Invocation Interface Arguments
                            
                        
                            
                            
                                4.6. Unstable and Stable Component Arguments
                            
                        
                            
                            
                                4.7. Global Variables
                            
                        
                            
                            
                                4.8. Structs in Component Interfaces
                            
                        
                            
                            
                                4.9. Reset Behavior
                            
                        
                    
                
                        
                        
                            
                            
                                10.1. Intel® HLS Compiler Standard Edition i++ Command-Line Arguments
                            
                        
                            
                            
                                10.2. Intel® HLS Compiler Standard Edition Header Files
                            
                        
                            
                            
                                10.3. Intel® HLS Compiler Standard Edition Compiler-Defined Preprocessor Macros
                            
                        
                            
                            
                                10.4. Intel® HLS Compiler Standard Edition Keywords
                            
                        
                            
                            
                                10.5. Intel® HLS Compiler Standard Edition Simulation API (Testbench Only)
                            
                        
                            
                            
                                10.6. Intel® HLS Compiler Standard Edition Component Memory Attributes
                            
                        
                            
                            
                                10.7. Intel® HLS Compiler Standard Edition Loop Pragmas
                            
                        
                            
                            
                                10.8. Intel® HLS Compiler Standard Edition Component Attributes
                            
                        
                            
                            
                                10.9. Intel® HLS Compiler Standard Edition Component Default Interfaces
                            
                        
                            
                            
                                10.10. Intel® HLS Compiler Standard Edition Component Invocation Interface Arguments
                            
                        
                            
                            
                                10.11. Intel® HLS Compiler Standard Edition Component Macros
                            
                        
                            
                            
                                10.12. Intel® HLS Compiler Standard Edition Streaming Input Interfaces
                            
                        
                            
                            
                                10.13. Intel® HLS Compiler Standard Edition Streaming Output Interfaces
                            
                        
                            
                            
                                10.14. Intel® HLS Compiler Standard Edition Memory-Mapped Interfaces
                            
                        
                            
                            
                                10.15. Intel® HLS Compiler Standard Edition Arbitrary Precision Data Types
                            
                        
                    
                8.3. Debugging Your Use of the ac_int Data Type
    The "HLS/ac_int.h" header file provides you with tools to help check ac_int operations and assignments for overflow in your component when you run an x86 emulation of your component: DEBUG_AC_INT_WARNING and DEBUG_AC_INT_ERROR. 
   
 
   When you use the DEBUG_AC_INT_WARNING and DEBUG_AC_INT_ERROR macros, you cannot declare constexpr ac_int variables or constexpr ac_int arrays.
| Tool | Description | 
|---|---|
| DEBUG_AC_INT_WARNING | Emits a warning for each detected overflow. | 
| DEBUG_AC_INT_ERROR | Emits a message for the first overflow that is detected and then exits the component with an error. | 
Review the ac_int_overflow tutorial in <quartus_installdir>/hls/example/tutorials/ac_datatypes to learn more.