Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Multicycle Custom Instructions

Altera_Forum
Honored Contributor II
1,658 Views

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 signals (eg. start, clk_en, etc) from the Nios IDE. i.e I want to know how I should do this from the main function. I would appreciate if someone could tell me the syntax for asserting input signals to the custom instruction. 

 

Any help extended would be highly appreciated.  

 

Thanks 

Sai
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
494 Views

Hi 

 

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&#39;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&#39;s custom instruction user guide.  

 

if any problem feel free to ask me... 

 

Thanks 

slsnios
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

 

--- Quote Start ---  

originally posted by saiprashanth@May 22 2006, 02:14 PM 

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 signals (eg. start, clk_en, etc) from the nios ide. i.e i want to know how i should do this from the main function. i would appreciate if someone could tell me the syntax for asserting input signals to the custom instruction. 

 

any help extended would be highly appreciated.  

 

thanks 

sai 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15493) 

--- quote end ---  

 

--- Quote End ---  

 

 

 

Hi sai, 

I am also working in custom instructions. I am a newbie to NIOS and verilog. Can you pls send some example custom instruction code, or snippets so that i will have get an idea about it. 

 

Any suggestions or help is welcome.  

 

Regards, 

Farida
0 Kudos
Altera_Forum
Honored Contributor II
494 Views

Hey, Check out the link below.. Its got some useful stuff that not all that well explained in the User guide..  

 

http://www.niosforum.com/pages/project_det...p_id=34&t_id=18 (http://www.niosforum.com/pages/project_details.php?p_id=34&t_id=18

 

Hope this helps! 

 

Cheers 

Sai 

 

 

--- Quote Start ---  

originally posted by farida_tabu+jun 1 2006, 03:08 am--><div class='quotetop'>quote (farida_tabu @ jun 1 2006, 03:08 am)</div> 

--- quote start ---  

<!--quotebegin-saiprashanth@May 22 2006, 02:14 PM 

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 signals (eg. start, clk_en, etc) from the nios ide. i.e i want to know how i should do this from the main function. i would appreciate if someone could tell me the syntax for asserting input signals to the custom instruction. 

 

any help extended would be highly appreciated.  

 

thanks 

sai 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15493) 

--- quote end ---  

 

--- Quote End ---  

 

 

 

Hi sai, 

I am also working in custom instructions. I am a newbie to NIOS and verilog. Can you pls send some example custom instruction code, or snippets so that i will have get an idea about it. 

 

Any suggestions or help is welcome.  

 

Regards, 

Farida 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15749)</div> 

[/b] 

--- Quote End ---  

0 Kudos
Reply