参数资料
型号: IPT-C2H-NIOS
厂商: Altera
文件页数: 123/138页
文件大小: 0K
描述: C2H COMPILER FOR NIOS II
标准包装: 1
系列: Nios®II
类型: Nios II
功能: C 到硬件编译器
许可证: 初始许可证
Pragma Reference
Example 6–4. Interrupt Header File
#ifndef ALT_C2H_COPROCESS_IRQ_H
#define ALT_C2H_COPROCESS_IRQ_H
#include "io.h"
#include "c2h_accelerator_base_addresses.h"
#define ACCELERATOR_MY_PROJECT_COPROCESS_GET_RETURN_VALUE()
(( int ) IORD_32DIRECT (
ACCELERATOR_MY_PROJECT_COPROCESS_CPU_INTERFACE0_BASE,
(1*sizeof(int))))
#define ACCELERATOR_MY_PROJECT_COPROCESS_CLEAR_IRQ()
( IOWR_32DIRECT (
ACCELERATOR_MY_PROJECT_COPROCESS_CPU_INTERFACE0_BASE,
(0*sizeof(int)), 0))
#define ACCELERATOR_MY_PROJECT_COPROCESS_BUSY()
( IORD_32DIRECT (
ACCELERATOR_MY_PROJECT_COPROCESS_CPU_INTERFACE0_BASE,
((0*sizeof(int))) & 1) ^ 1)
#endif /* ALT_C2H_COPROCESS_IRQ_H */
The hardware accelerator does not have an IRQ level so you must open
the system in SOPC Builder and manually assign this value. After
assigning the IRQ level press the generate button because this is a change
outside of the Nios II IDE. You only have to do this manual step once. In
addition, you can use the
accelerate_my_project_coprocess_busy macro in a non-
interrupt based system in which the user code pulls for the done bit,
rather than using the automatically generated C wrapper.
f
Unshare Pointer
Pragma
Refer to the Exception Handling chapter of the Nios II Software Developer's
Handbook for more information about creating interrupt service routines.
As discussed in “Resource Sharing” in the C-to-Hardware Mapping
Reference chapter, the C2H compiler automatically shares a master port
for multiple pointer dereference operations that connect to the same slave
port or group of slave ports. In certain cases, this causes a reduction in
performance. For example, in Example 6–5 both ptr_a and ptr_b must
be connected to both onchip_memory_0 and onchip_memory_1, but they
never access the same memory at the same time. By default, the C2H
compiler will attempt to share a single master between ptr_a and
ptr_b , preventing these dereference operations from being scheduled
concurrently and possibly degrading performance.
Altera Corporation
November 2009
9.1
Nios II C2H Compiler User Guide
6–5
相关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