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++
12605 Discussions

Five days till grad. project delivery

Altera_Forum
Honored Contributor II
1,638 Views

Hello all.. 

 

Last 5 days to go .. and i will deliver my graduation project .. and still i have some troubles that i cant solve.. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

I posted 2 questions in 2 different topics with no replies.. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif  

 

the first :: Question about custom instruction support under uCLinux ..?? 

how could it be configured ?? custom instructions were tested successfully under the NIOS IDE .. but how could i compile programs under uclinux using such new instructions ?? 

 

the second:: it was posted here (http://forum.niosforum.com/forum/index.php?showtopic=4292) .. about a problem in mounting NFS .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif  

 

PLEASE PLEASE help.. i dont have much time..  

 

]]]]]] 

 

good news:: in my project documentation, i made a tutorial for newbies to make the uClinux operate .. i included many screen shots.. i think this process is made clearer now for new uclinux users.. i intend to post the whole documentation at this forum when it is finished .. as i really got many benifits from just joining you .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif  

 

Thanks for everything.. hope i read MANY replies http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif  

 

Yours, 

Tarek
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
330 Views

Hello once more.. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

My second problem is solved (almost) .. thanks goes to Hippo .. 

 

the fisrt problem still stands infront of me .. 

 

IS CUSTOM INSTRUCTION SUPPORTED UNDER uCLINUX ?? 

 

 

please ,, I only want a " yes/no " answer .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

if yes.. pls supply me with a UG or even a clue http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif  

 

Thanks in advance http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
0 Kudos
Altera_Forum
Honored Contributor II
330 Views

 

--- Quote Start ---  

originally posted by tarekeldeeb@Jul 10 2006, 05:41 AM 

hello once more.. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/smile.gif  

 

 

 

is custom instruction supported under uclinux ?? 

 

 

please ,, i only want a " yes/no " answer .. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif  

 

if yes.. pls supply me with a ug or even a clue  http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/huh.gif  

 

thanks in advance  http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/smile.gif  

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

--- quote end ---  

 

--- Quote End ---  

 

 

http://www.altera.com/literature/ug/ug_nio...instruction.pdf (http://www.altera.com/literature/ug/ug_nios2_custom_instruction.pdf

 

I&#39;ve found the UG, I know nothing else about it... 

 

Keith
0 Kudos
Altera_Forum
Honored Contributor II
330 Views

Tarek, 

 

As Espian mentions, you should refer to the CI User&#39;s Guide, especially the builtin functions section. If the cross compiler for uCLinux retains support for these builtins, then your answer is yes. 

 

You might want to try to compile the simple bitswap example as a uCLinux user-level application, just to see if it will work. 

 

Cheers, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
330 Views

 

--- Quote Start ---  

originally posted by slacker@Jul 10 2006, 04:37 PM 

tarek, 

 

as espian mentions, you should refer to the ci user&#39;s guide, especially the builtin functions section.  if the cross compiler for uclinux retains support for these builtins, then your answer is yes. 

 

you might want to try to compile the simple bitswap example as a uclinux user-level application, just to see if it will work. 

 

cheers, 

 

- slacker 

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

--- quote end ---  

 

--- Quote End ---  

 

 

Thanks Espain.. thanks Slacker .. 

 

but i really do not understand you .. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

Under Windows NIOS II IDE and quartus .. i made some custom instructions using the UG supplied from altera (as Espain said) .. then compiled the new hardware (of CI) together with the CPU to produce a new Processor having the new instructions,, I thenuse this new CPU in the NIOSII IDE.. the project worked fine .. as a single threaded project in the IDE .. 

 

The IDE compiles the project with the CI in it .. and produsec the ELF executable format.. 

 

can this elf be used somehow under uClinux ?? can it be converted to FLT ?? 

will the custom instructions be executed correctly ? 

 

PLEASE HELP QUICK http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif  

 

Thanks for all your efforts
0 Kudos
Altera_Forum
Honored Contributor II
330 Views

When using the flow that hippo advocates, you&#39;re using a different compiler than the one that&#39;s shipped by Altera. This is what the IDE is using to compile your custom instructions. NOTE: you might want to take a look into what the IDE is doing, in detail, as it will help you understand how to get things working in uCLinux. It&#39;s also described in the application note, as well. 

 

You need to check to make sure that the toolchain, and, in particular, the GCC compiler support custom instructions. Since I&#39;ve not been through this flow, I can&#39;t answer if, definitively. Perhaps, hippo or jdhar have tried a custom instruction in uCLinux? I "think" that the key is that the toolchain&#39;s got to support the custom instruction "builtins", but there might be more to it. 

 

My suggestion was that you try getting an application, that uses custom instructions, working in uCLinux. If you&#39;ve gotten any application to work, in uCLinux, it shouldn&#39;t be that much more difficult to try it with a custom instruction and then report any issues you have to the uCLinux forum. 

 

Cheers, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
330 Views

Mr Slacker ..thanks for your quick reply http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

Are you saying : there is no solution till now ??
0 Kudos
Altera_Forum
Honored Contributor II
330 Views

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

Are you saying : there is no solution till now ??[/b] 

--- Quote End ---  

 

 

Not at all. I&#39;m just saying that I&#39;ve not tried it, and I couldn&#39;t find any posts this topic, or I would have referred you to them. :-) 

 

Cheers, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
330 Views

 

--- Quote Start ---  

originally posted by slacker@Jul 10 2006, 11:16 PM 

<div class='quotetop'>quote  

--- quote end ---  

 

--- quote start ---  

are you saying : there is no solution till now ?? 

--- Quote End ---  

 

 

Not at all. I&#39;m just saying that I&#39;ve not tried it, and I couldn&#39;t find any posts this topic, or I would have referred you to them. :-) 

 

Cheers, 

 

- slacker 

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

[/b] 

--- Quote End ---  

 

 

thanks
0 Kudos
Reply