Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- first of all. why not using SOPC? the reason I guess is to access SDRAM via NiosII is too slow. you wanna access SDRAM as fast as it can. is that right? you can use SOPC builder and Avalon-MM "Master". you can use bast transfer via Avalon bus. this is easy way and safety way. otherwise, you need to write long long code in HDL. like this. ttp://cache.micron.com/protected/expiretime=1282712493;badurl=ahr0cdovl3d3dy5tawnyb24uy29tly80mdquahrtba==/fe03e95c6f6a764e10b3fbfff5a207f7/1/32/512mb_sdr.pdf reading and writing process is not difficult. but you need to write initial process and precharge process as well. I have done this before( for SDRAM / DDRSDRAM) it took months.( I was newbie too) now, I was studied I did not need to write this. SOPC is handy enough. if you still wanna try it, the hell is waiting for you. good luck. --- Quote End --- Thanks for your apply. after of all, I need to use SOPC buillder.. "you can use SOPC builder and Avalon-MM "Master". you can use bast transfer via Avalon bus." I don't understand above sentence... 1. what kinds of sopc component do i use? NIOS II/e cpu, sdram controller, jtag uart, and avalon MM?? I don't know about avalon ... 2. after using above sopc builder component, do i have to use eclipse software for using sdram? or use verilog code to write/read sdram. 3. if i must use software for sdram data inout, I want to write some data to address of sdram, and read data from address of sdram using Nios II Eclipse (c or c++). (ex. address : 0x0002000, data : 11111111 0x0002001, data : 11111110 ...) how can i write/read data to/from address using c or c++. I try to find some SDRAM examples, there are not about real/write data, but about only LED, Switch.. How can I get some instruction or code about using SDRAM data/address? Thanks for your kindness.