Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12409 Discussions

Example of Custom Instruction with External Interface

JSRT
Beginner
219 Views

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
2 Replies
BoonBengT_Intel
Moderator
165 Views

Hi @JSRT,

 

Thank you for posting in Intel community forum, hope this message find you well and apologies for the delayed in response.
Per my understanding, the conduits are basically used for signals grouping, example bunch of control registers with the SPI interface will be group and called spi. (i.e. you should see it in the hw.tcl files)

 

As for the CI that are processing arrays, here would be a good example to start with.
Please do let us know if this helps to clarify your doubts.

 

Best Wishes
BB

BoonBengT_Intel
Moderator
146 Views

Hi @JSRT,

 

Greetings, unfortunately as we do not receive any further clarification on what is provided. Hence thread will now be transitioned to community support where community users will further help you with doubts in this thread. For new queries, please feel free to open a new thread and we will be right with you. Pleasure having you here.

 

Best Wishes
BB

Reply