参数资料
型号: IPT-C2H-NIOS
厂商: Altera
文件页数: 54/138页
文件大小: 0K
描述: C2H COMPILER FOR NIOS II
标准包装: 1
系列: Nios®II
类型: Nios II
功能: C 到硬件编译器
许可证: 初始许可证
Variable Declarations
Scalar Variables
For local scalar variables, the C2H Compiler creates hardware registers
inside the accelerator. For example, declaring a char creates an 8-bit
register; declaring a short int creates a 16-bit register, and so forth.
Declaring a pointer allocates only storage for the pointer itself. For
example, declaring a char* creates a 32-bit register to store the address
of a char . If you use a scalar variable within a pipelined loop, then its
register is replicated for pipelining as needed.
The C2H Compiler considers a variable to be scalar if it is not an array,
structure, or union. Example 3–5 demonstrates some examples of scalar
variables.
Example 3–5. Scalar Variables
int i;
int *p;
char **c;
struct struct_type *pointer_to_struct;
int (*pointer_to_array)[8];
Example 3–6 demonstrates some examples of nonscalar variables.
Example 3–6. Nonscalar Variables
int data[1024];
struct struct_type tx_rec;
int *array_of_pointers[8];
Arrays, Structures, and Unions
For local arrays, structures, and unions, the C2H Compiler creates
memory elements inside the accelerator. Depending on the size of the
memory required and the target device family, the C2H Compiler can
implement these memory elements either as logic elements or embedded
memory blocks.
The memory elements are single-ported. As a result, a given array, union,
or structure has a maximum bandwidth of one transaction per cycle, even
if the C code could be structured to allow parallel scheduling of accesses.
1
The following constructs are declared in the driver file (and
therefore in the processor's data memory), and passed into the
accelerator by reference:
3–14
Nios II C2H Compiler User Guide
9.1
Altera Corporation
November 2009
相关PDF资料
PDF描述
IPTR-DSPBUILDER DSP BUILDER SOFTWARE
IR11662SPBF IC CNTROL SMART RECTIFIER 8-SOIC
IR1166STRPBF IC MOSFET DRIVER N-CH 200V 8SOIC
IR11672ASPBF IC MOSFET DRIVER 200V 8-SOIC
IR1167ASTRPBF IC SMART SECONDARY DRIVER 8-SOIC
相关代理商/技术参数
参数描述
IPT-DSPBUILDER 功能描述:开发软件 DSP Builder MATLAB SIMULINK RoHS:否 制造商:Atollic Inc. 产品:Compilers/Debuggers 用于:ARM7, ARM9, Cortex-A, Cortex-M, Cortex-R Processors
IPTE-75GF-1000-70D 制造商: 功能描述: 制造商:undefined 功能描述:
IPTG06A18-11SZC 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector with Backshell to Accommodate
IPTG06A18-11SZCPH16 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector
IPTG06A18-11SZCPHM18 制造商:GLENAIR 制造商全称:Glenair, Inc. 功能描述:Straight Plug Connector