Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JSRT
Beginner
22 Views

Example of Custom Instruction with External Interface

Hello,

 

I'm looking for an example showing how to write and use an Nios2 CI with a external interface (as described in Sec. 2.1.5 of the Nios2 Custom Instruction Guide). 

 

I've already implemented simple combinational CIs. 

 

From what I've understood, CI with EI can access external data (as opposed to the 2x32bits arguments on their input ports) using a "conduit". I've no experience with such components and could find the relevant documentation.

 

Basically, what i'd like to do is to write CIs processing arrays, using the __builtin_custom_pnpp function interface on the Nios side, i.e. by writing the contents of the array in memory (on chip memory will be ok for now), having the CI process it and return the address of the result (either the same or another one, passed as the second arg. for ex).

Any help or advice on how to do this would be greatly appreciated

 

Jocelyn

0 Kudos
0 Replies
Reply