- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 SaiLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ---

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page