Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

NIOS II Custom Instruction blocks printf

Status
Not open for further replies.

kalyansrinivas

Advanced Member level 4
Joined
Jul 7, 2007
Messages
100
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,298
Activity points
1,910
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
 

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
 

Hi Shitansh Vaghela

Thank you for the reply and i will try it out

but one doubt that

if i recomplile the quartus 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
quartus project or shall i just run nios -ide compiler

Thank you vey much for the reply

regards
M Kalyansrinivas
 

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 quartus project, before recompile and resynthesis you need to delet db and incremental db folder form your quartus 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
 

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
 

hi,

you need not to have regenerate sopc. only need to full complie design as describe before.

--
Shitansh Vaghela
 

Error : slave(cpu_adder_inst/avalon_slave) data width is 0

Error : Generator program for module 'cpu' did not run successfully

Hi,

As per your mail and error i conceived that u have selected burst mode , in this case u have to mention the min datawidth =1. Actually assertions are inbuilt in IPs. May be they exiting the simulation if condition is voilated i.e. datawidth =0

Better change to datawidth =1 and try once.

Regards,
ravi
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top