Forum Discussion
Altera_Forum
Honored Contributor
20 years agoMulticycle Custom Instructions
Hi, I want to implement a multi-cycle custom instruction and I have written a Verilog code for the same. However, I am not able to find any information on how I should assert the various input ...
Altera_Forum
Honored Contributor
20 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