Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi
To use custom instructin in software is very easy. First of all you have to design your verilog code that works on all signal that are compulsory for inmplements multicycle custom instruction measn it starts with clk_en signal or ends with done signal. Now you have to add this CI in niso processor, then generate the system and compile the project. Now when you make a project in NIOS II IDE and Build the project your custom instruction automatically define in your project's system.h file. CI name is ALT_CI_<your_ci_name>. to use this custom instruction do not need to add clk, clk_en,start etc. signal , only dataa, datab signls are necessary. For information about custom instruction refer altera's custom instruction user guide. if any problem feel free to ask me... Thanks slsnios