Forum Discussion
Altera_Forum
Honored Contributor
18 years agoSDRAM in DE1
Hello All, I have a small problem with sdram on my DE1. I use quartus 7.2sp2, NIOS and SDRAM controller from SOPC builder. I’ve cloned the basic design and SDRAM setting from Terasic̵...
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- Hello All, I have a small problem with sdram on my DE1. I use quartus 7.2sp2, NIOS and SDRAM controller from SOPC builder. I’ve cloned the basic design and SDRAM setting from Terasic’s DE1_NIOS project. My program placed in sdram works well. I may successfully access data in sdram using word alignment. However the text from printf() function looks like crap and disordered. Where is a problem here? I suppose I need the proper sdram timings. Could someone share the proper sdram settings? Thank you. Alexander. --- Quote End --- The primary reason for this is the use of printf() itself. printf() sends an interrupt to the processor (because printf works with jtag_uart) and you stand to loose several cycles of data. In fact printf() is not a recommended practice and should be avoided. If you write your data into some file and read it later, that should be still ok.