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

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
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() \
#define ACCELERATOR_MY_PROJECT_COPROCESS_CLEAR_IRQ() \
#define ACCELERATOR_MY_PROJECT_COPROCESS_BUSY() \
#endif /* ALT_C2H_COPROCESS_IRQ_H */
Unshare Pointer
Pragma
Altera Corporation
November 2009
(( int ) IORD_32DIRECT ( \
( IOWR_32DIRECT ( \
( IORD_32DIRECT ( \
f
ACCELERATOR_MY_PROJECT_COPROCESS_CPU_INTERFACE0_BASE, \
(1*sizeof(int))))
ACCELERATOR_MY_PROJECT_COPROCESS_CPU_INTERFACE0_BASE, \
(0*sizeof(int)), 0))
ACCELERATOR_MY_PROJECT_COPROCESS_CPU_INTERFACE0_BASE, \
((0*sizeof(int))) & 1) ^ 1)
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.
Refer to the
Handbook
As discussed in
Reference
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
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.
Nios II C2H Compiler User Guide
chapter, the C2H compiler automatically shares a master port
for more information about creating interrupt service routines.
Exception Handling
“Resource Sharing”
9.1
Example 6–5
chapter of the
in the
C-to-Hardware Mapping
both ptr_a and ptr_b must
Nios II Software Developer's
6–5

Related parts for IPTR-C2H-NIOS