Altera_Forum
Honored Contributor
20 years agoCustom Instruction examples
I have created a set a custom instructions that demonstrate the various different types of custom instructions:
here is a quote from the intro in my tutorial: <div class='quotetop'>QUOTE </div> --- Quote Start --- Introduction ... this tutorial came bundled with several custom instruction examples which cover many different types of possibilities; such as, internal registry options, I/O options, and stalling options. Examples below use a multiply accumulate (MAC) example from a basic instruction to one that takes advantage of many sophistication options. A MAC is an operation which takes an input and multiplies it with its current value and then accumulates it. The basic functionality of a MAC can be found in an included custom instruction user guide on page 1-11. A Taylor series calculator and a “blinker” custom instruction that interacts with the LEDs are also included. The Taylor series calculator can be used to approximate functions while the LED blinker demonstrates IO with custom instructions. ...[/b] --- Quote End --- Unlike many other custom instructions, some of the ones in this bindle are non-stalling, which speeds up computation, and some that are IO capable. Note: with the Altera custom instruction guide the file size was too large. So, you can find it at http://www.altera.com/literature/ug/ug_nio...instruction.pdf (http://www.altera.com/literature/ug/ug_nios2_custom_instruction.pdf)