IPT-C2H-NIOS Altera, IPT-C2H-NIOS Datasheet - Page 129

no-image

IPT-C2H-NIOS

Manufacturer Part Number
IPT-C2H-NIOS
Description
C2H COMPILER FOR NIOS II
Manufacturer
Altera
Series
Nios®IIr
Type
Nios IIr
Datasheet

Specifications of IPT-C2H-NIOS

Function
C to Hardware Compiler
License
Initial License
Software Application
IP CORE, NIOS Processor And Functions
Core Architecture
FPGA
Core Sub-architecture
Cyclone
Rohs Compliant
NA
Lead Free Status / RoHS Status
Not applicable / Not applicable
Altera Corporation
November 2009
For example, the following code shows two definitions of my_func()
with compatible arguments, which is not supported:
These two declarations can be combined into a single composite function
prototype that is compatible with the previous declarations:
Ellipsis (Section 6.7.5.3, Paragraph 9)
The ellipsis function argument is not supported.
The following function includes an incompletely specified parameter list,
which is not supported:
The previous example can be replaced with a function declaration that
completely specifies the parameter list:
Struct and Union (Section 6.7.2.1, Paragraph 1)
The C2H Compiler does not support passing struct or union arguments
to a function by value. There are two ways to include structs or union
types in the C source:
The following code, which passes a struct MyStruct as an argument, is
not supported:
The previous example can be replaced with code that defines the struct s
outside of the function call:
Function Pointers (Section 6.7.5.3, Paragraph 8)
Function pointers are supported if used to point to functions that exist
inside the hardware accelerator. The C2H Compiler does not support
function pointers used as input or output arguments to an accelerator.
int my_func(int (*)(), double (*)[3]);
int my_func(int (*)(char *), double (*)[]);
int my_func(int (*)(char *), double (*)[3]);
void foo(int a, short b,...);
void foo(int a, short b, char *a);
Pass a pointer to a struct or union as an argument to the function.
Define the struct or union globally outside the accelerated function.
void doDMA(struct s MyStruct);
struct s MyStruct;
void doDMA();
9.1
ANSI C Compliance and Restrictions
Nios II C2H Compiler User Guide
7–5

Related parts for IPT-C2H-NIOS