| Author |
Message |
kalyansrinivas
Joined: 07 Jul 2007 Posts: 66 Helped: 1
|
23 Oct 2009 9:26 NIOS II Custom Instruction blocks printf |
|
|
|
|
Hi
I am trying to add custom Instruction block to my SOPC Builder Design but i find the printf gets blocked whenever i add custom instruction to my design .I even powered off and powered on by board but still i see that the Printf doesnt print on the console
Please help me out
regards
M Kalyansrinivas
|
|
| Back to top |
|
 |
shitansh
Joined: 06 Jan 2009 Posts: 136 Helped: 12
|
28 Oct 2009 8:16 Re: NIOS II Custom Instruction blocks printf |
|
|
|
|
Hi,
Go to QuartusII project directory and then, delet db and incremental db directory from that and recompile your Qurtus project. Then try, printf will be there on console of NIOSII IDE.
HTH
--
Shitansh Vaghela
|
|
| Back to top |
|
 |
kalyansrinivas
Joined: 07 Jul 2007 Posts: 66 Helped: 1
|
29 Oct 2009 4:28 NIOS II Custom Instruction blocks printf |
|
|
|
|
Hi Shitansh Vaghela
Thank you for the reply and i will try it out
but one doubt that
if i recomplile the qu(at)rtus project i found that db and incremental db folders are again getting created
so please tell me whether after deleting db and incremental db folders do i need to re-synthesis
qu(at)rtus project or shall i just run nios -ide compiler
Thank you vey much for the reply
regards
M Kalyansrinivas
|
|
| Back to top |
|
 |
shitansh
Joined: 06 Jan 2009 Posts: 136 Helped: 12
|
29 Oct 2009 6:08 Re: NIOS II Custom Instruction blocks printf |
|
|
|
|
HI,
Say you are getting problem in printf now every thing else if working fine in NIOSII IDE (say i = j+k then you may need to resynthesis and compile your qu(at)rtus project, before recompile and resynthesis you need to delet db and incremental db folder form your qu(at)rtus project directry and after new compilation and synthesis db and incremental db will agin created you need not to delet at this time untill you want to resynthesis and compile again.
HTH
--
Shitansh Vaghela
|
|
| Back to top |
|
 |
kalyansrinivas
Joined: 07 Jul 2007 Posts: 66 Helped: 1
|
30 Oct 2009 4:58 Re: NIOS II Custom Instruction blocks printf |
|
|
|
|
Hi Shitansh Vaghela
I did the same but i could not end up with printf printing on the console ,
but before to that i see the following error in the Sopc Generator when i try to add custom instruction to my design
Error : slave(cpu_adder_inst/avalon_slave) data width is 0
Error : Generator program for module 'cpu' did not run successfully
But even i have this error SOPC generates the ptf file and i am able to proceed to genarating the sof file
Please help me out of this problem
regards
M Kalyansrinivas
|
|
| Back to top |
|
 |
Google AdSense

|
30 Oct 2009 4:58 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
shitansh
Joined: 06 Jan 2009 Posts: 136 Helped: 12
|
30 Oct 2009 5:43 Re: NIOS II Custom Instruction blocks printf |
|
|
|
|
hi,
you need not to have regenerate sopc. only need to full complie design as describe before.
--
Shitansh Vaghela
|
|
| Back to top |
|
 |