electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

NIOS II Custom Instruction blocks printf


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> NIOS II Custom Instruction blocks printf
Author Message
kalyansrinivas



Joined: 07 Jul 2007
Posts: 66
Helped: 1


Post23 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


Post28 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


Post29 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


Post29 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+kWink 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


Post30 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
Google Adsense




Post30 Oct 2009 4:58   

Ads




Back to top
shitansh



Joined: 06 Jan 2009
Posts: 136
Helped: 12


Post30 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
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> NIOS II Custom Instruction blocks printf
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Best LVS tool for small, full custom blocks? (5)
semi-custom /full custom (16)
NIOS or NIOS II develop (2)
semi custom design and full custom design flow (2)
printf with usart (5)
why TI=1 before printf()? (9)
Printf in Hi-tech help! (5)
printf in embedded C compilers. (9)
keil printf redirection (2)
printf or scanf in dual UART ? (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS