IPTR-C2H-NIOS Altera, IPTR-C2H-NIOS Datasheet - Page 122

no-image

IPTR-C2H-NIOS

Manufacturer Part Number
IPTR-C2H-NIOS
Description
IP CORE Renewal Of IPT-C2H-NIOS
Manufacturer
Altera
Datasheet

Specifications of IPTR-C2H-NIOS

Software Application
IP CORE, NIOS Processor And Functions
Core Architecture
Nios II
Features
ANSI C Compliance, Straightforward C-to-Hardware Mapping, Reporting Of Generated Results
Core Sub-architecture
Cyclone
Rohs Compliant
NA
Lead Free Status / RoHS Status
na
Interrupt Pragma
Interrupt
Pragma
6–4
Nios II C2H Compiler User Guide
Return value
Interrupt clear
Check status
Table 6–1. C2H Accelerator Interrupt Macros
Purpose
ACCELERATOR
ACCELERATOR
ACCELERATOR
To use a hardware accelerator in interrupt mode, add the following line
to your function source code:
At the next software compilation, the C2H Compiler creates a new header
file containing all the macros needed to use the accelerator and service the
interrupts it generates.
This pragma causes the function (which is assumed to be a top-level
accelerated function, not an accelerated subfunction) to be an interrupt-
mode accelerator. Specifically, the following things change:
#pragma altera_accelerate \
The accelerator's control slave has an IRQ signal, which is asserted
every time the function has completed execution.
The polling loop in the generated driver file is removed. When the
function is called, the CPU immediately returns after launching the
accelerator.
A header file is generated, providing macros and definitions
required for you to write an ISR. The macros are summarized in
Table
An example of this header file is shown in
accelerated function called coprocess() in a Nios II IDE project
called my_project. The file is generated in <Project Path>/
<Configuration>, where <Project Path> is the software project
directory, and <Configuration> is the project configuration name
(Release or Debug). The file name is ACCELERATOR_<Project
Name>_<Function Name>_IRQ.h, where <Project Name> is the name
of the project (usually the same as <Project Path>), and <Function
Name> is the name of the function you are accelerating.
enable_interrupt_for_function <function name>
6–1.
_<Project Name>_<Function Name>_
_<Project Name>_<Function Name>_
_<Project Name>_<Function Name>_
9.1
Macro Name
GET_RETURN_VALUE()
CLEAR_IRQ()
BUSY()
Example 6–4
Altera Corporation
November 2009
for an

Related parts for IPTR-C2H-NIOS